Commit e2967202 authored by Georgios Dagkakis's avatar Georgios Dagkakis

erp5_base: Add coordinate_interaction_workflow and add it all Coordinate types

In its generic form it would declare as reachable an unreachable coordinate
when the coordinate_text changes
parent 5504703a
<workflow_chain> <workflow_chain>
<chain> <chain>
<type>Address</type> <type>Address</type>
<workflow>edit_workflow, reachability_workflow</workflow> <workflow>coordinate_interaction_workflow, edit_workflow, reachability_workflow</workflow>
</chain> </chain>
<chain> <chain>
<type>Agent</type> <type>Agent</type>
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</chain> </chain>
<chain> <chain>
<type>Chat Address</type> <type>Chat Address</type>
<workflow>edit_workflow, reachability_workflow</workflow> <workflow>coordinate_interaction_workflow, edit_workflow, reachability_workflow</workflow>
</chain> </chain>
<chain> <chain>
<type>Credit Card</type> <type>Credit Card</type>
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
</chain> </chain>
<chain> <chain>
<type>Email</type> <type>Email</type>
<workflow>edit_workflow, reachability_workflow</workflow> <workflow>coordinate_interaction_workflow, edit_workflow, reachability_workflow</workflow>
</chain> </chain>
<chain> <chain>
<type>Embedded File</type> <type>Embedded File</type>
...@@ -57,11 +57,11 @@ ...@@ -57,11 +57,11 @@
</chain> </chain>
<chain> <chain>
<type>External Identifier</type> <type>External Identifier</type>
<workflow>edit_workflow, reachability_workflow</workflow> <workflow>coordinate_interaction_workflow, edit_workflow, reachability_workflow</workflow>
</chain> </chain>
<chain> <chain>
<type>Fax</type> <type>Fax</type>
<workflow>edit_workflow, reachability_workflow</workflow> <workflow>coordinate_interaction_workflow, edit_workflow, reachability_workflow</workflow>
</chain> </chain>
<chain> <chain>
<type>File</type> <type>File</type>
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
</chain> </chain>
<chain> <chain>
<type>Link</type> <type>Link</type>
<workflow>edit_workflow, reachability_workflow</workflow> <workflow>coordinate_interaction_workflow, edit_workflow, reachability_workflow</workflow>
</chain> </chain>
<chain> <chain>
<type>Notification Message</type> <type>Notification Message</type>
...@@ -113,6 +113,6 @@ ...@@ -113,6 +113,6 @@
</chain> </chain>
<chain> <chain>
<type>Telephone</type> <type>Telephone</type>
<workflow>edit_workflow, reachability_workflow</workflow> <workflow>coordinate_interaction_workflow, edit_workflow, reachability_workflow</workflow>
</chain> </chain>
</workflow_chain> </workflow_chain>
\ No newline at end of file
from Products.ERP5Type.Message import translateString
if context.getValidationState() == 'unreachable':
context.declareReachable(comment=translateString("Assumed reachable after coordinate changed"))
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
</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>_params</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Coordinate_beforeCoordinateTextChange</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="InteractionWorkflowDefinition" module="Products.ERP5.InteractionWorkflow"/>
</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></string> </value>
</item>
<item>
<key> <string>groups</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>coordinate_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>Coordinate Interaction Workflow</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Interaction" module="Products.ERP5.Interaction"/>
</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>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="InteractionDefinition" module="Products.ERP5.Interaction"/>
</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>
<tuple/>
</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>beforeCoordinateTextChange</string> </value>
</item>
<item>
<key> <string>method_id</string> </key>
<value>
<list>
<string>_setCoordinateText</string>
<string>_setStreetAddress</string>
<string>_setZipCode</string>
<string>_setCity</string>
<string>_setRegion.*</string>
<string>_setTelephoneCountry</string>
<string>_setTelephoneArea</string>
<string>_setTelephoneCity</string>
<string>_setTelephoneExtension</string>
<string>_setTelephoneNumber</string>
<string>_setUrlString</string>
</list>
</value>
</item>
<item>
<key> <string>once_per_transaction</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>portal_type_filter</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>portal_type_group_filter</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>script_name</string> </key>
<value>
<list>
<string>beforeCoordinateTextChange</string>
</list>
</value>
</item>
<item>
<key> <string>temporary_document_disallowed</string> </key>
<value> <int>0</int> </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>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Scripts" module="Products.DCWorkflow.Scripts"/>
</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>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
</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>_params</string> </key>
<value> <string>state_change</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>beforeCoordinateTextChange</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Variables" module="Products.DCWorkflow.Variables"/>
</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>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Worklists" module="Products.DCWorkflow.Worklists"/>
</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>
Address | coordinate_interaction_workflow
Address | edit_workflow Address | edit_workflow
Address | reachability_workflow Address | reachability_workflow
Agent | edit_workflow Agent | edit_workflow
...@@ -7,6 +8,7 @@ Bank Account | edit_workflow ...@@ -7,6 +8,7 @@ Bank Account | edit_workflow
Bank Account | validation_workflow Bank Account | validation_workflow
Career | career_workflow Career | career_workflow
Career | edit_workflow Career | edit_workflow
Chat Address | coordinate_interaction_workflow
Chat Address | edit_workflow Chat Address | edit_workflow
Chat Address | reachability_workflow Chat Address | reachability_workflow
Credit Card | edit_workflow Credit Card | edit_workflow
...@@ -21,6 +23,7 @@ Delivery Type | base_type_interaction_workflow ...@@ -21,6 +23,7 @@ Delivery Type | base_type_interaction_workflow
Delivery Type | dynamic_class_generation_interaction_workflow Delivery Type | dynamic_class_generation_interaction_workflow
ERP5 Login | edit_workflow ERP5 Login | edit_workflow
ERP5 Login | login_validation_workflow ERP5 Login | login_validation_workflow
Email | coordinate_interaction_workflow
Email | edit_workflow Email | edit_workflow
Email | reachability_workflow Email | reachability_workflow
Embedded File | document_conversion_interaction_workflow Embedded File | document_conversion_interaction_workflow
...@@ -28,8 +31,10 @@ Embedded File | edit_workflow ...@@ -28,8 +31,10 @@ Embedded File | edit_workflow
Embedded File | embedded_workflow Embedded File | embedded_workflow
Embedded Folder | edit_workflow Embedded Folder | edit_workflow
Embedded Folder | embedded_workflow Embedded Folder | embedded_workflow
External Identifier | coordinate_interaction_workflow
External Identifier | edit_workflow External Identifier | edit_workflow
External Identifier | reachability_workflow External Identifier | reachability_workflow
Fax | coordinate_interaction_workflow
Fax | edit_workflow Fax | edit_workflow
Fax | reachability_workflow Fax | reachability_workflow
File | document_conversion_interaction_workflow File | document_conversion_interaction_workflow
...@@ -40,6 +45,7 @@ Geographical Location | edit_workflow ...@@ -40,6 +45,7 @@ Geographical Location | edit_workflow
Image | document_conversion_interaction_workflow Image | document_conversion_interaction_workflow
Image | document_security_interaction_workflow Image | document_security_interaction_workflow
Image | edit_workflow Image | edit_workflow
Link | coordinate_interaction_workflow
Link | edit_workflow Link | edit_workflow
Link | reachability_workflow Link | reachability_workflow
Notification Message | document_conversion_interaction_workflow Notification Message | document_conversion_interaction_workflow
...@@ -58,5 +64,6 @@ Role Definition | edit_workflow ...@@ -58,5 +64,6 @@ Role Definition | edit_workflow
Role Definition | local_permission_interaction_workflow Role Definition | local_permission_interaction_workflow
Rounding Model | validation_workflow Rounding Model | validation_workflow
Simulation Movement | simulation_movement_causality_interaction_workflow Simulation Movement | simulation_movement_causality_interaction_workflow
Telephone | coordinate_interaction_workflow
Telephone | edit_workflow Telephone | edit_workflow
Telephone | reachability_workflow Telephone | reachability_workflow
\ No newline at end of file
assignment_workflow assignment_workflow
career_workflow career_workflow
coordinate_interaction_workflow
currency_exchange_line_interaction_workflow currency_exchange_line_interaction_workflow
delivery_causality_interaction_workflow delivery_causality_interaction_workflow
delivery_causality_workflow delivery_causality_workflow
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment