ワークフローモデルで独自の結果制約を定義する必要があります。例:
<type name="my:myTask">
<parent>wf:activitiReviewTask</parent>
<overrides>
<property name="wf:reviewOutcome">
<default>Restart Review</default>
<constraints>
<constraint name="my:myOutcomeOptions" type="LIST">
<parameter name="allowedValues">
<list>
<value>Approve</value>
<value>Restart Review</value>
<value>Reject</value>
</list>
</parameter>
</constraint>
</constraints>
</property>
</overrides>
</type>
もちろん、カスタム シーケンス フローをワークフロー定義に追加する必要があります。
<exclusiveGateway id="reviewDecision" name="Review Decision"></exclusiveGateway>
<sequenceFlow id="flow3" name="" sourceRef="reviewDecision" targetRef="ReviewRejected">
<conditionExpression xsi:type="tFormalExpression">${wf_reviewOutcome == 'Reject'}</conditionExpression>
</sequenceFlow>
<sequenceFlow id="flow3" name="" sourceRef="reviewDecision" targetRef="RestartReview">
<conditionExpression xsi:type="tFormalExpression">${wf_reviewOutcome == 'Restart Review'}</conditionExpression>
</sequenceFlow>
...