Commit c094269d authored by Mame Coumba Sall's avatar Mame Coumba Sall

Modified wf condition to get transitions to be available even if causality state is in "draft"

- Now when a delivery is cloned and since Julien commit 5c09e2, scripts are no longer called to "start_building" and  "update_causality_state", the delivery therefore remains in draft state. Transitions that were waiting for the the delivery to be in a "solved" state were not available any longer.
parent bc8cbdf3
......@@ -10,6 +10,10 @@
<key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value>
</item>
<item>
<key> <string>actbox_icon</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>actbox_name</string> </key>
<value> <string>Restart Task</string> </value>
......@@ -57,10 +61,7 @@
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="Guard" module="Products.DCWorkflow.Guard"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
......@@ -83,16 +84,13 @@
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<tuple>
<global name="Expression" module="Products.CMFCore.Expression"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>python:(here.getCausalityState() == \'solved\')</string> </value>
<value> <string>python: here.getSimulationState() not in here.getPortalDraftOrderStateList()</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -10,6 +10,10 @@
<key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value>
</item>
<item>
<key> <string>actbox_icon</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>actbox_name</string> </key>
<value> <string>Start Task</string> </value>
......@@ -57,10 +61,7 @@
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="Guard" module="Products.DCWorkflow.Guard"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
......@@ -84,16 +85,13 @@
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<tuple>
<global name="Expression" module="Products.CMFCore.Expression"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>python:(here.getCausalityState() == \'solved\')</string> </value>
<value> <string>python: here.getSimulationState() not in here.getPortalDraftOrderStateList()</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -10,6 +10,10 @@
<key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value>
</item>
<item>
<key> <string>actbox_icon</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>actbox_name</string> </key>
<value> <string>Finish Task</string> </value>
......@@ -57,10 +61,7 @@
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="Guard" module="Products.DCWorkflow.Guard"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
......@@ -84,16 +85,13 @@
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<tuple>
<global name="Expression" module="Products.CMFCore.Expression"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>python:(here.getCausalityState() == \'solved\')</string> </value>
<value> <string>python: here.getSimulationState() not in here.getPortalDraftOrderStateList()</string> </value>
</item>
</dictionary>
</pickle>
......
830
\ No newline at end of file
831
\ 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