Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: By Design
-
Affects Version/s: 1.7
-
Fix Version/s: 1.7.1
-
Component/s: t2 maelstrom
-
Labels:None
Description
The Conditional Branching example does not work, because both constants fire, and one of them is picked by semi-random as the result.
The reason is that the conditional fireing still fires even on an error. A dummy workflow with a string constants "Coordinated from" a beanshell script that does Thread.sleep(5000), shows that coordination works in principle.
However, if the beanshell is changed to throw an Exception, the string constant will still be produced.
This is correct behaviour in T2 in terms of existing code. This is because errors at the moment get turned into error tokens and passed out in the data stream, the stream completes so the condition is satisfied. We need to implement the workflow / orchestration level failure mode but this particular behaviour is not a bug.