Commit 9ae8b97a authored by wenjie.zheng's avatar wenjie.zheng Committed by Sebastien Robin

erp5_workflow_test_data: change the id of objects in workflow tool from suffix...

erp5_workflow_test_data: change the id of objects in workflow tool from suffix addition to prefix addition.
parent a1c8a8a2
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>testing_interaction_workflow_interactionworkflow</string> </value> <value> <string>testing_interaction_workflow</string> </value>
</item> </item>
<item> <item>
<key> <string>portal_type</string> </key> <key> <string>portal_type</string> </key>
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>setTitle_interaction_interaction</string> </value> <value> <string>setTitle_interaction</string> </value>
</item> </item>
<item> <item>
<key> <string>method_id</string> </key> <key> <string>method_id</string> </key>
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>validate_interaction_interaction</string> </value> <value> <string>validate_interaction</string> </value>
</item> </item>
<item> <item>
<key> <string>method_id</string> </key> <key> <string>method_id</string> </key>
......
...@@ -36,7 +36,7 @@ erp5workflow_test_module/view?validation_state=draft&local_roles:list=Assignee&l ...@@ -36,7 +36,7 @@ erp5workflow_test_module/view?validation_state=draft&local_roles:list=Assignee&l
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>1_draft_document_list</string> </value> <value> <string>1_draft_document_list_worklist</string> </value>
</item> </item>
<item> <item>
<key> <string>matched_portal_type</string> </key> <key> <string>matched_portal_type</string> </key>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Interaction Workflow" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_count</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>_mt_index</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
<item>
<key> <string>_tree</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
</value>
</item>
<item>
<key> <string>default_reference</string> </key>
<value> <string>testing_interaction_workflow</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string>Including a test validate interaction, which will set object\'s title after action "validate".</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>interactionworkflow_testing_interaction_workflow</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Interaction Workflow</string> </value>
</item>
<item>
<key> <string>ref</string> </key>
<value> <string>testing_interaction_workflow</string> </value>
</item>
<item>
<key> <string>role</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Testing Interaction Workflow</string> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="Length" module="BTrees.Length"/>
</pickle>
<pickle> <int>0</int> </pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<global name="OOBTree" module="BTrees.OOBTree"/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
<record id="4" aka="AAAAAAAAAAQ=">
<pickle>
<global name="OOBTree" module="BTrees.OOBTree"/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Workflow Script" module="erp5.portal_type"/>
</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>document = state_change.object\n
document.setDescription(\'Interaction of setTitle executed.\')\n
</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>state_change</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>afterSetTitle</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Workflow Script</string> </value>
</item>
<item>
<key> <string>ref</string> </key>
<value> <string>afterSetTitle</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Set Title Script</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Workflow Script" module="erp5.portal_type"/>
</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>document = state_change[\'object\']\n
document.setTitle("toto")\n
</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>state_change</string> </value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>afterValidate</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Workflow Script</string> </value>
</item>
<item>
<key> <string>ref</string> </key>
<value> <string>afterValidate</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>After Validate</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Interaction" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>activate_script_name</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>after_script_name</string> </key>
<value>
<tuple>
<string>afterSetTitle</string>
</tuple>
</value>
</item>
<item>
<key> <string>before_commit_script_name</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>before_script_name</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>default_reference</string> </key>
<value> <string>setTitle_interaction</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string>An interaction for accessor setTitle.</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>interaction_setTitle_interaction</string> </value>
</item>
<item>
<key> <string>method_id</string> </key>
<value>
<tuple>
<string>setTitle</string>
</tuple>
</value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Interaction</string> </value>
</item>
<item>
<key> <string>protal_type_filter</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>ref</string> </key>
<value> <string>setTitle_interaction</string> </value>
</item>
<item>
<key> <string>role</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Set Title Interaction</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Interaction" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>activate_script_name</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>after_script_name</string> </key>
<value>
<tuple>
<string>afterValidate</string>
</tuple>
</value>
</item>
<item>
<key> <string>before_commit_script_name</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>before_script_name</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>default_reference</string> </key>
<value> <string>validate_interaction</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string>test validate interaction, set title after validate.</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>interaction_validate_interaction</string> </value>
</item>
<item>
<key> <string>method_id</string> </key>
<value>
<tuple>
<string>validate</string>
</tuple>
</value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Interaction</string> </value>
</item>
<item>
<key> <string>protal_type_filter</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>ref</string> </key>
<value> <string>validate_interaction</string> </value>
</item>
<item>
<key> <string>role</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Validate Interaction</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -45,17 +45,21 @@ ...@@ -45,17 +45,21 @@
<key> <string>categories</string> </key> <key> <string>categories</string> </key>
<value> <value>
<tuple> <tuple>
<string>source/portal_workflow/testing_workflow_workflow/draft_state</string> <string>source/portal_workflow/workflow_testing_workflow/state_draft</string>
</tuple> </tuple>
</value> </value>
</item> </item>
<item>
<key> <string>default_reference</string> </key>
<value> <string>testing_workflow</string> </value>
</item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string>This workflow is for the unittest testWorkflowAndDCWorkflow.</string> </value> <value> <string>This workflow is for the unittest testWorkflowAndDCWorkflow.</string> </value>
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>testing_workflow_workflow</string> </value> <value> <string>workflow_testing_workflow</string> </value>
</item> </item>
<item> <item>
<key> <string>managed_permission_list</string> </key> <key> <string>managed_permission_list</string> </key>
......
...@@ -24,6 +24,10 @@ ...@@ -24,6 +24,10 @@
<persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
</value> </value>
</item> </item>
<item>
<key> <string>default_reference</string> </key>
<value> <string>deleted</string> </value>
</item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <value>
...@@ -32,7 +36,7 @@ ...@@ -32,7 +36,7 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>deleted_state</string> </value> <value> <string>state_deleted</string> </value>
</item> </item>
<item> <item>
<key> <string>index</string> </key> <key> <string>index</string> </key>
......
...@@ -28,11 +28,15 @@ ...@@ -28,11 +28,15 @@
<key> <string>categories</string> </key> <key> <string>categories</string> </key>
<value> <value>
<tuple> <tuple>
<string>destination/portal_workflow/testing_workflow_workflow/validate_transition</string> <string>destination/portal_workflow/workflow_testing_workflow/transition_validate</string>
<string>destination/portal_workflow/testing_workflow_workflow/validate_action_transition</string> <string>destination/portal_workflow/workflow_testing_workflow/transition_validate_action</string>
</tuple> </tuple>
</value> </value>
</item> </item>
<item>
<key> <string>default_reference</string> </key>
<value> <string>draft</string> </value>
</item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <value>
...@@ -41,7 +45,7 @@ ...@@ -41,7 +45,7 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>draft_state</string> </value> <value> <string>state_draft</string> </value>
</item> </item>
<item> <item>
<key> <string>index</string> </key> <key> <string>index</string> </key>
......
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