I have the following code in my process definiton:
<task-node name="viewBill"> <event type="node-leave"> <script> <variable name="success" access="write" /> <expression>"#{billAction.success}"</expression> </script> </event> <transition to="successful" name="toSuccessful"></transition> </task-node> <decision name="successful" expression="#{billAction.success}"> <transition to="success" name="true"></transition> <transition to="failure" name="false"></transition> </decision>
please make a unit test that demonstrates the problem without using the console... and embed the processdefinition as a string in the test