Commit 8fc7d0bc authored by Jean-Paul Smets's avatar Jean-Paul Smets

Merged ooo_intreraction_workflow and dms_file_interaction_workflow in to a...

Merged ooo_intreraction_workflow and dms_file_interaction_workflow in to a single workflow which handled all interactions related to file upload. Unified conversion tracking and edition tracking into a single workflow (processing_status_workflow). The state of this workflow can be used to know if a file document has been uploaded or converted yet.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13041 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 629d54cb
<workflow_chain> <workflow_chain>
<chain> <chain>
<type>Drawing</type> <type>Drawing</type>
<workflow>local_permission_interaction_workflow, edit_workflow, processing_status_workflow, dms_file_interaction_workflow, document_publication_workflow, ooo_interaction_workflow</workflow> <workflow>local_permission_interaction_workflow, processing_status_workflow, document_interaction_workflow, document_publication_workflow</workflow>
</chain> </chain>
<chain> <chain>
<type>External Web Page</type> <type>External Web Page</type>
...@@ -9,19 +9,19 @@ ...@@ -9,19 +9,19 @@
</chain> </chain>
<chain> <chain>
<type>File</type> <type>File</type>
<workflow>dms_file_interaction_workflow, document_publication_workflow, edit_workflow, local_permission_interaction_workflow, processing_status_workflow</workflow> <workflow>document_publication_workflow, document_interaction_workflow, local_permission_interaction_workflow, processing_status_workflow</workflow>
</chain> </chain>
<chain> <chain>
<type>Image</type> <type>Image</type>
<workflow>processing_status_workflow, edit_workflow, dms_file_interaction_workflow, document_publication_workflow, local_permission_interaction_workflow</workflow> <workflow>processing_status_workflow, document_interaction_workflow, document_publication_workflow, local_permission_interaction_workflow</workflow>
</chain> </chain>
<chain> <chain>
<type>PDF</type> <type>PDF</type>
<workflow>local_permission_interaction_workflow, processing_status_workflow, dms_file_interaction_workflow, document_publication_workflow, edit_workflow</workflow> <workflow>local_permission_interaction_workflow, processing_status_workflow, document_interaction_workflow, document_publication_workflow</workflow>
</chain> </chain>
<chain> <chain>
<type>Presentation</type> <type>Presentation</type>
<workflow>document_publication_workflow, processing_status_workflow, local_permission_interaction_workflow, dms_file_interaction_workflow, edit_workflow, ooo_interaction_workflow</workflow> <workflow>document_publication_workflow, processing_status_workflow, local_permission_interaction_workflow, document_interaction_workflow</workflow>
</chain> </chain>
<chain> <chain>
<type>Role Definition</type> <type>Role Definition</type>
...@@ -29,10 +29,10 @@ ...@@ -29,10 +29,10 @@
</chain> </chain>
<chain> <chain>
<type>Spreadsheet</type> <type>Spreadsheet</type>
<workflow>dms_file_interaction_workflow, edit_workflow, document_publication_workflow, processing_status_workflow, ooo_interaction_workflow, local_permission_interaction_workflow</workflow> <workflow>document_interaction_workflow, processing_status_workflow, document_publication_workflow, local_permission_interaction_workflow</workflow>
</chain> </chain>
<chain> <chain>
<type>Text</type> <type>Text</type>
<workflow>processing_status_workflow, local_permission_interaction_workflow, document_publication_workflow, ooo_interaction_workflow, dms_file_interaction_workflow, edit_workflow</workflow> <workflow>processing_status_workflow, local_permission_interaction_workflow, document_publication_workflow, document_interaction_workflow</workflow>
</chain> </chain>
</workflow_chain> </workflow_chain>
\ No newline at end of file
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.ERP5.Interaction</string>
<string>InteractionDefinition</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</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>activate_script_name</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>after_script_name</string> </key>
<value>
<list>
<string>AssignCategories</string>
<string>ClearCacheUponUpload</string>
<string>UpdateLocalRoles</string>
</list>
</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>All_edit</string> </value>
</item>
<item>
<key> <string>method_id</string> </key>
<value>
<list>
<string>_edit</string>
</list>
</value>
</item>
<item>
<key> <string>portal_type_filter</string> </key>
<value>
<list>
<string>Drawing</string>
<string>File</string>
<string>Image</string>
<string>PDF</string>
<string>Presentation</string>
<string>Spreadsheet</string>
<string>Text</string>
</list>
</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>
<tuple>
<string>Products.ERP5.InteractionWorkflow</string>
<string>InteractionWorkflowDefinition</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>creation_guard</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string>This interaction workflow tracks uploads in an existing document and triggers appropriate conversion methods if necessary. It also tracks any edit made to a document and updates local roles / metadata.</string> </value>
</item>
<item>
<key> <string>groups</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>document_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>Document Interactions</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
<key> <string>after_script_name</string> </key> <key> <string>after_script_name</string> </key>
<value> <value>
<list> <list>
<string>AssignCategories</string> <string>updateLocalRoles</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -56,13 +56,13 @@ ...@@ -56,13 +56,13 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>ExternalDoc_edit</string> </value> <value> <string>Document_edit</string> </value>
</item> </item>
<item> <item>
<key> <string>method_id</string> </key> <key> <string>method_id</string> </key>
<value> <value>
<list> <list>
<string>_edit</string> <string>edit</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -70,8 +70,9 @@ ...@@ -70,8 +70,9 @@
<key> <string>portal_type_filter</string> </key> <key> <string>portal_type_filter</string> </key>
<value> <value>
<list> <list>
<string>External Library File</string> <string>File</string>
<string>External Web Page</string> <string>Image</string>
<string>PDF</string>
</list> </list>
</value> </value>
</item> </item>
......
...@@ -18,6 +18,12 @@ ...@@ -18,6 +18,12 @@
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>actbox_category</string> </key> <key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value> <value> <string>workflow</string> </value>
...@@ -40,7 +46,8 @@ ...@@ -40,7 +46,8 @@
<key> <string>after_script_name</string> </key> <key> <string>after_script_name</string> </key>
<value> <value>
<list> <list>
<string>AssignCategories</string> <string>clearCacheUponUpload</string>
<string>upload</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -56,22 +63,20 @@ ...@@ -56,22 +63,20 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>WebPage_edit</string> </value> <value> <string>Document_setFile</string> </value>
</item> </item>
<item> <item>
<key> <string>method_id</string> </key> <key> <string>method_id</string> </key>
<value> <value>
<list> <list>
<string>_edit</string> <string>_setFile</string>
</list> </list>
</value> </value>
</item> </item>
<item> <item>
<key> <string>portal_type_filter</string> </key> <key> <string>portal_type_filter</string> </key>
<value> <value>
<list> <none/>
<string>Web Page</string>
</list>
</value> </value>
</item> </item>
<item> <item>
......
...@@ -18,6 +18,12 @@ ...@@ -18,6 +18,12 @@
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>actbox_category</string> </key> <key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value> <value> <string>workflow</string> </value>
...@@ -39,9 +45,7 @@ ...@@ -39,9 +45,7 @@
<item> <item>
<key> <string>after_script_name</string> </key> <key> <string>after_script_name</string> </key>
<value> <value>
<list> <tuple/>
<string>OOo_edit</string>
</list>
</value> </value>
</item> </item>
<item> <item>
...@@ -56,14 +60,12 @@ ...@@ -56,14 +60,12 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>OOo_edit</string> </value> <value> <string>OOoDocument_edit</string> </value>
</item> </item>
<item> <item>
<key> <string>method_id</string> </key> <key> <string>method_id</string> </key>
<value> <value>
<list> <list/>
<string>_edit</string>
</list>
</value> </value>
</item> </item>
<item> <item>
...@@ -71,7 +73,6 @@ ...@@ -71,7 +73,6 @@
<value> <value>
<list> <list>
<string>Drawing</string> <string>Drawing</string>
<string>Memo</string>
<string>Presentation</string> <string>Presentation</string>
<string>Spreadsheet</string> <string>Spreadsheet</string>
<string>Text</string> <string>Text</string>
...@@ -81,7 +82,10 @@ ...@@ -81,7 +82,10 @@
<item> <item>
<key> <string>script_name</string> </key> <key> <string>script_name</string> </key>
<value> <value>
<tuple/> <list>
<string>OOoDocument_updateMetadata</string>
<string>updateLocalRoles</string>
</list>
</value> </value>
</item> </item>
<item> <item>
......
...@@ -158,6 +158,10 @@ if f is not None and f:\n ...@@ -158,6 +158,10 @@ if f is not None and f:\n
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>CheckKnownType</string> </value> <value> <string>CheckKnownType</string> </value>
</item> </item>
<item>
<key> <string>title</string> </key>
<value> <string>XXX - Used ?</string> </value>
</item>
<item> <item>
<key> <string>warnings</string> </key> <key> <string>warnings</string> </key>
<value> <value>
......
...@@ -156,6 +156,10 @@ if f is not None and f:\n ...@@ -156,6 +156,10 @@ if f is not None and f:\n
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>CheckUnKnownType</string> </value> <value> <string>CheckUnKnownType</string> </value>
</item> </item>
<item>
<key> <string>title</string> </key>
<value> <string>XXX - Used ?</string> </value>
</item>
<item> <item>
<key> <string>warnings</string> </key> <key> <string>warnings</string> </key>
<value> <value>
......
...@@ -146,6 +146,10 @@ if f is not None and f:\n ...@@ -146,6 +146,10 @@ if f is not None and f:\n
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>IngestAfterUpload</string> </value> <value> <string>IngestAfterUpload</string> </value>
</item> </item>
<item>
<key> <string>title</string> </key>
<value> <string>XXX - Used ?</string> </value>
</item>
<item> <item>
<key> <string>warnings</string> </key> <key> <string>warnings</string> </key>
<value> <value>
......
...@@ -70,6 +70,9 @@ ...@@ -70,6 +70,9 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>"""\n <value> <string>"""\n
when OOoDocument is edited, we update metadata in the ODF file\n when OOoDocument is edited, we update metadata in the ODF file\n
\n
XXX - This script must be verified, written with clean syntax \n
and using less horrible methods (request lookup yuk!)\n
"""\n """\n
\n \n
ob=state_change.object\n ob=state_change.object\n
...@@ -86,7 +89,7 @@ if ob.hasOOFile():\n ...@@ -86,7 +89,7 @@ if ob.hasOOFile():\n
newmeta[mf]=kw[keymf]\n newmeta[mf]=kw[keymf]\n
if newmeta:\n if newmeta:\n
# edit metadata via server\n # edit metadata via server\n
ob.editMetadata(newmeta)\n ob.activate().editMetadata(newmeta)\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -101,6 +104,12 @@ if ob.hasOOFile():\n ...@@ -101,6 +104,12 @@ if ob.hasOOFile():\n
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>state_change</string> </value> <value> <string>state_change</string> </value>
...@@ -158,7 +167,7 @@ if ob.hasOOFile():\n ...@@ -158,7 +167,7 @@ if ob.hasOOFile():\n
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>OOo_edit</string> </value> <value> <string>OOoDocument_updateMetadata</string> </value>
</item> </item>
<item> <item>
<key> <string>warnings</string> </key> <key> <string>warnings</string> </key>
......
...@@ -69,13 +69,9 @@ ...@@ -69,13 +69,9 @@
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>ob = state_change.object\n <value> <string>ob = state_change.object\n
kw = ob.REQUEST\n # if file uploaded, then:\n
f = kw.get(\'my_file\', None)\n if hasattr(ob, \'clearConversionCache\'): # e.g. File doesn\'t have it\n
\n ob.clearConversionCache()\n
if f is not None and f:\n
# if file uploaded, then:\n
if hasattr(ob, \'clearConversionCache\'): # e.g. File doesn\'t have it\n
ob.clearConversionCache()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -121,9 +117,6 @@ if f is not None and f:\n ...@@ -121,9 +117,6 @@ if f is not None and f:\n
<string>state_change</string> <string>state_change</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>ob</string> <string>ob</string>
<string>kw</string>
<string>None</string>
<string>f</string>
<string>hasattr</string> <string>hasattr</string>
</tuple> </tuple>
</value> </value>
...@@ -141,7 +134,7 @@ if f is not None and f:\n ...@@ -141,7 +134,7 @@ if f is not None and f:\n
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>ClearCacheUponUpload</string> </value> <value> <string>clearCacheUponUpload</string> </value>
</item> </item>
<item> <item>
<key> <string>warnings</string> </key> <key> <string>warnings</string> </key>
......
...@@ -129,7 +129,7 @@ ...@@ -129,7 +129,7 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>UpdateLocalRoles</string> </value> <value> <string>updateLocalRoles</string> </value>
</item> </item>
<item> <item>
<key> <string>warnings</string> </key> <key> <string>warnings</string> </key>
......
...@@ -68,17 +68,8 @@ ...@@ -68,17 +68,8 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>"""\n <value> <string>state_change.object.uploadFile()\n
to assign categories from parallel list field\n state_change.object.activate().convertToBase()\n
"""\n
\n
o = sci.object\n
request = o.REQUEST\n
pref = \'subfield_field_my_dms_category_list_\'\n
for k,v in request.items():\n
if k.startswith(pref):\n
if v != \'\':\n
o.setProperty(k.replace(pref, \'\'), v)\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -93,9 +84,15 @@ for k,v in request.items():\n ...@@ -93,9 +84,15 @@ for k,v in request.items():\n
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>sci</string> </value> <value> <string>state_change</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -121,14 +118,8 @@ for k,v in request.items():\n ...@@ -121,14 +118,8 @@ for k,v in request.items():\n
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <value>
<tuple> <tuple>
<string>sci</string> <string>state_change</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>o</string>
<string>request</string>
<string>pref</string>
<string>_getiter_</string>
<string>k</string>
<string>v</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -145,7 +136,11 @@ for k,v in request.items():\n ...@@ -145,7 +136,11 @@ for k,v in request.items():\n
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>AssignCategories</string> </value> <value> <string>upload</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Move to upload state and activate convert</string> </value>
</item> </item>
<item> <item>
<key> <string>warnings</string> </key> <key> <string>warnings</string> </key>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.DCWorkflow.Variables</string>
<string>Variables</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<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>
<tuple>
<string>Products.DCWorkflow.Worklists</string>
<string>Worklists</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<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>
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
</item> </item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string>A one-state workflow (similar to edit_workflow), for recording and displaying external processing messages</string> </value> <value> <string>This workflow tracks changes to the current document as well as the state in the conversion process. It provides access to history through serial numbers.</string> </value>
</item> </item>
<item> <item>
<key> <string>groups</string> </key> <key> <string>groups</string> </key>
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
</item> </item>
<item> <item>
<key> <string>initial_state</string> </key> <key> <string>initial_state</string> </key>
<value> <string>current</string> </value> <value> <string>empty</string> </value>
</item> </item>
<item> <item>
<key> <string>manager_bypass</string> </key> <key> <string>manager_bypass</string> </key>
......
...@@ -24,6 +24,12 @@ ...@@ -24,6 +24,12 @@
<dictionary/> <dictionary/>
</value> </value>
</item> </item>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>scripts</string> </value> <value> <string>scripts</string> </value>
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
<pickle> <pickle>
<tuple> <tuple>
<tuple> <tuple>
<string>Products.ERP5.Interaction</string> <string>Products.DCWorkflow.States</string>
<string>Interaction</string> <string>StateDefinition</string>
</tuple> </tuple>
<none/> <none/>
</tuple> </tuple>
...@@ -19,20 +19,38 @@ ...@@ -19,20 +19,38 @@
</value> </value>
</item> </item>
<item> <item>
<key> <string>_mapping</string> </key> <key> <string>_owner</string> </key>
<value> <value>
<dictionary/> <none/>
</value> </value>
</item> </item>
<item> <item>
<key> <string>_objects</string> </key> <key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>converted</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Converted</string> </value>
</item>
<item>
<key> <string>transitions</string> </key>
<value> <value>
<tuple/> <tuple>
<string>edit</string>
<string>process_file</string>
<string>upload_file</string>
</tuple>
</value> </value>
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>type_list</string> </key>
<value> <string>interactions</string> </value> <value>
<tuple/>
</value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -24,18 +24,18 @@ ...@@ -24,18 +24,18 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>current</string> </value> <value> <string>empty</string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string>Empty</string> </value>
</item> </item>
<item> <item>
<key> <string>transitions</string> </key> <key> <string>transitions</string> </key>
<value> <value>
<tuple> <tuple>
<string>process</string> <string>edit</string>
<string>process_action</string> <string>upload_file</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
<pickle> <pickle>
<tuple> <tuple>
<tuple> <tuple>
<string>Products.DCWorkflow.Scripts</string> <string>Products.DCWorkflow.States</string>
<string>Scripts</string> <string>StateDefinition</string>
</tuple> </tuple>
<none/> <none/>
</tuple> </tuple>
...@@ -19,20 +19,40 @@ ...@@ -19,20 +19,40 @@
</value> </value>
</item> </item>
<item> <item>
<key> <string>_mapping</string> </key> <key> <string>_owner</string> </key>
<value> <value>
<dictionary/> <none/>
</value> </value>
</item> </item>
<item> <item>
<key> <string>_objects</string> </key> <key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>uploaded</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Uploaded</string> </value>
</item>
<item>
<key> <string>transitions</string> </key>
<value> <value>
<tuple/> <tuple>
<string>convert_action</string>
<string>convert_file</string>
<string>edit</string>
<string>process_file</string>
<string>upload_file</string>
</tuple>
</value> </value>
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>type_list</string> </key>
<value> <string>scripts</string> </value> <value>
<tuple/>
</value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.DCWorkflow.Transitions</string>
<string>TransitionDefinition</string>
</tuple>
<none/>
</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>Convert to OpenDocument</string> </value>
</item>
<item>
<key> <string>actbox_url</string> </key>
<value> <string>%(content_url)s/OOoDocument_convertToBase</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>convert_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>Convert to OpenDocument</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>
<tuple>
<string>Products.DCWorkflow.Guard</string>
<string>Guard</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>permissions</string> </key>
<value>
<tuple>
<string>Modify portal content</string>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.DCWorkflow.Transitions</string>
<string>TransitionDefinition</string>
</tuple>
<none/>
</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>This workflow method is called whenever conversion has been successfull</string> </value>
</item>
<item>
<key> <string>guard</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>convert_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>Convert file</string> </value>
</item>
<item>
<key> <string>trigger_type</string> </key>
<value> <int>2</int> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -18,6 +18,12 @@ ...@@ -18,6 +18,12 @@
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>actbox_category</string> </key> <key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value> <value> <string>workflow</string> </value>
...@@ -46,7 +52,7 @@ ...@@ -46,7 +52,7 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>process</string> </value> <value> <string>edit</string> </value>
</item> </item>
<item> <item>
<key> <string>new_state_id</string> </key> <key> <string>new_state_id</string> </key>
...@@ -58,11 +64,11 @@ ...@@ -58,11 +64,11 @@
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string>Edit</string> </value>
</item> </item>
<item> <item>
<key> <string>trigger_type</string> </key> <key> <string>trigger_type</string> </key>
<value> <int>1</int> </value> <value> <int>2</int> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.DCWorkflow.Transitions</string>
<string>TransitionDefinition</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>process_action</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.DCWorkflow.Transitions</string>
<string>TransitionDefinition</string>
</tuple>
<none/>
</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>This workflow method is called whenever conversion has failed</string> </value>
</item>
<item>
<key> <string>guard</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>process_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>Process file</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>
<tuple>
<string>Products.DCWorkflow.Transitions</string>
<string>TransitionDefinition</string>
</tuple>
<none/>
</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>This method is invoked each time a file is uploaded</string> </value>
</item>
<item>
<key> <string>guard</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>upload_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>Upload file</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>
<tuple>
<string>Products.DCWorkflow.Variables</string>
<string>VariableDefinition</string>
</tuple>
<none/>
</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>default_expr</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>default_value</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>for_catalog</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>for_status</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>serial</string> </value>
</item>
<item>
<key> <string>info_guard</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>update_always</string> </key>
<value> <int>1</int> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Products.CMFCore.Expression</string>
<string>Expression</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>state_change/object/getHistorySerial | nothing</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
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