diff --git a/bt5/erp5_dms/WorkflowTemplateItem/portal_workflow/processing_status_workflow/states/empty.xml b/bt5/erp5_dms/WorkflowTemplateItem/portal_workflow/processing_status_workflow/states/empty.xml index 1e2d2adcfad678090982348d4dbcca557f099b08..b1a76858f35fca61a1f8de29a5fe2c111ec0d940 100644 --- a/bt5/erp5_dms/WorkflowTemplateItem/portal_workflow/processing_status_workflow/states/empty.xml +++ b/bt5/erp5_dms/WorkflowTemplateItem/portal_workflow/processing_status_workflow/states/empty.xml @@ -31,6 +31,7 @@ <key> <string>transitions</string> </key> <value> <tuple> + <string>detect_uploaded_file</string> <string>edit</string> <string>upload_file</string> </tuple> diff --git a/bt5/erp5_dms/WorkflowTemplateItem/portal_workflow/processing_status_workflow/states/uploaded.xml b/bt5/erp5_dms/WorkflowTemplateItem/portal_workflow/processing_status_workflow/states/uploaded.xml index 3d12f2a233fcfcdaac703a3126256d1b2da607ab..92198387fe63f5dd248d62349f9ea56ed902efb4 100644 --- a/bt5/erp5_dms/WorkflowTemplateItem/portal_workflow/processing_status_workflow/states/uploaded.xml +++ b/bt5/erp5_dms/WorkflowTemplateItem/portal_workflow/processing_status_workflow/states/uploaded.xml @@ -38,6 +38,7 @@ <value> <tuple> <string>convert_action</string> + <string>detect_converted_file</string> <string>edit</string> <string>process_file</string> <string>upload_file</string> diff --git a/bt5/erp5_dms/WorkflowTemplateItem/portal_workflow/processing_status_workflow/transitions/detect_converted_file.xml b/bt5/erp5_dms/WorkflowTemplateItem/portal_workflow/processing_status_workflow/transitions/detect_converted_file.xml new file mode 100644 index 0000000000000000000000000000000000000000..113c0d7082200b7810dedfe91c85f5ea1a9dc0d9 --- /dev/null +++ b/bt5/erp5_dms/WorkflowTemplateItem/portal_workflow/processing_status_workflow/transitions/detect_converted_file.xml @@ -0,0 +1,107 @@ +<?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>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <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> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>detect_converted_file</string> </value> + </item> + <item> + <key> <string>new_state_id</string> </key> + <value> <string>converted</string> </value> + </item> + <item> + <key> <string>script_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>trigger_type</string> </key> + <value> <int>0</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>expr</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <tuple> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>python: here.isSupportBaseDataConversion() and here.hasBaseData()</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_dms/WorkflowTemplateItem/portal_workflow/processing_status_workflow/transitions/detect_uploaded_file.xml b/bt5/erp5_dms/WorkflowTemplateItem/portal_workflow/processing_status_workflow/transitions/detect_uploaded_file.xml new file mode 100644 index 0000000000000000000000000000000000000000..5557d17d9c272ecd33fb39656d5f13e181d7a601 --- /dev/null +++ b/bt5/erp5_dms/WorkflowTemplateItem/portal_workflow/processing_status_workflow/transitions/detect_uploaded_file.xml @@ -0,0 +1,107 @@ +<?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>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <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> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>detect_uploaded_file</string> </value> + </item> + <item> + <key> <string>new_state_id</string> </key> + <value> <string>uploaded</string> </value> + </item> + <item> + <key> <string>script_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>trigger_type</string> </key> + <value> <int>0</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>expr</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <tuple> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>python: here.hasData()</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_dms/bt/revision b/bt5/erp5_dms/bt/revision index e458f1411c1ea96ba7709a1e95552303591e1434..779a8736e2c9762c2e62590be40c16f5209c1589 100644 --- a/bt5/erp5_dms/bt/revision +++ b/bt5/erp5_dms/bt/revision @@ -1 +1 @@ -821 \ No newline at end of file +826 \ No newline at end of file