650 Patterns: Building Serial and Parallel Processes for IBM WebSphere Process Server V6
The retrieve participants by instance snippet part
We now have an array of instances. In our case, we only expect one instance, so
we select the first array element by using the
get array element snippet in the
array folder and passing in the element number 0.
Each instance is represented by an integer. We now have the integer which
represents the instance for our item.
To retrieve the Warehouse F role for our instance, we use the
retrieve
participants by instance
snippet from the relationship services folder. A
participant is another name for a role.
This gives us a list of participant objects which correspond to our instance. As
before, due to the many-many ...