From a3c1a093d817efcad006ddef3bf3aa1f5e38aadb Mon Sep 17 00:00:00 2001 From: Romain Courteaud <romain@nexedi.com> Date: Mon, 10 Sep 2007 14:04:01 +0000 Subject: [PATCH] In task_report_causality_workflow, rename edit transition to calculate. Associate Task Report to delivery_causality_interaction_workflow. Associate Task Report Line to delivery_movement_causality_interaction_workflow. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16223 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../workflow_chain_type.xml | 4 +- .../scripts/PackingList_calculate.xml | 148 ++++++++++++++++++ .../states/diverged.xml | 8 +- .../states/solved.xml | 8 +- .../transitions/{edit.xml => calculate.xml} | 4 +- bt5/erp5_project/bt/revision | 2 +- .../template_portal_type_workflow_chain_list | 2 + 7 files changed, 169 insertions(+), 7 deletions(-) create mode 100644 bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_causality_workflow/scripts/PackingList_calculate.xml rename bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_causality_workflow/transitions/{edit.xml => calculate.xml} (94%) diff --git a/bt5/erp5_project/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml b/bt5/erp5_project/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml index 45e17d4083..313e337404 100644 --- a/bt5/erp5_project/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml +++ b/bt5/erp5_project/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml @@ -25,10 +25,10 @@ </chain> <chain> <type>Task Report</type> - <workflow>task_report_interaction_workflow, edit_workflow, task_report_causality_workflow, task_report_workflow</workflow> + <workflow>task_report_interaction_workflow, task_report_causality_workflow, edit_workflow, delivery_causality_interaction_workflow, task_report_workflow</workflow> </chain> <chain> <type>Task Report Line</type> - <workflow>task_report_interaction_workflow, edit_workflow</workflow> + <workflow>delivery_movement_causality_interaction_workflow, task_report_interaction_workflow, edit_workflow</workflow> </chain> </workflow_chain> \ No newline at end of file diff --git a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_causality_workflow/scripts/PackingList_calculate.xml b/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_causality_workflow/scripts/PackingList_calculate.xml new file mode 100644 index 0000000000..c6aeb19ea3 --- /dev/null +++ b/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_causality_workflow/scripts/PackingList_calculate.xml @@ -0,0 +1,148 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.PythonScripts.PythonScript</string> + <string>PythonScript</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Python_magic</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_body</string> </key> + <value> <string>context = state_change[\'object\']\n +if context.getSimulationState()!=\'draft\':\n + context.activate().updateCausalityState()\n +</string> </value> + </item> + <item> + <key> <string>_code</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_filepath</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>state_change,**kw</string> </value> + </item> + <item> + <key> <string>errors</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>func_code</string> </key> + <value> + <object> + <klass> + <global name="FuncCode" module="Shared.DC.Scripts.Signature"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>co_argcount</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>co_varnames</string> </key> + <value> + <tuple> + <string>state_change</string> + <string>kw</string> + <string>_getitem_</string> + <string>context</string> + <string>_getattr_</string> + </tuple> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>func_defaults</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>PackingList_calculate</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_causality_workflow/states/diverged.xml b/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_causality_workflow/states/diverged.xml index b9bf4eeaab..9211c88914 100644 --- a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_causality_workflow/states/diverged.xml +++ b/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_causality_workflow/states/diverged.xml @@ -44,14 +44,20 @@ <string>accept_decision_action</string> <string>adopt_prevision</string> <string>adopt_prevision_action</string> + <string>calculate</string> <string>converge</string> - <string>edit</string> <string>split_prevision</string> <string>split_prevision_action</string> <string>start_building</string> </tuple> </value> </item> + <item> + <key> <string>type_list</string> </key> + <value> + <tuple/> + </value> + </item> </dictionary> </pickle> </record> diff --git a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_causality_workflow/states/solved.xml b/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_causality_workflow/states/solved.xml index f6f41350af..cca08f364f 100644 --- a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_causality_workflow/states/solved.xml +++ b/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_causality_workflow/states/solved.xml @@ -40,12 +40,18 @@ <key> <string>transitions</string> </key> <value> <tuple> + <string>calculate</string> <string>diverge</string> - <string>edit</string> <string>start_building</string> </tuple> </value> </item> + <item> + <key> <string>type_list</string> </key> + <value> + <tuple/> + </value> + </item> </dictionary> </pickle> </record> diff --git a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_causality_workflow/transitions/edit.xml b/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_causality_workflow/transitions/calculate.xml similarity index 94% rename from bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_causality_workflow/transitions/edit.xml rename to bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_causality_workflow/transitions/calculate.xml index 2acf968ce6..fae7f45a5b 100644 --- a/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_causality_workflow/transitions/edit.xml +++ b/bt5/erp5_project/WorkflowTemplateItem/portal_workflow/task_report_causality_workflow/transitions/calculate.xml @@ -32,7 +32,7 @@ </item> <item> <key> <string>after_script_name</string> </key> - <value> <string>PackingList_afterEdit</string> </value> + <value> <string>PackingList_calculate</string> </value> </item> <item> <key> <string>description</string> </key> @@ -46,7 +46,7 @@ </item> <item> <key> <string>id</string> </key> - <value> <string>edit</string> </value> + <value> <string>calculate</string> </value> </item> <item> <key> <string>new_state_id</string> </key> diff --git a/bt5/erp5_project/bt/revision b/bt5/erp5_project/bt/revision index f3a5e81bae..2989c6c763 100644 --- a/bt5/erp5_project/bt/revision +++ b/bt5/erp5_project/bt/revision @@ -1 +1 @@ -281 \ No newline at end of file +283 \ No newline at end of file diff --git a/bt5/erp5_project/bt/template_portal_type_workflow_chain_list b/bt5/erp5_project/bt/template_portal_type_workflow_chain_list index f52ed868e6..8997d31467 100644 --- a/bt5/erp5_project/bt/template_portal_type_workflow_chain_list +++ b/bt5/erp5_project/bt/template_portal_type_workflow_chain_list @@ -6,8 +6,10 @@ Requirement | edit_workflow Requirement | requirement_analysis_workflow Task Line | edit_workflow Task Line | order_movement_simulation_interaction_workflow +Task Report Line | delivery_movement_causality_interaction_workflow Task Report Line | edit_workflow Task Report Line | task_report_interaction_workflow +Task Report | delivery_causality_interaction_workflow Task Report | edit_workflow Task Report | task_report_causality_workflow Task Report | task_report_interaction_workflow -- 2.30.9