<decision-activity id="1">
...
<question>
<message>
<message-text>
<localized-text>
<locale language="en">
Is the claimant, %1s, for Case %2n, over 18?
</locale>
</localized-text>
</message-text>
<message-parameters>
<wdo-attribute wdo-name="Participant"
name="userName" />
<wdo-attribute wdo-name=
"CaseList[Context_Loop.loopCount]"
name="identifier" />
</message-parameters>
</message>
<answers multiple-selection="false">
<answer name="yesAnswer">
<answer-text>
<localized-text>
<locale language="en">Yes</locale>
</localized-text>
</answer-text>
<choice-output-mapping>
<wdo-attribute wdo-name="DecisionResult"
name="ageBracket" />
<selected-value>18-65/selected-value>
<not-selected-value>0-17</not-selected-value>
</choice-output-mapping>
</answer>
<answer name="noAnswer">
<answer-text>
<localized-text>
<locale language="en">No</locale>
</localized-text>
</answer-text>
<choice-output-mapping>
<wdo-attribute wdo-name="DecisionResult"
name="ageBracket" />
<selected-value>0-17</selected-value>
<not-selected-value>18-65</not-selected-value>
</choice-output-mapping>
</answer>
</answers>
</question>
...
</decision-activity>
- question
- This represents the question associated with the decision activity, which for a multiple choice question contains the metadata outlined below.
- message
- This represents the parameterized text of the question to be asked for all locales.
- answers
- This represents a list of answers the user can choose from for the multiple choice question.
- multiple-selection
- This represents a flag that indicates if the user can select multiple answers from those supplied, or whether only one can be selected.
- answer
- This represents an answer that the user can select. There must be at least one answer supplied for a multiple choice question.
- name
- This represents the name of the answer. Once the user selects an answer or answers, the names of the selected answers are passed to the workflow engine and the process is progressed. As the engine treats these answers similar to workflow data object attributes, answer names must be valid Java identifiers.
- answer-text
- This represents the answer text that the user can select for all locales.
- choice-output-mapping
- This tag encloses the metadata that describes how the output from a multiple choice answer will be persisted.
- wdo-attribute
- The name of the workflow data object attribute used to store the value of the multiple choice answer.
- selected-value
- If specified, the value in this element will be persisted to the workflow data object attribute if that answer has been selected by the user. If the workflow data object attribute is a boolean type this value need not be specified, it will get a default value of true.
- not-selected-value
- If specified, the value in this element will be persisted to the workflow data object attribute if that answer has not been selected by the user. If the workflow data object attribute is a boolean type this value need not be specified, it will get a default value of false.