Commit 26d15e9e authored by Łukasz Nowak's avatar Łukasz Nowak

Say who did transition and why.

parent 2f63699e
...@@ -52,10 +52,11 @@ ...@@ -52,10 +52,11 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>isTransitionPossible = context.getPortalObject().portal_workflow.isTransitionPossible\n <value> <string>isTransitionPossible = context.getPortalObject().portal_workflow.isTransitionPossible\n
if context.getSimulationState() == \'confirmed\' and len(context.checkConsistency()) == 0 and context.getCausalityState() == \'solved\':\n if context.getSimulationState() == \'confirmed\' and len(context.checkConsistency()) == 0 and context.getCausalityState() == \'solved\':\n
comment = \'Stopped by alarm as all actions in confirmed state are ready.\'\n
if isTransitionPossible(context, \'start\'):\n if isTransitionPossible(context, \'start\'):\n
context.start()\n context.start(comment=comment)\n
if isTransitionPossible(context, \'stop\'):\n if isTransitionPossible(context, \'stop\'):\n
context.stop()\n context.stop(comment=comment)\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
802 803
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment