From 28d0cdff9b735e7ee2112cf6badb8949909d04c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Thu, 22 Jan 2009 14:19:56 +0000 Subject: [PATCH] add transitions to invalidate a validated budget git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25271 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../budget_workflow/states/validated.xml | 5 +- .../transitions/invalidate.xml | 61 ++++++++++++++ .../transitions/invalidate_action.xml | 81 +++++++++++++++++++ bt5/erp5_budget/bt/revision | 2 +- 4 files changed, 147 insertions(+), 2 deletions(-) create mode 100644 bt5/erp5_budget/WorkflowTemplateItem/portal_workflow/budget_workflow/transitions/invalidate.xml create mode 100644 bt5/erp5_budget/WorkflowTemplateItem/portal_workflow/budget_workflow/transitions/invalidate_action.xml diff --git a/bt5/erp5_budget/WorkflowTemplateItem/portal_workflow/budget_workflow/states/validated.xml b/bt5/erp5_budget/WorkflowTemplateItem/portal_workflow/budget_workflow/states/validated.xml index d9d9eb7727..c19e3a26a0 100644 --- a/bt5/erp5_budget/WorkflowTemplateItem/portal_workflow/budget_workflow/states/validated.xml +++ b/bt5/erp5_budget/WorkflowTemplateItem/portal_workflow/budget_workflow/states/validated.xml @@ -30,7 +30,10 @@ <item> <key> <string>transitions</string> </key> <value> - <tuple/> + <tuple> + <string>invalidate</string> + <string>invalidate_action</string> + </tuple> </value> </item> <item> diff --git a/bt5/erp5_budget/WorkflowTemplateItem/portal_workflow/budget_workflow/transitions/invalidate.xml b/bt5/erp5_budget/WorkflowTemplateItem/portal_workflow/budget_workflow/transitions/invalidate.xml new file mode 100644 index 0000000000..6b32fec78e --- /dev/null +++ b/bt5/erp5_budget/WorkflowTemplateItem/portal_workflow/budget_workflow/transitions/invalidate.xml @@ -0,0 +1,61 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + <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>after_script_name</string> </key> + <value> <string></string> </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>invalidate</string> </value> + </item> + <item> + <key> <string>new_state_id</string> </key> + <value> <string>submitted</string> </value> + </item> + <item> + <key> <string>script_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Modify Budget</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_budget/WorkflowTemplateItem/portal_workflow/budget_workflow/transitions/invalidate_action.xml b/bt5/erp5_budget/WorkflowTemplateItem/portal_workflow/budget_workflow/transitions/invalidate_action.xml new file mode 100644 index 0000000000..8db42f7afd --- /dev/null +++ b/bt5/erp5_budget/WorkflowTemplateItem/portal_workflow/budget_workflow/transitions/invalidate_action.xml @@ -0,0 +1,81 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + <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>Modify Budget</string> </value> + </item> + <item> + <key> <string>actbox_url</string> </key> + <value> <string>%(content_url)s/Base_viewWorkflowActionDialog?workflow_action=invalidate_action</string> </value> + </item> + <item> + <key> <string>after_script_name</string> </key> + <value> <string>invalidate</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>guard</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>invalidate_action</string> </value> + </item> + <item> + <key> <string>new_state_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>script_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Modify Budget Action</string> </value> + </item> + <item> + <key> <string>trigger_type</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="Guard" module="Products.DCWorkflow.Guard"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>roles</string> </key> + <value> + <tuple> + <string>Assignor</string> + </tuple> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_budget/bt/revision b/bt5/erp5_budget/bt/revision index 4129657509..fb35181565 100644 --- a/bt5/erp5_budget/bt/revision +++ b/bt5/erp5_budget/bt/revision @@ -1 +1 @@ -196 \ No newline at end of file +197 \ No newline at end of file -- 2.30.9