Commit 8fb64136 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

revert r36601 and r36618 (proof of concept of automatic divergence solving interaction workflow).


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36653 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c8dc9736
......@@ -27,18 +27,6 @@
<type>Production Reduction Solver</type>
<workflow>solver_workflow</workflow>
</chain>
<chain>
<type>Purchase Invoice Transaction</type>
<workflow>divergence_interaction_workflow</workflow>
</chain>
<chain>
<type>Purchase Order</type>
<workflow>divergence_interaction_workflow</workflow>
</chain>
<chain>
<type>Purchase Packing List</type>
<workflow>divergence_interaction_workflow</workflow>
</chain>
<chain>
<type>Quantity Cancel Solver</type>
<workflow>solver_workflow</workflow>
......@@ -47,18 +35,6 @@
<type>Quantity Split Solver</type>
<workflow>solver_workflow</workflow>
</chain>
<chain>
<type>Sale Invoice Transaction</type>
<workflow>divergence_interaction_workflow</workflow>
</chain>
<chain>
<type>Sale Order</type>
<workflow>divergence_interaction_workflow</workflow>
</chain>
<chain>
<type>Sale Packing List</type>
<workflow>divergence_interaction_workflow</workflow>
</chain>
<chain>
<type>Solver Process</type>
<workflow>solver_process_workflow</workflow>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="InteractionWorkflowDefinition" module="Products.ERP5.InteractionWorkflow"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>creation_guard</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string>This workflow tries to solve divergences automatically.</string> </value>
</item>
<item>
<key> <string>groups</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>divergence_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>Divergence Interaction Workflow</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="Interaction" module="Products.ERP5.Interaction"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_mapping</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>interactions</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="InteractionDefinition" module="Products.ERP5.Interaction"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value>
</item>
<item>
<key> <string>actbox_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>actbox_url</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>activate_script_name</string> </key>
<value>
<list>
<string>Workflow_solveDivergenceAutomatically</string>
</list>
</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>solve_divergence_automatically</string> </value>
</item>
<item>
<key> <string>method_id</string> </key>
<value>
<list>
<string>diverge</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>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>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="Scripts" module="Products.DCWorkflow.Scripts"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_mapping</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>scripts</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>delivery = state_change[\'object\']\n
\n
solver_tool = getattr(delivery.getPortalObject(), \'portal_solvers\', None)\n
solver_process_tool = getattr(delivery.getPortalObject(), \'portal_solver_processes\', None)\n
\n
if solver_tool is None or solver_process_tool is None:\n
return\n
\n
for tester, simulation_movement in delivery.getDivergentTesterAndSimulationMovementList():\n
for solver in solver_tool.searchTargetSolverList(tester, simulation_movement, automatic_solver_only=True):\n
if solver.isAutomaticSolver():\n
# XXX We sometimes want to store solver process document persistently.\n
solver_process = solver_process_tool.newContent(\n
portal_type=\'Solver Process\', temp_object=True)\n
# XXX We need to calculate and pass default values for some solvers\n
target_solver = solver_process.newContent(\n
portal_type=solver.getId(),\n
delivery=simulation_movement.getRelativeUrl()\n
)\n
target_solver.startSolving()\n
target_solver.solve()\n
break\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>state_change, **kw</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>kw</string>
<string>_getitem_</string>
<string>delivery</string>
<string>getattr</string>
<string>_getattr_</string>
<string>None</string>
<string>solver_tool</string>
<string>solver_process_tool</string>
<string>_getiter_</string>
<string>tester</string>
<string>simulation_movement</string>
<string>True</string>
<string>solver</string>
<string>solver_process</string>
<string>target_solver</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>Workflow_solveDivergenceAutomatically</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="Variables" module="Products.DCWorkflow.Variables"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_mapping</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>variables</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="Worklists" module="Products.DCWorkflow.Worklists"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_mapping</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>worklists</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
117
\ No newline at end of file
118
\ No newline at end of file
......@@ -5,14 +5,8 @@ DateTime Divergence Tester | edit_workflow
Float Divergence Tester | edit_workflow
Net Converted Quantity Divergence Tester | edit_workflow
Production Reduction Solver | solver_workflow
Purchase Invoice Transaction | divergence_interaction_workflow
Purchase Order | divergence_interaction_workflow
Purchase Packing List | divergence_interaction_workflow
Quantity Cancel Solver | solver_workflow
Quantity Split Solver | solver_workflow
Sale Invoice Transaction | divergence_interaction_workflow
Sale Order | divergence_interaction_workflow
Sale Packing List | divergence_interaction_workflow
Solver Process | solver_process_workflow
String Divergence Tester | edit_workflow
Trade Model Solver | solver_workflow
......
divergence_interaction_workflow
solver_process_workflow
solver_workflow
\ No newline at end of file
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