Oracle Workflow Guide Release 2.6.2 Part Number A95265-02 |
|
|
|
|
|
|
|
|
Previous |
Next |
|
Contents |
Index |
Glossary |
To Define Event Details for an Event Node
The event action defined for the event activity determines which event details you must define for an event node. For each event detail, it is either required or optional to use an item type attribute to store or retrieve the detail information. Note that you must first create item type attributes of the appropriate types before you can reference those predefined item attributes here. The item type attributes you use for event details must be associated with the same item type that the event activity itself is associated with. See: Item Type Attributes and To Define an Item Type or Activity Attribute.
1. Display the property pages of an event activity node. Select the Event Details tab.
2. For an activity with the event action Receive, enter the following event details:
- Event Name--Optionally select an item type attribute of type text where you want to store the event name that the node receives.
Note: The event activity can only receive events that match the event name specified as the event filter. See: To Create an Event Activity.
- Event Key--Optionally select an item type attribute of type text where you want to store the event key that the node receives.
- Event Message--Optionally select an item type attribute of type event where you want to store the event message that the node receives.
3. For an activity with the event action Raise, enter the following event details:
- Event Name--Enter the name of the event that the node raises. You can either specify a constant event name or select an item type attribute of type text that dynamically determines the event name at runtime.
Note: You can only raise an individual event. You cannot raise event groups.
- Event Key--Select the item type attribute of type text that contains the event key for the event that the node raises.
- Event Data--Optionally select an item type attribute of type text that contains the event data for the event that the node raises.
The maximum length of the data you can enter in a text attribute is 4000 bytes. If the event data exceeds 4000 bytes, you should assign a Generate function in the event definition to generate the event data, rather than providing the event data through a text attribute. See: To Define an Event.
Note: The Event Name and Event Key are required for a Raise event activity.
Note: In addition to these event details, you can use the activity attributes for a Raise event activity node to specify parameters that you want to include in the parameter list for the event message. See: To Define Activity Attribute Values.
Also, a Raise event activity automatically sets the item type and item key for the current workflow process in the parameter list for the event message. If the event message is later received by another process, the Workflow Engine uses that item type and item key to automatically set the process that raised the event as the parent for the process that receives the event. See: SetItemParent.
4. For an activity with the event action Send, enter the following event details:
- Event Message--Select the item type attribute of type event that contains the event message that the node sends.
- Event Name--Optionally enter the name of the event that the node sends. You can either specify a constant event name or select an item type attribute of type text that dynamically determines the event name at runtime. The event name that you enter here overrides the previous event name value in the event message.
- Event Key--Optionally select an item type attribute of type text that contains the event key of the event that the node sends. The event key that you enter here overrides the previous event key value in the event message.
- Out Agent--Optionally enter the outbound agent from which the node sends the event. Specify both the agent name and the system name for the agent using the following format:
<agent_name>@<system_name>
You can either specify a constant Out Agent name or select an item type attribute of type text that dynamically determines the Out Agent name at runtime. The Out Agent that you enter here overrides the previous outbound agent value in the event message.
- To Agent--Optionally enter the inbound agent to which the node sends the event. Specify both the agent name and the system name for the agent using the following format:
<agent_name>@<system_name>
You can either specify a constant To Agent name or select an item type attribute of type text that dynamically determines the To Agent name at runtime. The To Agent that you enter here overrides the previous inbound agent value in the event message.
Note: The Event Message is required for a Send event activity. Additionally, you must either include a To Agent or a From Agent within the event message, or specify a To Agent or an Out Agent in the event details for this node. If you neither specify an inbound agent nor an outbound agent, the event cannot be sent.
Note: If no correlation ID is initially specified in the event message, Oracle Workflow automatically sets the correlation ID to the item key of the process.
5. Choose Apply to save your changes, OK to save your changes and close the property page or Cancel to cancel your changes and close the property page.
See Also
Using the Edit Button in a Property Page
Event Activity
To Create an Event Activity
To Add Nodes to a Workflow Process
To Define Nodes in a Process
To Define Activity Attribute Values
To Create and Edit a Transition
To Display a Process Overview
To Print a Process
To Copy a Process Diagram to the Clipboard
To Validate a Process Definition
Copyright © 2002 Oracle Corporation.
All Rights Reserved.