WCP-04 Exclusive choice - if/else branching
(1)
The choice of executing choiceA or choiceB is determined by using String_List_Intersection and String_List_Difference. If in="true" then the intersection will yield a non-empty list, triggering execution of choiceA. This list will however not differ from the input, and so choiceB will iterate over an empty list (ie. not execute).
Note how using 'difference' for the else-case here means that if you run the workflow with in="bob", choiceB would still run. Some early if/el...
Created: 2012-02-20
| Last updated: 2012-02-20
Credits:
Stian Soiland-Reyes
Attributions:
Example of a conditional execution workflow
Example of conditional invocation