Pick
Continues according to whichever of several events happens first. Each branch has a trigger and an action; the action of the branch whose trigger completes first runs, and the other branches are canceled.
Usage
A branch is added with the Create Branch command in the activity's right-click menu. Branches are shown side by side.
Each branch has two fields: Trigger and Action.
When Pick runs, the triggers of all branches are started together. The branch of the first trigger to complete wins: the triggers of the other branches are canceled and the activity in the Action field of the winning branch runs. Pick completes when this activity finishes.
A branch whose Trigger field is empty causes a validation error. Action can be left empty.
For a timeout, a Delay is placed in the trigger of a branch: if the other triggers do not complete within this time, this branch's action runs.
If there are no branches, Pick completes without doing anything.