Overview
This blog is about explaining the steps to collect logs for different workflow components like UI, Business Event System, Server, Directory Services and Workflow Notification Mailer ..etc. This will be explained in series of blogs for each of the component. Part 1 explains about collecting logs for Business Event System.
Collecting Agent Listener logs
Collect the Workflow agent listener component logs using below steps. Steps are explained for ‘Workflow Deferred Agent Listener’ component and the same steps applies for other agent listeners like ‘Workflow Deferred Notification Agent Listener’, ‘Workflow Java Deferred Agent Listener’ and ‘Workflow Inbound Notifications Agent Listener’ components.
-
Navigate to the Service Components page as below
Workflow Administrator -> Oracle Applications Manager -> Workflow Manager -> Service Components -
Select the required component for example ‘Workflow Deferred Agent Listener’ and click on Edit
-
Set the log level to STATEMENT in step 2 and click on ‘Finish’ button
-
Click on Finish button in Step 4 as well and click on OK button in the Component Details page
-
Bounce the workflow Agent Listener Service container using below steps
-
Navigate to the Service Components page as below
Workflow Administrator -> Oracle Applications Manager -> Workflow Manager -> Service Components -
Click on the container ‘Workflow Agent Listener Service’ and select ‘Stop’ from the drop down and click on Go button
-
Wait until the container state is ‘Deactivated’
-
Now select ‘Start’ from the drop down and click on Go button
-
Wait until the state is ‘Activated’
-
-
Get the ‘Workflow Agent Listener Service’ process id as below
-
Select ‘Workflow Agent Listener Service’ container and click on ‘View Processes’ button, it shows the processes page
-
Click on ‘ICM Log’ button, it opens the log page
-
On the top left, you can see the string like
ICM Log:
2153550:
wf122dv3 -
The id in the middle ‘2153550’ is the process id and note down it
-
-
Reproduce the reported issue
-
Collect the Agent Listener log file using below steps
-
Go to the below location in the concurrent tier node
cd $APPLCSF/logs
-
Get the latest Agent Listener log file by appending the process id as noted in step 6.4 to the log file prefix ‘FNDCPGSC’ as below
ls -ltr FNDCPGSC<processId>.txt
where <processId> is the ‘Workflow Agent Listener Service’ process id.
For example:ls -ltr FNDCPGSC2153550.txt
-
This represents the latest Agent Listener log file
-
If you are looking for the Agent Listener log file containing a specific string for example event or exception, you can grep for that string and get the required log file as below.
grep -i "NullPointerException" FNDCPGSC*.txt
grep -i "oracle.apps.wf.notification.send" FNDCPGSC*.txt
-
Collecting E-Business Suite logs
Please refer to blog Collecting E-Business Suite Logs for Workflow for collecting Business Event System logs.
E-Business Suite logs for specific Business Event System package say ‘wf_event’ can be collected by setting the AFLOG_MODULE profile option value as ‘wf_event%’.
You can also specify multiple packages by using comma separated values as ‘WF_EVENT_SUBSCRIPTIONS_PKG%’,’wf_rule%’,’fnd.wf.bes.BusinessEvent%’ ..etc
Additional Resources
-
Refer to Agent Listeners section in Oracle Workflow Administrator guide
-
Refer to Logging Framework Overview section in Oracle E-Business Suite Developer’s Guide