Multiple Choice

<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 tag represents the question that is associated with the decision activity, which for a multiple choice question contains the metadata that is outlined here.
message
This tag represents the parameterized text of the question to be asked for all locales.
answers
This tag represents a list of answers the user can choose from for the multiple choice question.
multiple-selection
This tag represents a flag that indicates if the user can select multiple answers from those supplied, or whether only one can be selected.
answer
This tag represents an answer that the user can select. There must be at least one answer that is supplied for a multiple choice question.
name
This tag represents the name of the answer. After 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 tag 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 is 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 is persisted to the workflow data object attribute if that answer is selected by the user. If the workflow data object attribute is a Boolean type this value need not be specified, it gets a default value of true.
not-selected-value
If specified, the value in this element is persisted to the workflow data object attribute if that answer is not selected by the user. If the workflow data object attribute is a Boolean type this value need not be specified, it gets a default value of false.