Professional Documents
Culture Documents
Topics of Discussion
• Overview
• Components of workflow
• Notification Mailer Processing
• Setup of workflow
• Troubleshooting
Overview of workflow
Routing information
provides each person with all the information they need to act on
Integrating systems
Workflow lets you set up subscriptions to business events which
can launch workflows or enable messages to be propagated from
one
system to another when business events occur.
Components of workflow
o Service Containers
o Agent Listeners/Service Components
o Background engine
o Workflow Directory Service
Components of workflow
o Background Engine
Used to run deferred,timed out and stuck activities. Activities in a
workflow process are marked as deferred if their cost exceeds 50
(by default).
Is an API - WF_ENGINE.BACKGROUND
Scheduled to run as a concurrent program
o Service Containers
Required to run the agents or service components
Three types of service component containers::
Workflow Agent Listener Service
Workflow Mailer Service
Workflow Document Web Services Service
Defined as concurrent managers
Components of workflow
o Service Components
Workflow Deferred Agent Listener , runs on wf_deferred agent
Workflow Error Agent Listener, runs on wf_error agent
Workflow Java Deferred Agent Listener , runs on
wf_java_deferred agent
Workflow Inbound Notifications Agent Listener, runs on
wf_notification_in agent
Workflow Mailer Service
note: each agent has its own queue and queue table
Components of workflow
What is an Agent ?
- named point of communication within a system
- communication within a system is achieved by sending messages between agents
- different agents for inbound,outbound communications
- oracle workflow provides default standard agents which are :
WF_CONTROL – Oracle Workflow internal agent, not for customer use
WF_DEFERRED – Standard agent for deferred subscription processing
WF_ERROR – Standard agent for error handling
WF_IN – Default inbound agent
WF_JMS_IN – Default inbound agent for JMS Text messages
WF_JMS_OUT – Default outbound agent for JMS Text messages
WF_NOTIFICATION_IN – Standard inbound agent for e–mail
notification responses
WF_NOTIFICATION_OUT – Standard outbound agent for
e–mail notifications
WF_OUT – Default outbound agent
Components of workflow
o Background Engine
Conc. Program ‘Workflow Background Process’
Parameters:
item type -set it null
minimum threshold- min. cost ,set it null, default 0
maximim threshold- max. cost, set it null, default 100
process deferred - yes/no
process timeout - yes/no
process stuck -yes/no
Schedule to run every 3 mins
Schedule diff background engines for deferred and timed out
activities
Setting up Workflow
o Workflow Mailer
SMTP server needed for outbound messages
IMAP4 compliant server needed for inbound messages
E-mail account needed on IMAP server
WF-<ENV_NAME> is the convention followed
Create PROCESS and DISCARD folder
Env. variables:
AF_JRE_TOP=/local/java/jdk1.3.1
AFJVAPRG=/local/java/jdk1.3.1/bin/java
AF_CLASSPATH=/local/java/jdk1.3.1/lib/dt.jar:/local/java/jdk1.3.1/lib/t
ools.jar:/slot02/appmgr/plmb9rwcomn/java/appsborg2.zip ………..
Setting up Workflow
o Bulk Synchronization
Conc. Program with default parameters
Schedule to occur after every n hrs
oracle.apps.fnd.cp.gsc.SvcComponentContainer.startBusinessEventListen
er()] :
BES system could not establish connection to the control queue after 180
seconds
Could not start Service Component Container …
- check if wf control queue cleanup conc. Program is scheduled and
runs successfully.
- check AF related env. variables
- try re-creating wf_control queue
- try to re-generate the jar files
TroubleShooting
- if error is ‘no containers are running’ try bouncing the CM
- for other errors, search webiv
• Purges the wf_notification_out outbound message queue and repopulates from the WF_NOTIFICATION table:
• Example Syntax:
• sqlplus apps/apps@db @wfntfqup apps apps applsys
• This script will move the oracle.apps.wf.notificaiton.send messages from the WF_ERROR queue to the WF_DEFERRED
queue for reprocessing. Substitute for Reset Failed in OWF G.
•
sqlplus usr/passwd@db @wfnequ APPSusr APPSpw FNDusr