Design Your Event Choice Group
Designing your Event Choice node includes specifying the type of events handled on each branch of the node, and then adding the activities you want executed on each branch when the associated event occurs.
The following sections describe how to complete the tasks necessary to design an Event Choice node:
To Receive Events From Clients or Resources
To design a branch in an Event Choice node to receive messages from clients or resources, you must create Client Request or Control Receive nodes on the branch:
- Double-click the empty node (Starting Event) on a branch. The options you can use to design the starting event for the branch are displayed.
- Select the event for which this branch waits during execution of your business process:
- A Client Request
- A Control Receive
- Click X in the top right-hand corner of the node. The drop target on your Event Choice branch is changed to reflect the event you specified.
- To complete the specification of events, double-click the starting event node (Client Request or Control Receive) on the Event Choice branches to invoke the associated node builder:
To Receive Timer Events
A Timer event in a Event Choice node is executed if one of the events on another branch (Control Receive or Client Request) does not execute before a specified time. To create a Timer branch, and specify the timer value, in your Event Choice node, complete the following tasks:
- Right-click the Event Choice node and select Add Timer Branch from the drop-down menu.
A Timer branch, similar to the one shown in the following figure, is added to the Event Choice node:
- You can set the properties for the Timer branch (and other properties for this group of nodes) in the Property Editor.
- If the Property Editor is not visible in the Design View, choose View —> Property Editor from the WebLogic Workshop menu.
- Select the Timer branch. The Property Editor for the Event Choice node shown in the preceding figure appears as shown in the following figure:
- In the timeout property, select the duration attribute, then specify the number of seconds before the timer path is triggered. (The expected format is Xs, for example 7s.)
Note that you can change the name of the node, or any of its branches in the Property Editor.
- To save your work, select File —> Save.
Related Topics
Create an Event Choice Node in Your Business Process
Grouping Nodes in Your Business Process
Handling Exceptions
Business Process Source Code
Adding Message Paths
Adding Timeout Paths