Pick activity
The Pick activity determines what starter activity to launch based on the action that has occurred during run time.
About this task
For example, a Pick activity could contain three branches, one that contains a Get Inserted Rows activity, one that contains a Get Deleted Rows activity, and the other that contains a Get Updated Rows activity. If an update event occurs on the database, an instance of the orchestration is created and branch that contains the Get Updated Rows activity is called.
When you add a Pick activity to an orchestration, two Receive branches are automatically added. You can add additional receiveEvent nodes to the Pick activity. A Pick activity is always a starter activity and in each branch of a Pick activity the first activity must be a starter activity.
The Receive branch contains a receiveEvent node and an empty placeholder. Each message is defined in a Receive branch that can contain other activities to handle that specific message.
Delete Receive branches if you do not want a receive operation to be a part of the Pick activity. Deleting the Receive node removes the entire Receive branch.
To use a Pick activity complete the following steps:
Procedure
- Drag the Pick activity from the Logic folder in the Activities tab onto the orchestration.
- Select an inbound activity or the Schedule Job activity and drag it onto the receiveEvent placeholder.
- To add an activity to the branch, drag the activity onto the empty placeholder.
Adding, editing, or deleting condition branches
The Pick activity can have several branches to process complex conditions
To add a branch to the Pick activity:
- Click the Pick node.
- Select Add Receive Branch from the list.
- Select an activity or branch.
- Select Edit from the list. The name is displayed in a box.
- Select the current name, then enter the new one.
- Press Enter.
To delete an activity or branch complete the following steps:
- Select an activity or branch.
- Select Delete from the list. Note: If you delete a condition branch, all activities within the condition branch are also deleted.