diff --git a/bt5/erp5_crm/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml b/bt5/erp5_crm/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml
index f34db6d1b4072368a52e94350718c896b189f3fe..a2e594234b9a008f8aed8f78df72f79d7d91cf1a 100644
--- a/bt5/erp5_crm/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml
+++ b/bt5/erp5_crm/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml
@@ -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>
\ No newline at end of file
diff --git a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow.xml b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow.xml
new file mode 100644
index 0000000000000000000000000000000000000000..3ee660809e084fe92414142f8616009dab4c0942
--- /dev/null
+++ b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow.xml
@@ -0,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>
diff --git a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/interactions.xml b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/interactions.xml
new file mode 100644
index 0000000000000000000000000000000000000000..7d8c51003b7e09d577b9ce4a374f51510b4e2ead
--- /dev/null
+++ b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/interactions.xml
@@ -0,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>
diff --git a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/interactions/Event_set.xml b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/interactions/Event_set.xml
new file mode 100644
index 0000000000000000000000000000000000000000..299d71c82f1004e393de0954b5ac0666cc3afe73
--- /dev/null
+++ b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/interactions/Event_set.xml
@@ -0,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>
diff --git a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/scripts.xml b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/scripts.xml
new file mode 100644
index 0000000000000000000000000000000000000000..01ba35bf25f5084dde4a3822b204530dc92c3f47
--- /dev/null
+++ b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/scripts.xml
@@ -0,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>
diff --git a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/scripts/updateLocalRoles.xml b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/scripts/updateLocalRoles.xml
new file mode 100644
index 0000000000000000000000000000000000000000..d1612c471fc8d1f8ec812cb025de1623c486a009
--- /dev/null
+++ b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/scripts/updateLocalRoles.xml
@@ -0,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>
diff --git a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/variables.xml b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/variables.xml
new file mode 100644
index 0000000000000000000000000000000000000000..db67387d4e62a7db68bbb9689238ba0824326e50
--- /dev/null
+++ b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/variables.xml
@@ -0,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>
diff --git a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/worklists.xml b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/worklists.xml
new file mode 100644
index 0000000000000000000000000000000000000000..f4c2789633e196d41819670f25c55bac972e751a
--- /dev/null
+++ b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/event_interaction_workflow/worklists.xml
@@ -0,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>
diff --git a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow.xml b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow.xml
new file mode 100644
index 0000000000000000000000000000000000000000..737e1ae4e50fa0a21faf7a817d039037d4864beb
--- /dev/null
+++ b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow.xml
@@ -0,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>
diff --git a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/interactions.xml b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/interactions.xml
new file mode 100644
index 0000000000000000000000000000000000000000..7d8c51003b7e09d577b9ce4a374f51510b4e2ead
--- /dev/null
+++ b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/interactions.xml
@@ -0,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>
diff --git a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/interactions/Ticket_set.xml b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/interactions/Ticket_set.xml
new file mode 100644
index 0000000000000000000000000000000000000000..345f7013b6c05643445c03620776b97fefa96876
--- /dev/null
+++ b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/interactions/Ticket_set.xml
@@ -0,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>
diff --git a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/scripts.xml b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/scripts.xml
new file mode 100644
index 0000000000000000000000000000000000000000..01ba35bf25f5084dde4a3822b204530dc92c3f47
--- /dev/null
+++ b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/scripts.xml
@@ -0,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>
diff --git a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/scripts/updateLocalRolesAndEventsLocalRoles.xml b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/scripts/updateLocalRolesAndEventsLocalRoles.xml
new file mode 100644
index 0000000000000000000000000000000000000000..b560c9c4b50e3cd2a2af656dff7ff9f8a666f827
--- /dev/null
+++ b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/scripts/updateLocalRolesAndEventsLocalRoles.xml
@@ -0,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>
diff --git a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/variables.xml b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/variables.xml
new file mode 100644
index 0000000000000000000000000000000000000000..db67387d4e62a7db68bbb9689238ba0824326e50
--- /dev/null
+++ b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/variables.xml
@@ -0,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>
diff --git a/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/worklists.xml b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/worklists.xml
new file mode 100644
index 0000000000000000000000000000000000000000..f4c2789633e196d41819670f25c55bac972e751a
--- /dev/null
+++ b/bt5/erp5_crm/WorkflowTemplateItem/portal_workflow/ticket_interaction_workflow/worklists.xml
@@ -0,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>
diff --git a/bt5/erp5_crm/bt/change_log b/bt5/erp5_crm/bt/change_log
index 6c9c68d91dc3a3bb0c2f03c3148f460b9bbddd1e..4a9eaeb660682d35f1a7fdba2f5db734206a3e85 100644
--- a/bt5/erp5_crm/bt/change_log
+++ b/bt5/erp5_crm/bt/change_log
@@ -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
diff --git a/bt5/erp5_crm/bt/revision b/bt5/erp5_crm/bt/revision
index 27a37eb577dd83f8d4da502a4c1cacd0d7dbcb83..90be1cdd8eeee919ebb35a1efddcfa95776fb98a 100644
--- a/bt5/erp5_crm/bt/revision
+++ b/bt5/erp5_crm/bt/revision
@@ -1 +1 @@
-93
\ No newline at end of file
+95
\ No newline at end of file
diff --git a/bt5/erp5_crm/bt/template_portal_type_workflow_chain_list b/bt5/erp5_crm/bt/template_portal_type_workflow_chain_list
index c226c8525a31b45155257199e5a62ad2f3a9977f..aff79db2b1961649f2eee8c7213f21fb78174313 100644
--- a/bt5/erp5_crm/bt/template_portal_type_workflow_chain_list
+++ b/bt5/erp5_crm/bt/template_portal_type_workflow_chain_list
@@ -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
\ No newline at end of file
diff --git a/bt5/erp5_crm/bt/template_workflow_id_list b/bt5/erp5_crm/bt/template_workflow_id_list
index b7058eeb770842f38b838f8b3b0fcc14a91ca785..44dbd7e98486735631d0dbb23932854b83cc2847 100644
--- a/bt5/erp5_crm/bt/template_workflow_id_list
+++ b/bt5/erp5_crm/bt/template_workflow_id_list
@@ -1,3 +1,5 @@
+event_interaction_workflow
 event_workflow
 sale_opportunity_workflow
+ticket_interaction_workflow
 ticket_workflow
\ No newline at end of file