[Erp5-report] r33578 kazuhiko - in /erp5/trunk/bt5/erp5_simulation/WorkflowTemplateItem/por...
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Mar 10 13:59:43 CET 2010
Author: kazuhiko
Date: Wed Mar 10 13:59:41 2010
New Revision: 33578
URL: http://svn.erp5.org?rev=33578&view=rev
Log:
change solver process's workflow according to target solver's workflow state changes.
Added:
erp5/trunk/bt5/erp5_simulation/WorkflowTemplateItem/portal_workflow/solver_workflow/scripts/
erp5/trunk/bt5/erp5_simulation/WorkflowTemplateItem/portal_workflow/solver_workflow/scripts/SolverProcess_startSolving.xml
erp5/trunk/bt5/erp5_simulation/WorkflowTemplateItem/portal_workflow/solver_workflow/scripts/SolverProcess_succeed.xml
Modified:
erp5/trunk/bt5/erp5_simulation/WorkflowTemplateItem/portal_workflow/solver_workflow/transitions/start_solving.xml
erp5/trunk/bt5/erp5_simulation/WorkflowTemplateItem/portal_workflow/solver_workflow/transitions/succeed.xml
Added: erp5/trunk/bt5/erp5_simulation/WorkflowTemplateItem/portal_workflow/solver_workflow/scripts/SolverProcess_startSolving.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_simulation/WorkflowTemplateItem/portal_workflow/solver_workflow/scripts/SolverProcess_startSolving.xml?rev=33578&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_simulation/WorkflowTemplateItem/portal_workflow/solver_workflow/scripts/SolverProcess_startSolving.xml (added)
+++ erp5/trunk/bt5/erp5_simulation/WorkflowTemplateItem/portal_workflow/solver_workflow/scripts/SolverProcess_startSolving.xml [utf8] Wed Mar 10 13:59:41 2010
@@ -1,0 +1,127 @@
+<?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>solver_process = state_change[\'object\'].getParentValue()\n
+if solver_process.getSolverState() == \'draft\':\n
+ solver_process.startSolving()\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>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>_getattr_</string>
+ <string>_getitem_</string>
+ <string>solver_process</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>SolverProcess_startSolving</string> </value>
+ </item>
+ <item>
+ <key> <string>warnings</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Added: erp5/trunk/bt5/erp5_simulation/WorkflowTemplateItem/portal_workflow/solver_workflow/scripts/SolverProcess_succeed.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_simulation/WorkflowTemplateItem/portal_workflow/solver_workflow/scripts/SolverProcess_succeed.xml?rev=33578&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_simulation/WorkflowTemplateItem/portal_workflow/solver_workflow/scripts/SolverProcess_succeed.xml (added)
+++ erp5/trunk/bt5/erp5_simulation/WorkflowTemplateItem/portal_workflow/solver_workflow/scripts/SolverProcess_succeed.xml [utf8] Wed Mar 10 13:59:41 2010
@@ -1,0 +1,132 @@
+<?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>solver_process = state_change[\'object\'].getParentValue()\n
+for solver in solver_process.objectValues(\n
+ portal_type=solver_process.getPortalObject().getPortalTargetSolverTypeList()):\n
+ if solver.getSolverState() != \'solved\':\n
+ return\n
+solver_process.succeed()\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>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>_getattr_</string>
+ <string>_getitem_</string>
+ <string>solver_process</string>
+ <string>_getiter_</string>
+ <string>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>SolverProcess_succeed</string> </value>
+ </item>
+ <item>
+ <key> <string>warnings</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Modified: erp5/trunk/bt5/erp5_simulation/WorkflowTemplateItem/portal_workflow/solver_workflow/transitions/start_solving.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_simulation/WorkflowTemplateItem/portal_workflow/solver_workflow/transitions/start_solving.xml?rev=33578&r1=33577&r2=33578&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_simulation/WorkflowTemplateItem/portal_workflow/solver_workflow/transitions/start_solving.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_simulation/WorkflowTemplateItem/portal_workflow/solver_workflow/transitions/start_solving.xml [utf8] Wed Mar 10 13:59:41 2010
@@ -45,7 +45,7 @@
</item>
<item>
<key> <string>script_name</string> </key>
- <value> <string></string> </value>
+ <value> <string>SolverProcess_startSolving</string> </value>
</item>
<item>
<key> <string>title</string> </key>
Modified: erp5/trunk/bt5/erp5_simulation/WorkflowTemplateItem/portal_workflow/solver_workflow/transitions/succeed.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_simulation/WorkflowTemplateItem/portal_workflow/solver_workflow/transitions/succeed.xml?rev=33578&r1=33577&r2=33578&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_simulation/WorkflowTemplateItem/portal_workflow/solver_workflow/transitions/succeed.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_simulation/WorkflowTemplateItem/portal_workflow/solver_workflow/transitions/succeed.xml [utf8] Wed Mar 10 13:59:41 2010
@@ -23,7 +23,7 @@
</item>
<item>
<key> <string>after_script_name</string> </key>
- <value> <string></string> </value>
+ <value> <string>SolverProcess_succeed</string> </value>
</item>
<item>
<key> <string>description</string> </key>
More information about the Erp5-report
mailing list