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 @@
# it calls SaleInvoiceTransaction_postGenerationActivity when indexing is done \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
\n
sale_invoice.activate(\n
after_method_id=[\'immediateReindexObject\', \'recursiveImmediateReindexObject\']\n
).InvoiceTransaction_postGenerationActivity(**kw)\n
sale_invoice.activate(after_path_and_method_id=(related_simulation_movement_path_list,\n
(\'immediateReindexObject\',\'recursiveImmediateReindexObject\'))).InvoiceTransaction_postGenerationActivity(**kw)\n
</string> </value>
</item>
<item>
......@@ -99,7 +101,7 @@ sale_invoice.activate(\n
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>**kw</string> </value>
<value> <string>related_simulation_movement_path_list=None, **kw</string> </value>
</item>
<item>
<key> <string>errors</string> </key>
......@@ -119,13 +121,16 @@ sale_invoice.activate(\n
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>0</int> </value>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>related_simulation_movement_path_list</string>
<string>kw</string>
<string>None</string>
<string>RuntimeError</string>
<string>context</string>
<string>sale_invoice</string>
<string>_apply_</string>
......@@ -141,7 +146,9 @@ sale_invoice.activate(\n
<item>
<key> <string>func_defaults</string> </key>
<value>
<tuple>
<none/>
</tuple>
</value>
</item>
<item>
......
2007-02-12 kazuhiko
* use related_simulation_movement_path_list to reduce activity dependencies.
2007-12-6 jerome
* initial creation, from splitting erp5_accounting
\ No newline at end of file
17
\ No newline at end of file
18
\ No newline at end of file
......@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......@@ -68,7 +65,10 @@
</item>
<item>
<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
# First, copy Order properties\n
packing_list.PackingList_copyOrderProperties()\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
\n
# Then, modify state\n
activity = packing_list.activate(\n
after_method_id=[\'immediateReindexObject\',\n
\'recursiveImmediateReindexObject\'])\n
activity.Delivery_confirm()\n
confirm_tag = \'%s_confirm\' % packing_list.getPath()\n
packing_list.activate(after_path_and_method_id=(related_simulation_movement_path_list,\n
(\'immediateReindexObject\',\'recursiveImmediateReindexObject\')),\n
tag=confirm_tag).Delivery_confirm()\n
\n
# First set the packing_list in the building state\n
packing_list.startBuilding()\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_method_id=(\'immediateReindexObject\',\'recursiveImmediateReindexObject\',\'Delivery_confirm\')).updateCausalityState()\n
packing_list.activate(after_path_and_method_id=(related_simulation_movement_path_list,\n
(\'immediateReindexObject\',\'recursiveImmediateReindexObject\')),\n
after_tag=confirm_tag).updateCausalityState()\n
</string> </value>
</item>
<item>
......@@ -151,7 +152,7 @@ packing_list.activate(after_method_id=(\'immediateReindexObject\',\'recursiveImm
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
<value> <string>related_simulation_movement_path_list=None</string> </value>
</item>
<item>
<key> <string>errors</string> </key>
......@@ -171,24 +172,26 @@ packing_list.activate(after_method_id=(\'immediateReindexObject\',\'recursiveImm
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>0</int> </value>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>related_simulation_movement_path_list</string>
<string>None</string>
<string>RuntimeError</string>
<string>context</string>
<string>packing_list</string>
<string>_getattr_</string>
<string>related_order</string>
<string>source_person</string>
<string>destination_decision_person</string>
<string>None</string>
<string>from_email</string>
<string>getattr</string>
<string>email</string>
<string>msg</string>
<string>activity</string>
<string>confirm_tag</string>
</tuple>
</value>
</item>
......@@ -200,7 +203,9 @@ packing_list.activate(after_method_id=(\'immediateReindexObject\',\'recursiveImm
<item>
<key> <string>func_defaults</string> </key>
<value>
<tuple>
<none/>
</tuple>
</value>
</item>
<item>
......
2007-02-12 kazuhiko
* use related_simulation_movement_path_list to reduce activity dependencies.
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.
* Remove start_date and stop_date from task_report_causality_workflow.
......
389
\ No newline at end of file
390
\ No newline at end of file
......@@ -72,9 +72,7 @@ packing_list = context\n
# Modify state\n
packing_list_state = packing_list.getSimulationState()\n
if packing_list_state == "draft":\n
packing_list.portal_workflow.doActionFor(\n
packing_list, \'confirm_action\',\n
comment=Message(\'erp5_ui\', "Initialized by Delivery Builder"))\n
packing_list.confirm(comment=Message(\'erp5_ui\', \'Initialized by Delivery Builder\'))\n
</string> </value>
</item>
<item>
......
......@@ -65,22 +65,26 @@
</item>
<item>
<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
# First, copy Order properties\n
packing_list.PackingList_copyOrderProperties()\n
\n
# Then, modify state\n
activity = packing_list.activate(\n
after_method_id=[\'immediateReindexObject\',\n
\'recursiveImmediateReindexObject\'])\n
activity.Delivery_confirm()\n
confirm_tag = \'%s_confirm\' % packing_list.getPath()\n
packing_list.activate(after_path_and_method_id=(related_simulation_movement_path_list,\n
(\'immediateReindexObject\',\'recursiveImmediateReindexObject\')),\n
tag=confirm_tag).Delivery_confirm()\n
\n
# First set the packing_list in the building state\n
packing_list.startBuilding()\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_method_id=(\'immediateReindexObject\',\'recursiveImmediateReindexObject\',\'Delivery_confirm\')).updateCausalityState()\n
packing_list.activate(after_path_and_method_id=(related_simulation_movement_path_list,\n
(\'immediateReindexObject\',\'recursiveImmediateReindexObject\')),\n
after_tag=confirm_tag).updateCausalityState()\n
</string> </value>
</item>
<item>
......@@ -97,7 +101,7 @@ packing_list.activate(after_method_id=(\'immediateReindexObject\',\'recursiveImm
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
<value> <string>related_simulation_movement_path_list=None</string> </value>
</item>
<item>
<key> <string>errors</string> </key>
......@@ -117,16 +121,19 @@ packing_list.activate(after_method_id=(\'immediateReindexObject\',\'recursiveImm
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>0</int> </value>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>related_simulation_movement_path_list</string>
<string>None</string>
<string>RuntimeError</string>
<string>context</string>
<string>packing_list</string>
<string>_getattr_</string>
<string>activity</string>
<string>confirm_tag</string>
</tuple>
</value>
</item>
......@@ -138,7 +145,9 @@ packing_list.activate(after_method_id=(\'immediateReindexObject\',\'recursiveImm
<item>
<key> <string>func_defaults</string> </key>
<value>
<tuple>
<none/>
</tuple>
</value>
</item>
<item>
......
......@@ -65,7 +65,10 @@
</item>
<item>
<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
packing_list = context\n
\n
......@@ -76,15 +79,13 @@ packing_list.PackingList_copyOrderProperties()\n
packing_list_state = packing_list.getSimulationState()\n
\n
if packing_list_state == "draft":\n
packing_list.portal_workflow.doActionFor(\n
packing_list, \'confirm_action\',\n
comment=Message(\'erp5_ui\', "Initialized by Delivery Builder"))\n
packing_list.confirm(comment=Message(\'erp5_ui\', \'Initialized by Delivery Builder\'))\n
\n
# First set the packing_list in the building state\n
packing_list.startBuilding()\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_method_id=(\'immediateReindexObject\',\'recursiveImmediateReindexObject\',\'Delivery_confirm\')).updateCausalityState(fast=1)\n
packing_list.activate(after_path_and_method_id=(related_simulation_movement_path_list,\n
(\'immediateReindexObject\',\'recursiveImmediateReindexObject\'))).updateCausalityState(fast=1)\n
</string> </value>
</item>
<item>
......@@ -101,7 +102,7 @@ packing_list.activate(after_method_id=(\'immediateReindexObject\',\'recursiveImm
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
<value> <string>related_simulation_movement_path_list=None</string> </value>
</item>
<item>
<key> <string>errors</string> </key>
......@@ -121,12 +122,15 @@ packing_list.activate(after_method_id=(\'immediateReindexObject\',\'recursiveImm
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>0</int> </value>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>related_simulation_movement_path_list</string>
<string>None</string>
<string>RuntimeError</string>
<string>Products.ERP5Type.Message</string>
<string>Message</string>
<string>context</string>
......@@ -144,7 +148,9 @@ packing_list.activate(after_method_id=(\'immediateReindexObject\',\'recursiveImm
<item>
<key> <string>func_defaults</string> </key>
<value>
<tuple>
<none/>
</tuple>
</value>
</item>
<item>
......
2007-02-12 kazuhiko
* use related_simulation_movement_path_list to reduce activity dependencies.
2007-11-14 kazuhiko
* check if simulation state is draft or not before calling 'calculate' workflow method otherwise causality state can remain calculating.
......
181
\ No newline at end of file
182
\ 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