Enhancement
(User-visible)
When switching from one task to the next, a condition and an error text can be entered, which is output if the condition is not fulfilled. In this case it is not possible to switch to the next task.
Only an error can be output here. If there are different conditions why the transition is not possible, the same check must be done again in the error text to be able to output differentiated error messages.
Improvement
- The "condition" can be a res key for the error or directly an error text. In this case a transition is not possible.
- The "Condition" can return a Boolean.false to get a standard error text.
Data migration
- The condition must now return the error text.
- If the value <bed> is stored in the attribute "rule" of an object of type "tl.bpe.bpml#SequenceFlow" and the value <err> in the attribute "errorText" of the same object, the value for the attribute "rule" must be set to {{
x -> if ((<bed>).apply($x), null, (<err>).apply($x)) }}} should be changed.
- The value for the "errorText" attribute is omitted.
Test
TestTaskFinishErrorMessage_24590.script.xml