My Oracle Support Banner

Batch Policy Sends Notification Email: "WorkMon Has Exited With An Error" (Doc ID 1590043.1)

Last updated on NOVEMBER 22, 2019

Applies to:

Siebel CRM - Version 8.1 [21039] and later
Information in this document applies to any platform.

Symptoms

After a Workflow Batch Policy is executed successfully though srvrmgr commands, an Admin Alert Notification Email is sent with below message:

"This is an automated notification message that a process for the component WorkMon has exited with an error and will not be restarted because AutoRestart is set to false".

Note the WorkMon component has AutoRestart=True



STEPS TO REPRODUCE

The issue can be reproduced at will with the following steps:

A. Create a WF batch policy.

See below the steps to create an example WF batch policy.
 
1. Navigate to Site Map > Administration - Business Process > Workflow Policy Group. Create "Test State of Michigan" WF policy group.

2. Navigate to Site Map > Administration - Business Process > Workflow Policies. Create "Test State of Michigan - Account Update" WF policy as follows:
  Name = Test State of Michigan - Account Update
  Workflow Object = Account
  Policy Group = Test State of Michigan
  Units = Minute(s)

And in "Conditions" applet, create:
  Condition Field = Account Last Update Date
  Operation = IS UPDATED

3. Site Map > Administration - Server Management > Jobs. Created a Job associated to 'Generate Triggers' and pass the properties (Job Parameters) that  include the Table Owner credentials:
  EXEC: True
  Remove: True
  Privileged User: SIEBEL
  Privileged User Password:SIEBEL

4. Site Map > Administration - Server Management > Jobs. Create a Job associated to 'Generate Triggers' and pass the properties (Job Parameters) that include the Table Owner credentials:
  EXEC: True
  Remove: False
  Privileged User: SIEBEL
  Privileged User Password:SIEBEL

5. Navigate to Site map > Administration - Server Configuration > Enterprises > Component Definition. Query for "Workflow Monitor Agent". Right click > select 'Copy Record' to create a new custom Workmon called:
  "Workflow Monitor Agent STATE MICHIGAN" (Alias: WorkmonSTMICH).

6. For this new custom workmon "Workflow Monitor Agent STATE MICHIGAN", from Site map > Administration - Server Configuration > Enterprises > Component Definition > Component Parameter, set:
  Group Name = Test State of Michigan

7. For this new custom workmon "Workflow Monitor Agent STATE MICHIGAN", from Site map > Administration - Server Configuration > Enterprises > Component Definition > select the WorkmonSTMICH component > right click > 'Activate' option.

8. Synchronize all components: Navigate to Site map > Administration - Server Configuration > Enterprises > Synchronize > click 'Synchronize' button.
Confirm that the new custom workmon appears under Site map > Administration - Server Configuration > Enterprises > Component Groups (Workflow Management) > Components.

9. Restart the Siebel Server and Gateway services to make sure the new WorkMon component is created and visible from SRProc and SRBroker

 
B. Configure Alerts Notification

Configure the alerts; see below an example:

1. Navigate to Site Map > Administration - Server Configuration > Enterprises > System Alerts and set below paramenters with proper information:
  AdminEmailAddress = test@test.com
  DLLName = ssemailntfy
  FromAddress = server@test.com
  SMTPServerPort = 5025
  SMTPServer= mailserver
  Message = This is a message from your Siebel Server

2. Navigate to Site map > Administration - Server Configuration > Enterprises > Component Definition. Query for "Workflow Monitor Agent STATE MICHIGAN" and set below parameters:
  NotifyHandler = AdminEmailAlert
  DisableNotification = False
  NotifyTimeOut = 100
  NotifyOnTaskExit = 1

3. Restart the Siebel Server and Gateway services for changes to take effect.

 
C. Reproduce the behavior

1. Navigate to Site map > Administration - Server Configuration > Servers > select the server > Components > select the "Siebel Administrator Notification Component" (alias AdminNotify) component > Events and set the log level for below event as follows:
  NotifyHndlrEvt = 3

2. Connect to the svrmgr, e.g: srvrmgr /g localhost /e esia81 /u SADMIN /p SADMIN /s ssia

3. Run the WF batch policy:
  start task for comp WorkmonSTMICH with BatchMode='True',GroupName='Test State of Michigan',ActionInterval='600'

4. Check the AdminNotify log, a message just as the below is displayed:
NotifyHndlrEvt HndlrInfo 3 0000000651dc0f48:0 2013-07-10 23:36:17 Notification message subject: Notification message from enterprise esia811], Siebel server [ssia811], and component alias: [SiebSrvr]
NotifyHndlrEvt HndlrInfo 3 0000000651dc0f48:0 2013-07-10 23:36:17 Notification message body: This is a message from your Siebel Server The notification message received is as follows:
This is an automated notification message that a process for the component WorkmonSTMICH has exited with an error and will not be restarted because AutoRestart is set to false


Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.