The example below illustrates the metadata associated with the wrapped activity of type Decision. This metadata is exactly the same that as that seen for a decision activity described in Decision and hence will not be described here again. Any validations pertaining to the parallel decision activity mappings are also described in Decision. The Context_Parallel Workflow Data Object and an indexed item from the Parallel Activity List WDO can be used in all the available mappings for a Parallel Decision Activity. Examples of such usage can be seen below:
<parallel-activity id="1" category="AC1"> <list-wdo-name>ChildDetailsListWDO</list-wdo-name> <decision-activity> ... <message> <message-text> <localized-text> <locale language="en">In this task the details for child %1s must be validated. This is child number: %1n. </locale> </localized-text> </message-text> <message-parameters> <wdo-attribute wdo-name= "ChildDetailsListWDO[Context_Parallel.occurrenceCount]" name="fullName" /> <wdo-attribute wdo-name= "Context_Parallel" name="occurrenceCount" /> </message-parameters> </message> <decision-action> <message> <message-text> <localized-text> <locale language="en">Validate the child details for %1s associated with this case %2n.</locale> </localized-text> </message-text> <message-parameters> <wdo-attribute wdo-name= "ChildDetailsListWDO[Context_Parallel.occurrenceCount]" name="fullName" /> <wdo-attribute wdo-name="CaseDetails" name="identifier" /> </message-parameters> </message> </decision-action> ... <question> <message> <message-text> <localized-text> <locale language="en">Are the details for this child whose first name is %1s and second name %2s correct?</locale> </localized-text> </message-text> <message-parameters> <wdo-attribute wdo-name= "ChildDetailsListWDO[Context_Parallel.occurrenceCount]" name="firstName" /> <wdo-attribute wdo-name= "ChildDetailsListWDO[Context_Parallel.occurrenceCount]" name="surname" /> </message-parameters> </message> <answers multiple-selection="false"> <answer name="answerYes"> <answer-text> <localized-text> <locale language="en">Yes</locale> </localized-text> </answer-text> </answer> <answer name="answerNo"> <answer-text> <localized-text> <locale language="en">No</locale> </localized-text> </answer-text> </answer> </answers> </question> ... </decision-activity> </parallel-activity>