Agent Listeners

The Oracle Workflow Business Event System requires agent listeners to be scheduled to receive inbound event messages. An agent listener monitors a Business Event System agent for incoming messages and dequeues messages using the agent's queue handler. You should run agent listeners for your local inbound agents.

When an event message is dequeued, the Event Manager begins subscription processing for the event. The Event Manager searches for and executes any active subscriptions by the local system to that event with a source type of External, and also any active subscriptions by the local system to the Any event with a source type of External.

The agent listener exits after all event messages on the agent's queue have been dequeued.

The agent listener program is defined as a service component type in the Generic Service Component Framework. This framework helps to simplify and automate the management of background Java services.

Oracle Workflow provides three seeded agent listener service components to process messages on the standard WF_DEFERRED, WF_ERROR, and WF_NOTIFICATION_IN agents. These service components are named Workflow Deferred Agent Listener, Workflow Error Agent Listener, and Workflow Inbound Notifications Agent Listener, and they support deferred subscription processing, error handling for the Business Event System, and inbound e-mail processing for notification mailers, respectively. The configuration parameters for the seeded agent listeners are set to default values which you cannot update. However, you can schedule control events or manually choose control commands to start, stop, suspend, resume, or refresh the agent listeners. When running, the seeded agent listeners will check their agents for messages every five minutes.

You can also optionally create additional agent listener service components. For example, you can configure agent listeners for other inbound agents that you want to use for event message propagation, such as the standard WF_IN and WF_JMS_IN agents, or any custom agents. You can also configure an agent listener that only processes messages on a particular agent that are instances of a specific event.

Before agent listener service components can run, the container which manages them, named Workflow Agent Listener Service, must be first be started. You should ensure that this container is running. Use the Service Instances page to start the container as a service instance in Generic Service Management (GSM). When the Workflow Agent Listener Service container is running, it automatically starts the Workflow Deferred Agent Listener, Workflow Error Agent Listener, and Workflow Inbound Notifications Agent Listener.

Agent Listener Configuration Wizard

The agent listener configuration wizard lets you configure an agent listener service component by defining general and detail attributes and scheduling control events. You can use the configuration wizard to configure a new agent listener service component, or to edit the configuration of an existing agent listener service component.

Navigation: Applications Dashboard > (pull-down menu) Workflow Manager > (B) Go > Service Components status icon > (B) Create > (B) Create Service Component

Navigation: Applications Dashboard > (pull-down menu) Workflow Manager > (B) Go > Service Components status icon > (B) Edit

Define

This page lets you define general attributes for the agent listener. Some attributes are already set to required values and cannot be modified. You must set attributes marked with an asterisk (*) to appropriate values for your environment before you can run the agent listener.

To cancel the configuration without saving any changes, click the Cancel button.

To save these settings and proceed to the next step of the agent listener configuration wizard, click the Next button.

To save these settings and proceed to the last step of the agent listener configuration wizard, click the Finish button.

Details

This page lets you define detail attributes for the agent listener.

To cancel any changes on this page, click the Cancel button.

To return to the previous step of the agent listener configuration wizard, click the Back button.

To save these settings and proceed to the next step of the agent listener configuration wizard, click the Next button.

To save these settings and proceed to the last step of the agent listener configuration wizard, click the Finish button.

 

Scheduling Events

This page lets you schedule events to control the running of the agent listener service component. The events are raised at the scheduled time by DBMS jobs. For an agent listener service component, you can schedule the following events:

For each event, the list displays the event name, date and time when the event is first scheduled to be raised, the interval in minutes at which the event is reraised, and, for a refresh event, any parameters to be refreshed.

To cancel any changes on this page, click the Cancel button.

To return to the previous step of the agent listener configuration wizard, click the Back button.

To save these settings and proceed to the next step of the agent listener configuration wizard, click the Next button.

To save these settings and proceed to the last step of the agent listener configuration wizard, click the Finish button.

Note: The configuration wizard verifies that an event is specified for every row in the list when you click the Next or Finish button. If you do not want to schedule another event, you should remove any empty rows before proceeding.

Review

This page lets you review the configuration parameter values that you set and the events that you scheduled for this agent listener service component.

Reviewing Agent Listener Component Details

The Component Details page lets you review the configuration and control the running of an agent listener service component.

Navigation: Applications Dashboard > (pull-down menu) Workflow Manager > (B) Go > Service Components status icon > (B) View Details

The Component Details page displays the configuration parameters defined for the agent listener. If you want to change the value of any parameter, edit the configuration using the agent listener configuration wizard.

The Component Details page also displays the control events that are currently scheduled for the agent listener. For each event, the list shows the event name, initial start time, whether the event is currently running, the next scheduled execution time for a repeating event, the last previous execution time for a repeating event, the interval in minutes between executions of a repeating event, the number of times the event has failed, the job ID of the DBMS job used to schedule the event, and the PL/SQL API that DBMS job runs.