Working with branch IDs
Every branch also has an ID, which is its reference
name. An ID is necessary because the Workflow instance sometimes needs
to persist to the database which branch it is trying to execute. (This
can happen, for example, if an error occurs in the branch and the workflow
drops into the Error state).
A branch ID must be unique within a given step.
If you do not specify an ID for a branch
(which occurs frequently), the workflow uses the value of nextStep attribute as a default.
This works well except in the special case in which you have more than
one branch leading from the same Step A to the same Step B. (This can
happen, for example, if you want to OR multiple conditions together,
or if you want different Gosu in the different branches but the same
nextStep.) In that case,
you must add an ID to each of those branches. Studio complains with a
verification error upon loading (or reloading) the workflow scripts if
you do not do this.
Do the following to assign an ID to each type of branch:
Type |
Action to take |
|---|---|
|
Optionally add an
ID to a |
|
Always add an ID to
a |
|
Optionally add an
ID to a |
