[Erp5-report] r16263 - in /erp5/trunk/bt5/erp5_crm: PortalTypeWorkflowChainTemplateItem/ Wo...
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Sep 11 14:39:16 CEST 2007
Author: yusei
Date: Tue Sep 11 14:39:16 2007
New Revision: 16263
URL: http://svn.erp5.org?rev=16263&view=rev
Log:
2007-09-11 Yusei
* Add two interaction workflows for ticket and event to update local roles after editing.
Added:
erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/
erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow.xml
erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/interactions/
erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/interactions.xml
erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/interactions/Event_set.xml
erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/scripts/
erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/scripts.xml
erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/scripts/updateLocalRoles.xml
erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/variables.xml
erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/worklists.xml
erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/
erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow.xml
erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/interactions/
erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/interactions.xml
erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/interactions/Ticket_set.xml
erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/scripts/
erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/scripts.xml
erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/scripts/updateLocalRolesAndEventsLocalRoles.xml
erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/variables.xml
erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/worklists.xml
Modified:
erp5/trunk/bt5/erp5_crm/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml
erp5/trunk/bt5/erp5_crm/bt/change_log
erp5/trunk/bt5/erp5_crm/bt/revision
erp5/trunk/bt5/erp5_crm/bt/template_portal_type_workflow_chain_list
erp5/trunk/bt5/erp5_crm/bt/template_workflow_id_list
Modified: erp5/trunk/bt5/erp5_crm/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml?rev=16263&r1=16262&r2=16263&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_crm/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml (original)
+++ erp5/trunk/bt5/erp5_crm/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml Tue Sep 11 14:39:16 2007
@@ -1,42 +1,42 @@
<workflow_chain>
<chain>
<type>Campaign</type>
- <workflow>edit_workflow, ticket_workflow</workflow>
+ <workflow>edit_workflow, ticket_workflow, ticket_interaction_workflow</workflow>
</chain>
<chain>
<type>Fax Message</type>
- <workflow>event_workflow, edit_workflow</workflow>
+ <workflow>edit_workflow, event_interaction_workflow, event_workflow</workflow>
</chain>
<chain>
<type>Letter</type>
- <workflow>event_workflow, edit_workflow</workflow>
+ <workflow>event_interaction_workflow, edit_workflow, event_workflow</workflow>
</chain>
<chain>
<type>Mail Message</type>
- <workflow>edit_workflow, event_workflow</workflow>
+ <workflow>edit_workflow, event_workflow, event_interaction_workflow</workflow>
</chain>
<chain>
<type>Meeting</type>
- <workflow>edit_workflow, ticket_workflow</workflow>
+ <workflow>edit_workflow, ticket_workflow, ticket_interaction_workflow</workflow>
</chain>
<chain>
<type>Note</type>
- <workflow>edit_workflow, event_workflow</workflow>
+ <workflow>event_workflow, edit_workflow, event_interaction_workflow</workflow>
</chain>
<chain>
<type>Phone Call</type>
- <workflow>event_workflow, edit_workflow</workflow>
+ <workflow>event_interaction_workflow, event_workflow, edit_workflow</workflow>
</chain>
<chain>
<type>Sale Opportunity</type>
- <workflow>edit_workflow, sale_opportunity_workflow</workflow>
+ <workflow>ticket_interaction_workflow, sale_opportunity_workflow, edit_workflow</workflow>
</chain>
<chain>
<type>Support Request</type>
- <workflow>ticket_workflow, edit_workflow</workflow>
+ <workflow>edit_workflow, ticket_interaction_workflow, ticket_workflow</workflow>
</chain>
<chain>
<type>Visit</type>
- <workflow>edit_workflow, event_workflow</workflow>
+ <workflow>edit_workflow, event_interaction_workflow, event_workflow</workflow>
</chain>
</workflow_chain>
Added: erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow.xml?rev=16263&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow.xml (added)
+++ erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow.xml Tue Sep 11 14:39:16 2007
@@ -1,0 +1,40 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <tuple>
+ <string>Products.ERP5.InteractionWorkflow</string>
+ <string>InteractionWorkflowDefinition</string>
+ </tuple>
+ <none/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>__ac_local_roles__</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>_objects</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>groups</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>event_interaction_workflow</string> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Added: erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/interactions.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/interactions.xml?rev=16263&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/interactions.xml (added)
+++ erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/interactions.xml Tue Sep 11 14:39:16 2007
@@ -1,0 +1,40 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <tuple>
+ <string>Products.ERP5.Interaction</string>
+ <string>Interaction</string>
+ </tuple>
+ <none/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>__ac_local_roles__</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <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_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/interactions/Event_set.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/interactions/Event_set.xml?rev=16263&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/interactions/Event_set.xml (added)
+++ erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/interactions/Event_set.xml Tue Sep 11 14:39:16 2007
@@ -1,0 +1,108 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <tuple>
+ <string>Products.ERP5.Interaction</string>
+ <string>InteractionDefinition</string>
+ </tuple>
+ <none/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>__ac_local_roles__</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <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>updateLocalRoles</string>
+ </list>
+ </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>Event_set</string> </value>
+ </item>
+ <item>
+ <key> <string>method_id</string> </key>
+ <value>
+ <list>
+ <string>_setSourceValue</string>
+ <string>_setSourceValueList</string>
+ <string>_setDestinationValue</string>
+ <string>_setDestinationValueList</string>
+ <string>setFollowUpValue</string>
+ <string>setFollowUpValueList</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>Fax Message</string>
+ <string>Letter</string>
+ <string>Mail Message</string>
+ <string>Note</string>
+ <string>Phone Call</string>
+ <string>Visit</string>
+ </list>
+ </value>
+ </item>
+ <item>
+ <key> <string>script_name</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>title</string> </key>
+ <value> <string></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_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/scripts.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/scripts.xml?rev=16263&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/scripts.xml (added)
+++ erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/scripts.xml Tue Sep 11 14:39:16 2007
@@ -1,0 +1,40 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <tuple>
+ <string>Products.DCWorkflow.Scripts</string>
+ <string>Scripts</string>
+ </tuple>
+ <none/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>__ac_local_roles__</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <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_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/scripts/updateLocalRoles.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/scripts/updateLocalRoles.xml?rev=16263&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/scripts/updateLocalRoles.xml (added)
+++ erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/scripts/updateLocalRoles.xml Tue Sep 11 14:39:16 2007
@@ -1,0 +1,152 @@
+<?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>state_change[\'object\'].updateLocalRolesOnSecurityGroups()\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</string> </value>
+ </item>
+ <item>
+ <key> <string>_proxy_roles</string> </key>
+ <value>
+ <tuple>
+ <string>Manager</string>
+ </tuple>
+ </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>_getattr_</string>
+ <string>_getitem_</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>updateLocalRoles</string> </value>
+ </item>
+ <item>
+ <key> <string>warnings</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Added: erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/variables.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/variables.xml?rev=16263&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/variables.xml (added)
+++ erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/variables.xml Tue Sep 11 14:39:16 2007
@@ -1,0 +1,34 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <tuple>
+ <string>Products.DCWorkflow.Variables</string>
+ <string>Variables</string>
+ </tuple>
+ <none/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>__ac_local_roles__</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <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_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/worklists.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/worklists.xml?rev=16263&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/worklists.xml (added)
+++ erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/worklists.xml Tue Sep 11 14:39:16 2007
@@ -1,0 +1,34 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <tuple>
+ <string>Products.DCWorkflow.Worklists</string>
+ <string>Worklists</string>
+ </tuple>
+ <none/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>__ac_local_roles__</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <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>
Added: erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow.xml?rev=16263&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow.xml (added)
+++ erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow.xml Tue Sep 11 14:39:16 2007
@@ -1,0 +1,40 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <tuple>
+ <string>Products.ERP5.InteractionWorkflow</string>
+ <string>InteractionWorkflowDefinition</string>
+ </tuple>
+ <none/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>__ac_local_roles__</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <item>
+ <key> <string>_objects</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>groups</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>id</string> </key>
+ <value> <string>ticket_interaction_workflow</string> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Added: erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/interactions.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/interactions.xml?rev=16263&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/interactions.xml (added)
+++ erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/interactions.xml Tue Sep 11 14:39:16 2007
@@ -1,0 +1,40 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <tuple>
+ <string>Products.ERP5.Interaction</string>
+ <string>Interaction</string>
+ </tuple>
+ <none/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>__ac_local_roles__</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <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_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/interactions/Ticket_set.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/interactions/Ticket_set.xml?rev=16263&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/interactions/Ticket_set.xml (added)
+++ erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/interactions/Ticket_set.xml Tue Sep 11 14:39:16 2007
@@ -1,0 +1,106 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <tuple>
+ <string>Products.ERP5.Interaction</string>
+ <string>InteractionDefinition</string>
+ </tuple>
+ <none/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>__ac_local_roles__</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <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>updateLocalRolesAndEventsLocalRoles</string>
+ </list>
+ </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>Ticket_set</string> </value>
+ </item>
+ <item>
+ <key> <string>method_id</string> </key>
+ <value>
+ <list>
+ <string>_setSourceValue</string>
+ <string>_setSourceValueList</string>
+ <string>_setSourceDecisionValue</string>
+ <string>_setSourceDecisionValueList</string>
+ <string>_setSourceTradeValue</string>
+ <string>_setSourceTradeValueList</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>Campaign</string>
+ <string>Meeting</string>
+ <string>Sale Opportunity</string>
+ <string>Support Request</string>
+ </list>
+ </value>
+ </item>
+ <item>
+ <key> <string>script_name</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ <item>
+ <key> <string>title</string> </key>
+ <value> <string></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_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/scripts.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/scripts.xml?rev=16263&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/scripts.xml (added)
+++ erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/scripts.xml Tue Sep 11 14:39:16 2007
@@ -1,0 +1,40 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <tuple>
+ <string>Products.DCWorkflow.Scripts</string>
+ <string>Scripts</string>
+ </tuple>
+ <none/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>__ac_local_roles__</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <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_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/scripts/updateLocalRolesAndEventsLocalRoles.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/scripts/updateLocalRolesAndEventsLocalRoles.xml?rev=16263&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/scripts/updateLocalRolesAndEventsLocalRoles.xml (added)
+++ erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/scripts/updateLocalRolesAndEventsLocalRoles.xml Tue Sep 11 14:39:16 2007
@@ -1,0 +1,165 @@
+<?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>object = state_change[\'object\']\n
+object.updateLocalRolesOnSecurityGroups()\n
+\n
+portal = state_change.getPortal()\n
+event_portal_type_list = (\'Fax Message\', \'Letter\', \'Mail Message\', \'Note\', \'Phone Call\', \'Visit\')\n
+\n
+for i in portal.portal_catalog(portal_type=event_portal_type_list,\n
+ follow_up=object.getRelativeUrl()):\n
+ i.updateLocalRolesOnSecurityGroups()\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</string> </value>
+ </item>
+ <item>
+ <key> <string>_proxy_roles</string> </key>
+ <value>
+ <tuple>
+ <string>Manager</string>
+ </tuple>
+ </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>object</string>
+ <string>_getattr_</string>
+ <string>portal</string>
+ <string>event_portal_type_list</string>
+ <string>_getiter_</string>
+ <string>i</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>updateLocalRolesAndEventsLocalRoles</string> </value>
+ </item>
+ <item>
+ <key> <string>warnings</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Added: erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/variables.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/variables.xml?rev=16263&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/variables.xml (added)
+++ erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/variables.xml Tue Sep 11 14:39:16 2007
@@ -1,0 +1,34 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <tuple>
+ <string>Products.DCWorkflow.Variables</string>
+ <string>Variables</string>
+ </tuple>
+ <none/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>__ac_local_roles__</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <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_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/worklists.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/worklists.xml?rev=16263&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/worklists.xml (added)
+++ erp5/trunk/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/worklists.xml Tue Sep 11 14:39:16 2007
@@ -1,0 +1,34 @@
+<?xml version="1.0"?>
+<ZopeData>
+ <record id="1" aka="AAAAAAAAAAE=">
+ <pickle>
+ <tuple>
+ <tuple>
+ <string>Products.DCWorkflow.Worklists</string>
+ <string>Worklists</string>
+ </tuple>
+ <none/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>__ac_local_roles__</string> </key>
+ <value>
+ <none/>
+ </value>
+ </item>
+ <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_crm/bt/change_log
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/bt/change_log?rev=16263&r1=16262&r2=16263&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_crm/bt/change_log (original)
+++ erp5/trunk/bt5/erp5_crm/bt/change_log Tue Sep 11 14:39:16 2007
@@ -1,3 +1,6 @@
+2007-09-11 Yusei
+* Add two interaction workflows for ticket and event to update local roles after editing.
+
2007-09-11 Romain
* Add Visit portal type
* Remove hardcoded values
Modified: erp5/trunk/bt5/erp5_crm/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/bt/revision?rev=16263&r1=16262&r2=16263&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_crm/bt/revision (original)
+++ erp5/trunk/bt5/erp5_crm/bt/revision Tue Sep 11 14:39:16 2007
@@ -1,1 +1,1 @@
-93
+95
Modified: erp5/trunk/bt5/erp5_crm/bt/template_portal_type_workflow_chain_list
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/bt/template_portal_type_workflow_chain_list?rev=16263&r1=16262&r2=16263&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_crm/bt/template_portal_type_workflow_chain_list (original)
+++ erp5/trunk/bt5/erp5_crm/bt/template_portal_type_workflow_chain_list Tue Sep 11 14:39:16 2007
@@ -1,20 +1,30 @@
Campaign | edit_workflow
+Campaign | ticket_interaction_workflow
Campaign | ticket_workflow
Fax Message | edit_workflow
+Fax Message | event_interaction_workflow
Fax Message | event_workflow
Letter | edit_workflow
+Letter | event_interaction_workflow
Letter | event_workflow
Mail Message | edit_workflow
+Mail Message | event_interaction_workflow
Mail Message | event_workflow
Meeting | edit_workflow
+Meeting | ticket_interaction_workflow
Meeting | ticket_workflow
Note | edit_workflow
+Note | event_interaction_workflow
Note | event_workflow
Phone Call | edit_workflow
+Phone Call | event_interaction_workflow
Phone Call | event_workflow
Sale Opportunity | edit_workflow
Sale Opportunity | sale_opportunity_workflow
+Sale Opportunity | ticket_interaction_workflow
Support Request | edit_workflow
+Support Request | ticket_interaction_workflow
Support Request | ticket_workflow
Visit | edit_workflow
+Visit | event_interaction_workflow
Visit | event_workflow
Modified: erp5/trunk/bt5/erp5_crm/bt/template_workflow_id_list
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_crm/bt/template_workflow_id_list?rev=16263&r1=16262&r2=16263&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_crm/bt/template_workflow_id_list (original)
+++ erp5/trunk/bt5/erp5_crm/bt/template_workflow_id_list Tue Sep 11 14:39:16 2007
@@ -1,3 +1,5 @@
+event_interaction_workflow
event_workflow
sale_opportunity_workflow
+ticket_interaction_workflow
ticket_workflow
More information about the Erp5-report
mailing list