[Erp5-report] r28196 - in /erp5/trunk/bt5/erp5_bpm: PortalTypeWorkflowChainTemplateItem/ Wo...
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Jul 28 17:43:00 CEST 2009
Author: luke
Date: Tue Jul 28 17:43:00 2009
New Revision: 28196
URL: http://svn.erp5.org?rev=28196&view=rev
Log:
- implement example of detached, but interactive, building process using interaction workflow reacting on delivery state change
Added:
erp5/trunk/bt5/erp5_bpm/WorkflowTemplateItem/portal_workflow/delivery_build_interaction_workflow/
erp5/trunk/bt5/erp5_bpm/WorkflowTemplateItem/portal_workflow/delivery_build_interaction_workflow.xml
erp5/trunk/bt5/erp5_bpm/WorkflowTemplateItem/portal_workflow/delivery_build_interaction_workflow/interactions/
erp5/trunk/bt5/erp5_bpm/WorkflowTemplateItem/portal_workflow/delivery_build_interaction_workflow/interactions.xml
erp5/trunk/bt5/erp5_bpm/WorkflowTemplateItem/portal_workflow/delivery_build_interaction_workflow/interactions/order_confirm.xml
erp5/trunk/bt5/erp5_bpm/WorkflowTemplateItem/portal_workflow/delivery_build_interaction_workflow/scripts/
erp5/trunk/bt5/erp5_bpm/WorkflowTemplateItem/portal_workflow/delivery_build_interaction_workflow/scripts.xml
erp5/trunk/bt5/erp5_bpm/WorkflowTemplateItem/portal_workflow/delivery_build_interaction_workflow/scripts/Delivery_build.xml
erp5/trunk/bt5/erp5_bpm/WorkflowTemplateItem/portal_workflow/delivery_build_interaction_workflow/variables.xml
erp5/trunk/bt5/erp5_bpm/WorkflowTemplateItem/portal_workflow/delivery_build_interaction_workflow/worklists.xml
Modified:
erp5/trunk/bt5/erp5_bpm/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml
erp5/trunk/bt5/erp5_bpm/bt/revision
erp5/trunk/bt5/erp5_bpm/bt/template_portal_type_workflow_chain_list
erp5/trunk/bt5/erp5_bpm/bt/template_workflow_id_list
Modified: erp5/trunk/bt5/erp5_bpm/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_bpm/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml?rev=28196&r1=28195&r2=28196&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_bpm/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_bpm/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml [utf8] Tue Jul 28 17:43:00 2009
@@ -15,4 +15,8 @@
<type>BPM Order Rule</type>
<workflow>rule_validation_workflow, edit_workflow</workflow>
</chain>
+ <chain>
+ <type>Sale Order</type>
+ <workflow>delivery_build_interaction_workflow</workflow>
+ </chain>
</workflow_chain>
Added: erp5/trunk/bt5/erp5_bpm/WorkflowTemplateItem/portal_workflow/delivery_build_interaction_workflow.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_bpm/WorkflowTemplateItem/portal_workflow/delivery_build_interaction_workflow.xml?rev=28196&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_bpm/WorkflowTemplateItem/portal_workflow/delivery_build_interaction_workflow.xml (added)
+++ erp5/trunk/bt5/erp5_bpm/WorkflowTemplateItem/portal_workflow/delivery_build_interaction_workflow.xml [utf8] Tue Jul 28 17:43:00 2009
@@ -1,0 +1,49 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <global name="InteractionWorkflowDefinition" module="Products.ERP5.InteractionWorkflow"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>_objects</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>creation_guard</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>description</string> </key>
+ <value> <string>Exmaple of BPM enabled building of deliveries after passing workflow transitions</string> </value>
+ </item>
+ <item>
+ <key> <string>groups</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>delivery_build_interaction_workflow</string> </value>
+ </item>
+ <item>
+ <key> <string>manager_bypass</string> </key>
+ <value> <int>0</int> </value>
+ </item>
+ <item>
+ <key> <string>title</string> </key>
+ <value> <string>Building deliveries after passing transition Interaction Workflow</string> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Added: erp5/trunk/bt5/erp5_bpm/WorkflowTemplateItem/portal_workflow/delivery_build_interaction_workflow/interactions.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_bpm/WorkflowTemplateItem/portal_workflow/delivery_build_interaction_workflow/interactions.xml?rev=28196&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_bpm/WorkflowTemplateItem/portal_workflow/delivery_build_interaction_workflow/interactions.xml (added)
+++ erp5/trunk/bt5/erp5_bpm/WorkflowTemplateItem/portal_workflow/delivery_build_interaction_workflow/interactions.xml [utf8] Tue Jul 28 17:43:00 2009
@@ -1,0 +1,31 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <global name="Interaction" module="Products.ERP5.Interaction"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>_mapping</string> </key>
+ <value>
+ <dictionary/>
+ </value>
+ </item>
+ <item>
+ <key> <string>_objects</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>interactions</string> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Added: erp5/trunk/bt5/erp5_bpm/WorkflowTemplateItem/portal_workflow/delivery_build_interaction_workflow/interactions/order_confirm.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_bpm/WorkflowTemplateItem/portal_workflow/delivery_build_interaction_workflow/interactions/order_confirm.xml?rev=28196&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_bpm/WorkflowTemplateItem/portal_workflow/delivery_build_interaction_workflow/interactions/order_confirm.xml (added)
+++ erp5/trunk/bt5/erp5_bpm/WorkflowTemplateItem/portal_workflow/delivery_build_interaction_workflow/interactions/order_confirm.xml [utf8] Tue Jul 28 17:43:00 2009
@@ -1,0 +1,95 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <global name="InteractionDefinition" module="Products.ERP5.Interaction"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>actbox_category</string> </key>
+ <value> <string>workflow</string> </value>
+ </item>
+ <item>
+ <key> <string>actbox_name</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
+ <key> <string>actbox_url</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
+ <key> <string>activate_script_name</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>after_script_name</string> </key>
+ <value>
+ <list>
+ <string>Delivery_build</string>
+ </list>
+ </value>
+ </item>
+ <item>
+ <key> <string>before_commit_script_name</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>description</string> </key>
+ <value> <string></string> </value>
+ </item>
+ <item>
+ <key> <string>guard</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>order_confirm</string> </value>
+ </item>
+ <item>
+ <key> <string>method_id</string> </key>
+ <value>
+ <list>
+ <string>confirm</string>
+ </list>
+ </value>
+ </item>
+ <item>
+ <key> <string>once_per_transaction</string> </key>
+ <value> <int>0</int> </value>
+ </item>
+ <item>
+ <key> <string>portal_type_filter</string> </key>
+ <value>
+ <list>
+ <string>Sale Order</string>
+ </list>
+ </value>
+ </item>
+ <item>
+ <key> <string>script_name</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>title</string> </key>
+ <value> <string>Build Order after confirming</string> </value>
+ </item>
+ <item>
+ <key> <string>trigger_type</string> </key>
+ <value> <int>2</int> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Added: erp5/trunk/bt5/erp5_bpm/WorkflowTemplateItem/portal_workflow/delivery_build_interaction_workflow/scripts.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_bpm/WorkflowTemplateItem/portal_workflow/delivery_build_interaction_workflow/scripts.xml?rev=28196&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_bpm/WorkflowTemplateItem/portal_workflow/delivery_build_interaction_workflow/scripts.xml (added)
+++ erp5/trunk/bt5/erp5_bpm/WorkflowTemplateItem/portal_workflow/delivery_build_interaction_workflow/scripts.xml [utf8] Tue Jul 28 17:43:00 2009
@@ -1,0 +1,31 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <global name="Scripts" module="Products.DCWorkflow.Scripts"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>_mapping</string> </key>
+ <value>
+ <dictionary/>
+ </value>
+ </item>
+ <item>
+ <key> <string>_objects</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>scripts</string> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Added: erp5/trunk/bt5/erp5_bpm/WorkflowTemplateItem/portal_workflow/delivery_build_interaction_workflow/scripts/Delivery_build.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_bpm/WorkflowTemplateItem/portal_workflow/delivery_build_interaction_workflow/scripts/Delivery_build.xml?rev=28196&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_bpm/WorkflowTemplateItem/portal_workflow/delivery_build_interaction_workflow/scripts/Delivery_build.xml (added)
+++ erp5/trunk/bt5/erp5_bpm/WorkflowTemplateItem/portal_workflow/delivery_build_interaction_workflow/scripts/Delivery_build.xml [utf8] Tue Jul 28 17:43:00 2009
@@ -1,0 +1,134 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>Script_magic</string> </key>
+ <value> <int>3</int> </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>delivery = state_change[\'object\']\n
+business_process = delivery.getRootSpecialiseValue(portal_type_list=[\'Business Process\'])\n
+if business_process is not None:\n
+ # XXX: after_method_id is only for example in this case\n
+ business_process.activate(activity=\'SQLQueue\', after_method_id = [ \'expand\',\n
+ \'recursiveImmediateReindexObject\',\n
+ \'updateAppliedRule\',\n
+ \'immediateReindexObject\' ],\n
+ ).build(delivery.getRelativeUrl())\n
+</string> </value>
+ </item>
+ <item>
+ <key> <string>_code</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>_params</string> </key>
+ <value> <string>state_change</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>_getitem_</string>
+ <string>delivery</string>
+ <string>_getattr_</string>
+ <string>business_process</string>
+ <string>None</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>Delivery_build</string> </value>
+ </item>
+ <item>
+ <key> <string>warnings</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Added: erp5/trunk/bt5/erp5_bpm/WorkflowTemplateItem/portal_workflow/delivery_build_interaction_workflow/variables.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_bpm/WorkflowTemplateItem/portal_workflow/delivery_build_interaction_workflow/variables.xml?rev=28196&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_bpm/WorkflowTemplateItem/portal_workflow/delivery_build_interaction_workflow/variables.xml (added)
+++ erp5/trunk/bt5/erp5_bpm/WorkflowTemplateItem/portal_workflow/delivery_build_interaction_workflow/variables.xml [utf8] Tue Jul 28 17:43:00 2009
@@ -1,0 +1,25 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <global name="Variables" module="Products.DCWorkflow.Variables"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>_mapping</string> </key>
+ <value>
+ <dictionary/>
+ </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>variables</string> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Added: erp5/trunk/bt5/erp5_bpm/WorkflowTemplateItem/portal_workflow/delivery_build_interaction_workflow/worklists.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_bpm/WorkflowTemplateItem/portal_workflow/delivery_build_interaction_workflow/worklists.xml?rev=28196&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_bpm/WorkflowTemplateItem/portal_workflow/delivery_build_interaction_workflow/worklists.xml (added)
+++ erp5/trunk/bt5/erp5_bpm/WorkflowTemplateItem/portal_workflow/delivery_build_interaction_workflow/worklists.xml [utf8] Tue Jul 28 17:43:00 2009
@@ -1,0 +1,25 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <global name="Worklists" module="Products.DCWorkflow.Worklists"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>_mapping</string> </key>
+ <value>
+ <dictionary/>
+ </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>worklists</string> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Modified: erp5/trunk/bt5/erp5_bpm/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_bpm/bt/revision?rev=28196&r1=28195&r2=28196&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_bpm/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_bpm/bt/revision [utf8] Tue Jul 28 17:43:00 2009
@@ -1,1 +1,1 @@
-229
+230
Modified: erp5/trunk/bt5/erp5_bpm/bt/template_portal_type_workflow_chain_list
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_bpm/bt/template_portal_type_workflow_chain_list?rev=28196&r1=28195&r2=28196&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_bpm/bt/template_portal_type_workflow_chain_list [utf8] (original)
+++ erp5/trunk/bt5/erp5_bpm/bt/template_portal_type_workflow_chain_list [utf8] Tue Jul 28 17:43:00 2009
@@ -6,4 +6,5 @@
BPM Invoicing Rule | edit_workflow
BPM Invoicing Rule | rule_validation_workflow
BPM Order Rule | edit_workflow
-BPM Order Rule | rule_validation_workflow
+BPM Order Rule | rule_validation_workflow
+Sale Order | delivery_build_interaction_workflow
Modified: erp5/trunk/bt5/erp5_bpm/bt/template_workflow_id_list
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_bpm/bt/template_workflow_id_list?rev=28196&r1=28195&r2=28196&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_bpm/bt/template_workflow_id_list [utf8] (original)
+++ erp5/trunk/bt5/erp5_bpm/bt/template_workflow_id_list [utf8] Tue Jul 28 17:43:00 2009
@@ -1,3 +1,4 @@
+delivery_build_interaction_workflow
delivery_causality_workflow
order_workflow
packing_list_workflow
More information about the Erp5-report
mailing list