Commit e5d4da15 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

2007-02-12 kazuhiko

* use related_simulation_movement_path_list to reduce activity dependencies.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19283 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7fdf58d3
...@@ -72,11 +72,13 @@ ...@@ -72,11 +72,13 @@
# it calls SaleInvoiceTransaction_postGenerationActivity when indexing is done \n # it calls SaleInvoiceTransaction_postGenerationActivity when indexing is done \n
#\n #\n
\n \n
if related_simulation_movement_path_list is None:\n
raise RuntimeError, \'related_simulation_movement_path_list is missing. Update ERP5 Product.\'\n
\n
sale_invoice = context\n sale_invoice = context\n
\n \n
sale_invoice.activate(\n sale_invoice.activate(after_path_and_method_id=(related_simulation_movement_path_list,\n
after_method_id=[\'immediateReindexObject\', \'recursiveImmediateReindexObject\']\n (\'immediateReindexObject\',\'recursiveImmediateReindexObject\'))).InvoiceTransaction_postGenerationActivity(**kw)\n
).InvoiceTransaction_postGenerationActivity(**kw)\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -99,7 +101,7 @@ sale_invoice.activate(\n ...@@ -99,7 +101,7 @@ sale_invoice.activate(\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>**kw</string> </value> <value> <string>related_simulation_movement_path_list=None, **kw</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -119,13 +121,16 @@ sale_invoice.activate(\n ...@@ -119,13 +121,16 @@ sale_invoice.activate(\n
<dictionary> <dictionary>
<item> <item>
<key> <string>co_argcount</string> </key> <key> <string>co_argcount</string> </key>
<value> <int>0</int> </value> <value> <int>1</int> </value>
</item> </item>
<item> <item>
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <value>
<tuple> <tuple>
<string>related_simulation_movement_path_list</string>
<string>kw</string> <string>kw</string>
<string>None</string>
<string>RuntimeError</string>
<string>context</string> <string>context</string>
<string>sale_invoice</string> <string>sale_invoice</string>
<string>_apply_</string> <string>_apply_</string>
...@@ -141,7 +146,9 @@ sale_invoice.activate(\n ...@@ -141,7 +146,9 @@ sale_invoice.activate(\n
<item> <item>
<key> <string>func_defaults</string> </key> <key> <string>func_defaults</string> </key>
<value> <value>
<none/> <tuple>
<none/>
</tuple>
</value> </value>
</item> </item>
<item> <item>
......
2007-02-12 kazuhiko
* use related_simulation_movement_path_list to reduce activity dependencies.
2007-12-6 jerome 2007-12-6 jerome
* initial creation, from splitting erp5_accounting * initial creation, from splitting erp5_accounting
\ No newline at end of file
17 18
\ No newline at end of file \ No newline at end of file
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<string>Products.PythonScripts.PythonScript</string> <tuple/>
<string>PythonScript</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -68,7 +65,10 @@ ...@@ -68,7 +65,10 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>packing_list = context\n <value> <string>if related_simulation_movement_path_list is None:\n
raise RuntimeError, \'related_simulation_movement_path_list is missing. Update ERP5 Product.\'\n
\n
packing_list = context\n
\n \n
# First, copy Order properties\n # First, copy Order properties\n
packing_list.PackingList_copyOrderProperties()\n packing_list.PackingList_copyOrderProperties()\n
...@@ -125,16 +125,17 @@ Please wisit ERP5: %(url)s\n ...@@ -125,16 +125,17 @@ Please wisit ERP5: %(url)s\n
email.activate().send(from_url = from_email, subject="New Task Assigned to You", msg = msg)\n email.activate().send(from_url = from_email, subject="New Task Assigned to You", msg = msg)\n
\n \n
# Then, modify state\n # Then, modify state\n
activity = packing_list.activate(\n confirm_tag = \'%s_confirm\' % packing_list.getPath()\n
after_method_id=[\'immediateReindexObject\',\n packing_list.activate(after_path_and_method_id=(related_simulation_movement_path_list,\n
\'recursiveImmediateReindexObject\'])\n (\'immediateReindexObject\',\'recursiveImmediateReindexObject\')),\n
activity.Delivery_confirm()\n tag=confirm_tag).Delivery_confirm()\n
\n \n
# First set the packing_list in the building state\n # First set the packing_list in the building state\n
packing_list.startBuilding()\n packing_list.startBuilding()\n
# Then an activity should put the causality state in diverged or solved\n # Then an activity should put the causality state in diverged or solved\n
# XXX after_method_id is not good, it should be after_group_id, but not yet implemented\n packing_list.activate(after_path_and_method_id=(related_simulation_movement_path_list,\n
packing_list.activate(after_method_id=(\'immediateReindexObject\',\'recursiveImmediateReindexObject\',\'Delivery_confirm\')).updateCausalityState()\n (\'immediateReindexObject\',\'recursiveImmediateReindexObject\')),\n
after_tag=confirm_tag).updateCausalityState()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -151,7 +152,7 @@ packing_list.activate(after_method_id=(\'immediateReindexObject\',\'recursiveImm ...@@ -151,7 +152,7 @@ packing_list.activate(after_method_id=(\'immediateReindexObject\',\'recursiveImm
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string></string> </value> <value> <string>related_simulation_movement_path_list=None</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -171,24 +172,26 @@ packing_list.activate(after_method_id=(\'immediateReindexObject\',\'recursiveImm ...@@ -171,24 +172,26 @@ packing_list.activate(after_method_id=(\'immediateReindexObject\',\'recursiveImm
<dictionary> <dictionary>
<item> <item>
<key> <string>co_argcount</string> </key> <key> <string>co_argcount</string> </key>
<value> <int>0</int> </value> <value> <int>1</int> </value>
</item> </item>
<item> <item>
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <value>
<tuple> <tuple>
<string>related_simulation_movement_path_list</string>
<string>None</string>
<string>RuntimeError</string>
<string>context</string> <string>context</string>
<string>packing_list</string> <string>packing_list</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>related_order</string> <string>related_order</string>
<string>source_person</string> <string>source_person</string>
<string>destination_decision_person</string> <string>destination_decision_person</string>
<string>None</string>
<string>from_email</string> <string>from_email</string>
<string>getattr</string> <string>getattr</string>
<string>email</string> <string>email</string>
<string>msg</string> <string>msg</string>
<string>activity</string> <string>confirm_tag</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -200,7 +203,9 @@ packing_list.activate(after_method_id=(\'immediateReindexObject\',\'recursiveImm ...@@ -200,7 +203,9 @@ packing_list.activate(after_method_id=(\'immediateReindexObject\',\'recursiveImm
<item> <item>
<key> <string>func_defaults</string> </key> <key> <string>func_defaults</string> </key>
<value> <value>
<none/> <tuple>
<none/>
</tuple>
</value> </value>
</item> </item>
<item> <item>
......
2007-02-12 kazuhiko
* use related_simulation_movement_path_list to reduce activity dependencies.
2007-12-13 yo 2007-12-13 yo
* Since Requirement Document is not associated with any workflow to manage security, it didn't make sense not to acquire local roles. * Since Requirement Document is not associated with any workflow to manage security, it didn't make sense not to acquire local roles.
* Remove start_date and stop_date from task_report_causality_workflow. * Remove start_date and stop_date from task_report_causality_workflow.
......
389 390
\ No newline at end of file \ No newline at end of file
...@@ -72,9 +72,7 @@ packing_list = context\n ...@@ -72,9 +72,7 @@ packing_list = context\n
# Modify state\n # Modify state\n
packing_list_state = packing_list.getSimulationState()\n packing_list_state = packing_list.getSimulationState()\n
if packing_list_state == "draft":\n if packing_list_state == "draft":\n
packing_list.portal_workflow.doActionFor(\n packing_list.confirm(comment=Message(\'erp5_ui\', \'Initialized by Delivery Builder\'))\n
packing_list, \'confirm_action\',\n
comment=Message(\'erp5_ui\', "Initialized by Delivery Builder"))\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
...@@ -65,22 +65,26 @@ ...@@ -65,22 +65,26 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>packing_list = context\n <value> <string>if related_simulation_movement_path_list is None:\n
raise RuntimeError, \'related_simulation_movement_path_list is missing. Update ERP5 Product.\'\n
\n
packing_list = context\n
\n \n
# First, copy Order properties\n # First, copy Order properties\n
packing_list.PackingList_copyOrderProperties()\n packing_list.PackingList_copyOrderProperties()\n
\n \n
# Then, modify state\n # Then, modify state\n
activity = packing_list.activate(\n confirm_tag = \'%s_confirm\' % packing_list.getPath()\n
after_method_id=[\'immediateReindexObject\',\n packing_list.activate(after_path_and_method_id=(related_simulation_movement_path_list,\n
\'recursiveImmediateReindexObject\'])\n (\'immediateReindexObject\',\'recursiveImmediateReindexObject\')),\n
activity.Delivery_confirm()\n tag=confirm_tag).Delivery_confirm()\n
\n \n
# First set the packing_list in the building state\n # First set the packing_list in the building state\n
packing_list.startBuilding()\n packing_list.startBuilding()\n
# Then an activity should put the causality state in diverged or solved\n # Then an activity should put the causality state in diverged or solved\n
# XXX after_method_id is not good, it should be after_group_id, but not yet implemented\n packing_list.activate(after_path_and_method_id=(related_simulation_movement_path_list,\n
packing_list.activate(after_method_id=(\'immediateReindexObject\',\'recursiveImmediateReindexObject\',\'Delivery_confirm\')).updateCausalityState()\n (\'immediateReindexObject\',\'recursiveImmediateReindexObject\')),\n
after_tag=confirm_tag).updateCausalityState()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -97,7 +101,7 @@ packing_list.activate(after_method_id=(\'immediateReindexObject\',\'recursiveImm ...@@ -97,7 +101,7 @@ packing_list.activate(after_method_id=(\'immediateReindexObject\',\'recursiveImm
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string></string> </value> <value> <string>related_simulation_movement_path_list=None</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -117,16 +121,19 @@ packing_list.activate(after_method_id=(\'immediateReindexObject\',\'recursiveImm ...@@ -117,16 +121,19 @@ packing_list.activate(after_method_id=(\'immediateReindexObject\',\'recursiveImm
<dictionary> <dictionary>
<item> <item>
<key> <string>co_argcount</string> </key> <key> <string>co_argcount</string> </key>
<value> <int>0</int> </value> <value> <int>1</int> </value>
</item> </item>
<item> <item>
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <value>
<tuple> <tuple>
<string>related_simulation_movement_path_list</string>
<string>None</string>
<string>RuntimeError</string>
<string>context</string> <string>context</string>
<string>packing_list</string> <string>packing_list</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>activity</string> <string>confirm_tag</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -138,7 +145,9 @@ packing_list.activate(after_method_id=(\'immediateReindexObject\',\'recursiveImm ...@@ -138,7 +145,9 @@ packing_list.activate(after_method_id=(\'immediateReindexObject\',\'recursiveImm
<item> <item>
<key> <string>func_defaults</string> </key> <key> <string>func_defaults</string> </key>
<value> <value>
<none/> <tuple>
<none/>
</tuple>
</value> </value>
</item> </item>
<item> <item>
......
...@@ -65,7 +65,10 @@ ...@@ -65,7 +65,10 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>from Products.ERP5Type.Message import Message\n <value> <string>if related_simulation_movement_path_list is None:\n
raise RuntimeError, \'related_simulation_movement_path_list is missing. Update ERP5 Product.\'\n
\n
from Products.ERP5Type.Message import Message\n
\n \n
packing_list = context\n packing_list = context\n
\n \n
...@@ -76,15 +79,13 @@ packing_list.PackingList_copyOrderProperties()\n ...@@ -76,15 +79,13 @@ packing_list.PackingList_copyOrderProperties()\n
packing_list_state = packing_list.getSimulationState()\n packing_list_state = packing_list.getSimulationState()\n
\n \n
if packing_list_state == "draft":\n if packing_list_state == "draft":\n
packing_list.portal_workflow.doActionFor(\n packing_list.confirm(comment=Message(\'erp5_ui\', \'Initialized by Delivery Builder\'))\n
packing_list, \'confirm_action\',\n
comment=Message(\'erp5_ui\', "Initialized by Delivery Builder"))\n
\n \n
# First set the packing_list in the building state\n # First set the packing_list in the building state\n
packing_list.startBuilding()\n packing_list.startBuilding()\n
# Then an activity should put the causality state in diverged or solved\n # Then an activity should put the causality state in diverged or solved\n
# XXX after_method_id is not good, it should be after_group_id, but not yet implemented\n packing_list.activate(after_path_and_method_id=(related_simulation_movement_path_list,\n
packing_list.activate(after_method_id=(\'immediateReindexObject\',\'recursiveImmediateReindexObject\',\'Delivery_confirm\')).updateCausalityState(fast=1)\n (\'immediateReindexObject\',\'recursiveImmediateReindexObject\'))).updateCausalityState(fast=1)\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -101,7 +102,7 @@ packing_list.activate(after_method_id=(\'immediateReindexObject\',\'recursiveImm ...@@ -101,7 +102,7 @@ packing_list.activate(after_method_id=(\'immediateReindexObject\',\'recursiveImm
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string></string> </value> <value> <string>related_simulation_movement_path_list=None</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -121,12 +122,15 @@ packing_list.activate(after_method_id=(\'immediateReindexObject\',\'recursiveImm ...@@ -121,12 +122,15 @@ packing_list.activate(after_method_id=(\'immediateReindexObject\',\'recursiveImm
<dictionary> <dictionary>
<item> <item>
<key> <string>co_argcount</string> </key> <key> <string>co_argcount</string> </key>
<value> <int>0</int> </value> <value> <int>1</int> </value>
</item> </item>
<item> <item>
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <value>
<tuple> <tuple>
<string>related_simulation_movement_path_list</string>
<string>None</string>
<string>RuntimeError</string>
<string>Products.ERP5Type.Message</string> <string>Products.ERP5Type.Message</string>
<string>Message</string> <string>Message</string>
<string>context</string> <string>context</string>
...@@ -144,7 +148,9 @@ packing_list.activate(after_method_id=(\'immediateReindexObject\',\'recursiveImm ...@@ -144,7 +148,9 @@ packing_list.activate(after_method_id=(\'immediateReindexObject\',\'recursiveImm
<item> <item>
<key> <string>func_defaults</string> </key> <key> <string>func_defaults</string> </key>
<value> <value>
<none/> <tuple>
<none/>
</tuple>
</value> </value>
</item> </item>
<item> <item>
......
2007-02-12 kazuhiko
* use related_simulation_movement_path_list to reduce activity dependencies.
2007-11-14 kazuhiko 2007-11-14 kazuhiko
* check if simulation state is draft or not before calling 'calculate' workflow method otherwise causality state can remain calculating. * check if simulation state is draft or not before calling 'calculate' workflow method otherwise causality state can remain calculating.
......
181 182
\ 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