From 92933fee2a3a2acfb9549a82c35537bd9572054e Mon Sep 17 00:00:00 2001 From: Gabriel Monnerat <gabriel@tiolive.com> Date: Wed, 20 Apr 2011 22:13:51 +0000 Subject: [PATCH] extend document_publication_workflow to customize the workflow to UNG git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45598 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../workflow_chain_type.xml | 8 +- .../ung_document_publication_workflow.xml | 66 +++++++ .../scripts.xml | 28 +++ .../scripts/archiveVersion.xml | 97 +++++++++++ .../scripts/checkValidity.xml | 67 +++++++ .../states.xml | 28 +++ .../states/archived.xml | 117 +++++++++++++ .../states/assigned.xml | 119 +++++++++++++ .../states/cancelled.xml | 113 ++++++++++++ .../states/deleted.xml | 100 +++++++++++ .../states/draft.xml | 163 ++++++++++++++++++ .../states/hidden.xml | 127 ++++++++++++++ .../states/published.xml | 125 ++++++++++++++ .../states/published_alive.xml | 127 ++++++++++++++ .../states/released.xml | 127 ++++++++++++++ .../states/released_alive.xml | 129 ++++++++++++++ .../states/requested.xml | 117 +++++++++++++ .../states/shared.xml | 122 +++++++++++++ .../states/shared_alive.xml | 131 ++++++++++++++ .../states/split.xml | 117 +++++++++++++ .../states/submitted.xml | 129 ++++++++++++++ .../states/translated.xml | 119 +++++++++++++ .../transitions.xml | 28 +++ .../transitions/accept.xml | 58 +++++++ .../transitions/accept_action.xml | 78 +++++++++ .../transitions/archive.xml | 58 +++++++ .../transitions/archive_action.xml | 78 +++++++++ .../transitions/assign.xml | 58 +++++++ .../transitions/assign_action.xml | 78 +++++++++ .../transitions/cancel.xml | 58 +++++++ .../transitions/cancel_action.xml | 80 +++++++++ .../transitions/delete.xml | 58 +++++++ .../transitions/delete_action.xml | 80 +++++++++ .../transitions/extract.xml | 92 ++++++++++ .../transitions/hide.xml | 58 +++++++ .../transitions/hide_action.xml | 78 +++++++++ .../transitions/publish.xml | 62 +++++++ .../transitions/publish_action.xml | 79 +++++++++ .../transitions/publish_alive.xml | 62 +++++++ .../transitions/publish_alive_action.xml | 79 +++++++++ .../transitions/reject.xml | 58 +++++++ .../transitions/reject_action.xml | 78 +++++++++ .../transitions/release.xml | 62 +++++++ .../transitions/release_action.xml | 79 +++++++++ .../transitions/release_alive.xml | 62 +++++++ .../transitions/release_alive_action.xml | 79 +++++++++ .../transitions/request.xml | 58 +++++++ .../transitions/request_action.xml | 102 +++++++++++ .../transitions/share.xml | 62 +++++++ .../transitions/share_action.xml | 79 +++++++++ .../transitions/share_alive.xml | 62 +++++++ .../transitions/share_alive_action.xml | 79 +++++++++ .../transitions/split.xml | 58 +++++++ .../transitions/split_action.xml | 78 +++++++++ .../transitions/submit.xml | 58 +++++++ .../transitions/submit_action.xml | 101 +++++++++++ .../transitions/translate.xml | 58 +++++++ .../transitions/translate_action.xml | 79 +++++++++ .../variables.xml | 28 +++ .../variables/action.xml | 64 +++++++ .../variables/actor.xml | 64 +++++++ .../variables/comment.xml | 64 +++++++ .../variables/error_message.xml | 48 ++++++ .../variables/history.xml | 64 +++++++ .../variables/time.xml | 64 +++++++ .../worklists.xml | 28 +++ .../worklists/assigned_to_translate.xml | 95 ++++++++++ .../worklists/draft_to_submit.xml | 95 ++++++++++ .../worklists/requested_to_assign.xml | 95 ++++++++++ .../worklists/submitted_for_review.xml | 95 ++++++++++ .../worklists/translated_to_accept.xml | 95 ++++++++++ .../worklists/translation_to_collate.xml | 96 +++++++++++ bt5/erp5_web_ung_core/bt/revision | 2 +- .../template_portal_type_workflow_chain_list | 11 +- .../bt/template_workflow_id_list | 1 + 75 files changed, 5793 insertions(+), 6 deletions(-) create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/scripts.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/scripts/archiveVersion.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/scripts/checkValidity.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/archived.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/assigned.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/cancelled.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/deleted.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/draft.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/hidden.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/published.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/published_alive.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/released.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/released_alive.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/requested.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/shared.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/shared_alive.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/split.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/submitted.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/translated.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/accept.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/accept_action.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/archive.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/archive_action.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/assign.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/assign_action.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/cancel.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/cancel_action.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/delete.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/delete_action.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/extract.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/hide.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/hide_action.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/publish.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/publish_action.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/publish_alive.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/publish_alive_action.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/reject.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/reject_action.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/release.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/release_action.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/release_alive.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/release_alive_action.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/request.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/request_action.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/share.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/share_action.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/share_alive.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/share_alive_action.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/split.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/split_action.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/submit.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/submit_action.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/translate.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/translate_action.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/variables.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/variables/action.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/variables/actor.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/variables/comment.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/variables/error_message.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/variables/history.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/variables/time.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/worklists.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/worklists/assigned_to_translate.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/worklists/draft_to_submit.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/worklists/requested_to_assign.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/worklists/submitted_for_review.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/worklists/translated_to_accept.xml create mode 100644 bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/worklists/translation_to_collate.xml create mode 100644 bt5/erp5_web_ung_core/bt/template_workflow_id_list diff --git a/bt5/erp5_web_ung_core/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml b/bt5/erp5_web_ung_core/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml index 2ffe81ed8f..a88bf54e2a 100644 --- a/bt5/erp5_web_ung_core/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml +++ b/bt5/erp5_web_ung_core/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml @@ -1,10 +1,14 @@ <workflow_chain> <chain> <type>Web Illustration</type> - <workflow>document_conversion_interaction_workflow, document_publication_workflow, document_security_interaction_workflow, edit_workflow, processing_status_workflow</workflow> + <workflow>document_conversion_interaction_workflow, document_security_interaction_workflow, edit_workflow, processing_status_workflow, ung_document_publication_workflow</workflow> + </chain> + <chain> + <type>Web Page</type> + <workflow>document_conversion_interaction_workflow, document_security_interaction_workflow, edit_workflow, processing_status_workflow, ung_document_publication_workflow</workflow> </chain> <chain> <type>Web Table</type> - <workflow>document_conversion_interaction_workflow, document_publication_workflow, document_security_interaction_workflow, edit_workflow, processing_status_workflow</workflow> + <workflow>document_conversion_interaction_workflow, document_security_interaction_workflow, edit_workflow, processing_status_workflow, ung_document_publication_workflow</workflow> </chain> </workflow_chain> \ No newline at end of file diff --git a/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow.xml new file mode 100644 index 0000000000..7d90fb3c15 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow.xml @@ -0,0 +1,66 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="DCWorkflowDefinition" module="Products.DCWorkflow.DCWorkflow"/> + </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>A generic publication workflow which combines versioning, staging and translation management.</string> </value> + </item> + <item> + <key> <string>groups</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>ung_document_publication_workflow</string> </value> + </item> + <item> + <key> <string>initial_state</string> </key> + <value> <string>draft</string> </value> + </item> + <item> + <key> <string>manager_bypass</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>permissions</string> </key> + <value> + <tuple> + <string>Access contents information</string> + <string>View</string> + <string>Add portal content</string> + <string>Modify portal content</string> + <string>Change local roles</string> + </tuple> + </value> + </item> + <item> + <key> <string>state_var</string> </key> + <value> <string>validation_state</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Document Publication Workflow</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/scripts.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/scripts.xml new file mode 100644 index 0000000000..072c8f6540 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/scripts.xml @@ -0,0 +1,28 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Scripts" module="Products.DCWorkflow.Scripts"/> + </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> diff --git a/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/scripts/archiveVersion.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/scripts/archiveVersion.xml new file mode 100644 index 0000000000..2ace70cbaa --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/scripts/archiveVersion.xml @@ -0,0 +1,97 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + </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>"""\n +This script is invoked each time a new document is published.\n +The previous version is archived automatically.\n +\n +This will only apply to documents with enough coordinates\n +(ex. reference, language, version).\n +"""\n +document = state_change[\'object\']\n +reference = document.getReference()\n +if not reference:\n + # If this object has no reference, we can not do anything\n + return\n +\n +portal = document.getPortalObject()\n +portal_catalog = portal.portal_catalog\n +language = document.getLanguage()\n +if not language:\n + # If language is None, we have to check is this document\n + # is language independent. In this case, archival is possible\n + # But if a document exists with same reference and defined\n + # language, we can not do anything\n + for old_document in portal_catalog(reference=reference, validation_state=validation_state):\n + old_document = old_document.getObject()\n + if not old_document.getLanguage():\n + old_document.archive()\n + return\n +\n +# We can now archive all documents with same reference and language in published state\n +for old_document in portal_catalog(reference=reference, language=language, validation_state=validation_state):\n + old_document = old_document.getObject()\n + old_document.archive()\n +</string> </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>state_change, validation_state=[\'published\', \'published_alive\', \'released\', \'released_alive\', \'shared\', \'shared_alive\']</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>archiveVersion</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/scripts/checkValidity.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/scripts/checkValidity.xml new file mode 100644 index 0000000000..89c92ead48 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/scripts/checkValidity.xml @@ -0,0 +1,67 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + </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>state_change[\'object\'].Base_checkConsistency()\n +</string> </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>state_change</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>checkValidity</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states.xml new file mode 100644 index 0000000000..27ec906902 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states.xml @@ -0,0 +1,28 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="States" module="Products.DCWorkflow.States"/> + </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>states</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/archived.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/archived.xml new file mode 100644 index 0000000000..7e42691836 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/archived.xml @@ -0,0 +1,117 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="StateDefinition" module="Products.DCWorkflow.States"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>description</string> </key> + <value> <string>A previous version of a document, that has been archived by a user. </string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>archived</string> </value> + </item> + <item> + <key> <string>permission_roles</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Archived</string> </value> + </item> + <item> + <key> <string>transitions</string> </key> + <value> + <tuple> + <string>delete</string> + <string>delete_action</string> + </tuple> + </value> + </item> + <item> + <key> <string>type_list</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Persistence</string> + <string>PersistentMapping</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_container</string> </key> + <value> + <dictionary> + <item> + <key> <string>Access contents information</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Associate</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + <item> + <key> <string>Add portal content</string> </key> + <value> + <tuple> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>Change local roles</string> </key> + <value> + <tuple> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>Modify portal content</string> </key> + <value> + <tuple> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>View</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Associate</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/assigned.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/assigned.xml new file mode 100644 index 0000000000..65502dc34e --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/assigned.xml @@ -0,0 +1,119 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="StateDefinition" module="Products.DCWorkflow.States"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>description</string> </key> + <value> <string>A document which has been assigned to a user, in order to be processed.</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>assigned</string> </value> + </item> + <item> + <key> <string>permission_roles</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Assigned</string> </value> + </item> + <item> + <key> <string>transitions</string> </key> + <value> + <tuple> + <string>delete</string> + <string>delete_action</string> + <string>split</string> + <string>split_action</string> + <string>translate</string> + <string>translate_action</string> + </tuple> + </value> + </item> + <item> + <key> <string>type_list</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="PersistentMapping" module="Persistence.mapping"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary> + <item> + <key> <string>Access contents information</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + <item> + <key> <string>Add portal content</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>Change local roles</string> </key> + <value> + <tuple> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>Modify portal content</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>View</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/cancelled.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/cancelled.xml new file mode 100644 index 0000000000..c743f5a96b --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/cancelled.xml @@ -0,0 +1,113 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="StateDefinition" module="Products.DCWorkflow.States"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>description</string> </key> + <value> <string>Cancelled documents are no longer visible</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>cancelled</string> </value> + </item> + <item> + <key> <string>permission_roles</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Cancelled</string> </value> + </item> + <item> + <key> <string>transitions</string> </key> + <value> + <tuple> + <string>delete</string> + <string>delete_action</string> + </tuple> + </value> + </item> + <item> + <key> <string>type_list</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Persistence</string> + <string>PersistentMapping</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_container</string> </key> + <value> + <dictionary> + <item> + <key> <string>Access contents information</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + <item> + <key> <string>Add portal content</string> </key> + <value> + <tuple> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>Change local roles</string> </key> + <value> + <tuple> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>Modify portal content</string> </key> + <value> + <tuple> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>View</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/deleted.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/deleted.xml new file mode 100644 index 0000000000..b9a86dd279 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/deleted.xml @@ -0,0 +1,100 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="StateDefinition" module="Products.DCWorkflow.States"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>description</string> </key> + <value> <string>Deleted document are no longer visible</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>deleted</string> </value> + </item> + <item> + <key> <string>permission_roles</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Deleted</string> </value> + </item> + <item> + <key> <string>transitions</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>type_list</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary> + <item> + <key> <string>Access contents information</string> </key> + <value> + <tuple> + <string>Authenticated</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>Add portal content</string> </key> + <value> + <tuple> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>Change local roles</string> </key> + <value> + <tuple> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>Modify portal content</string> </key> + <value> + <tuple> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>View</string> </key> + <value> + <tuple> + <string>Authenticated</string> + <string>Manager</string> + </tuple> + </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/draft.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/draft.xml new file mode 100644 index 0000000000..09ad6f84b6 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/draft.xml @@ -0,0 +1,163 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="StateDefinition" module="Products.DCWorkflow.States"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>description</string> </key> + <value> <string>A document in draft state, which is still being worked by its author or its contributors (in a collaborative process)</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>draft</string> </value> + </item> + <item> + <key> <string>permission_roles</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Draft</string> </value> + </item> + <item> + <key> <string>transitions</string> </key> + <value> + <tuple> + <string>cancel</string> + <string>cancel_action</string> + <string>delete</string> + <string>delete_action</string> + <string>embed</string> + <string>publish</string> + <string>publish_action</string> + <string>publish_alive</string> + <string>publish_alive_action</string> + <string>release</string> + <string>release_action</string> + <string>release_alive</string> + <string>release_alive_action</string> + <string>request</string> + <string>request_action</string> + <string>share</string> + <string>share_action</string> + <string>share_alive</string> + <string>share_alive_action</string> + <string>submit</string> + <string>submit_action</string> + </tuple> + </value> + </item> + <item> + <key> <string>type_list</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>var_values</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="PersistentMapping" module="Persistence.mapping"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary> + <item> + <key> <string>Access contents information</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + <item> + <key> <string>Add portal content</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + <item> + <key> <string>Change local roles</string> </key> + <value> + <tuple> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>Modify portal content</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + <item> + <key> <string>View</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <tuple> + <tuple> + <string>Persistence</string> + <string>PersistentMapping</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_container</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/hidden.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/hidden.xml new file mode 100644 index 0000000000..99f9ee9bf0 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/hidden.xml @@ -0,0 +1,127 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="StateDefinition" module="Products.DCWorkflow.States"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>description</string> </key> + <value> <string>Hidden documents are documents which were published or released by mistake. This state models exception handling in the publication process.</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>hidden</string> </value> + </item> + <item> + <key> <string>permission_roles</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Hidden</string> </value> + </item> + <item> + <key> <string>transitions</string> </key> + <value> + <tuple> + <string>publish</string> + <string>publish_action</string> + <string>publish_alive</string> + <string>publish_alive_action</string> + <string>release</string> + <string>release_action</string> + <string>release_alive</string> + <string>release_alive_action</string> + <string>share</string> + <string>share_action</string> + <string>share_alive</string> + <string>share_alive_action</string> + <string>submit</string> + <string>submit_action</string> + </tuple> + </value> + </item> + <item> + <key> <string>type_list</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="PersistentMapping" module="Persistence.mapping"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary> + <item> + <key> <string>Access contents information</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + <item> + <key> <string>Add portal content</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>Change local roles</string> </key> + <value> + <tuple> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>Modify portal content</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>View</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/published.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/published.xml new file mode 100644 index 0000000000..45a2c1b483 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/published.xml @@ -0,0 +1,125 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="StateDefinition" module="Products.DCWorkflow.States"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>description</string> </key> + <value> <string>A published document. Everyone can access it.</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>published</string> </value> + </item> + <item> + <key> <string>permission_roles</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Published</string> </value> + </item> + <item> + <key> <string>transitions</string> </key> + <value> + <tuple> + <string>archive</string> + <string>archive_action</string> + <string>hide</string> + <string>hide_action</string> + <string>reject</string> + <string>reject_action</string> + </tuple> + </value> + </item> + <item> + <key> <string>type_list</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Persistence</string> + <string>PersistentMapping</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_container</string> </key> + <value> + <dictionary> + <item> + <key> <string>Access contents information</string> </key> + <value> + <tuple> + <string>Anonymous</string> + <string>Assignee</string> + <string>Assignor</string> + <string>Associate</string> + <string>Auditor</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + <item> + <key> <string>Add portal content</string> </key> + <value> + <tuple> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>Change local roles</string> </key> + <value> + <tuple> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>Modify portal content</string> </key> + <value> + <tuple> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>View</string> </key> + <value> + <tuple> + <string>Anonymous</string> + <string>Assignee</string> + <string>Assignor</string> + <string>Associate</string> + <string>Auditor</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/published_alive.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/published_alive.xml new file mode 100644 index 0000000000..cbb120c057 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/published_alive.xml @@ -0,0 +1,127 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="StateDefinition" module="Products.DCWorkflow.States"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>description</string> </key> + <value> <string>A published document which is alive. Everyone can access it, including anonymous users. Every assigned knowledge contributor or knowledge manager may modify it depending on its classification policy.</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>published_alive</string> </value> + </item> + <item> + <key> <string>permission_roles</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Published Alive</string> </value> + </item> + <item> + <key> <string>transitions</string> </key> + <value> + <tuple> + <string>archive</string> + <string>archive_action</string> + <string>delete</string> + <string>delete_action</string> + <string>hide</string> + <string>hide_action</string> + <string>reject</string> + <string>reject_action</string> + </tuple> + </value> + </item> + <item> + <key> <string>type_list</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="PersistentMapping" module="Persistence.mapping"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary> + <item> + <key> <string>Access contents information</string> </key> + <value> + <tuple> + <string>Anonymous</string> + <string>Assignee</string> + <string>Assignor</string> + <string>Associate</string> + <string>Auditor</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + <item> + <key> <string>Add portal content</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>Change local roles</string> </key> + <value> + <tuple> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>Modify portal content</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>View</string> </key> + <value> + <tuple> + <string>Anonymous</string> + <string>Assignee</string> + <string>Assignor</string> + <string>Associate</string> + <string>Auditor</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/released.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/released.xml new file mode 100644 index 0000000000..2a3adb421b --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/released.xml @@ -0,0 +1,127 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="StateDefinition" module="Products.DCWorkflow.States"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>description</string> </key> + <value> <string>A document which is released and becomes accessible to its associates (team, project, members, partners, etc.) based on the security definition</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>released</string> </value> + </item> + <item> + <key> <string>permission_roles</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Released</string> </value> + </item> + <item> + <key> <string>transitions</string> </key> + <value> + <tuple> + <string>archive</string> + <string>archive_action</string> + <string>delete</string> + <string>delete_action</string> + <string>hide</string> + <string>hide_action</string> + <string>publish</string> + <string>publish_action</string> + <string>reject</string> + <string>reject_action</string> + </tuple> + </value> + </item> + <item> + <key> <string>type_list</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Persistence</string> + <string>PersistentMapping</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_container</string> </key> + <value> + <dictionary> + <item> + <key> <string>Access contents information</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Associate</string> + <string>Auditor</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + <item> + <key> <string>Add portal content</string> </key> + <value> + <tuple> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>Change local roles</string> </key> + <value> + <tuple> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>Modify portal content</string> </key> + <value> + <tuple> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>View</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Associate</string> + <string>Auditor</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/released_alive.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/released_alive.xml new file mode 100644 index 0000000000..9dc410521e --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/released_alive.xml @@ -0,0 +1,129 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="StateDefinition" module="Products.DCWorkflow.States"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>description</string> </key> + <value> <string>A document which is released and and alive. It is accessible to its associates (team, project, members, partners, etc.) based on the security definition. It is modifiable by it assignees (ex. team, project, etc. for colloaborative documents) and by its assignor (ex. knowledge manager).</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>released_alive</string> </value> + </item> + <item> + <key> <string>permission_roles</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Released Alive</string> </value> + </item> + <item> + <key> <string>transitions</string> </key> + <value> + <tuple> + <string>archive</string> + <string>archive_action</string> + <string>delete</string> + <string>delete_action</string> + <string>hide</string> + <string>hide_action</string> + <string>publish</string> + <string>publish_action</string> + <string>publish_alive</string> + <string>publish_alive_action</string> + <string>reject</string> + <string>reject_action</string> + </tuple> + </value> + </item> + <item> + <key> <string>type_list</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="PersistentMapping" module="Persistence.mapping"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary> + <item> + <key> <string>Access contents information</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Associate</string> + <string>Auditor</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + <item> + <key> <string>Add portal content</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>Change local roles</string> </key> + <value> + <tuple> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>Modify portal content</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>View</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Associate</string> + <string>Auditor</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/requested.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/requested.xml new file mode 100644 index 0000000000..19d93af0c6 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/requested.xml @@ -0,0 +1,117 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="StateDefinition" module="Products.DCWorkflow.States"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>description</string> </key> + <value> <string>A document for which translation has been requested and which has not yet been assigned a translator or an revisor.</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>requested</string> </value> + </item> + <item> + <key> <string>permission_roles</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Translation Requested</string> </value> + </item> + <item> + <key> <string>transitions</string> </key> + <value> + <tuple> + <string>assign</string> + <string>assign_action</string> + <string>cancel</string> + <string>cancel_action</string> + <string>delete</string> + <string>delete_action</string> + </tuple> + </value> + </item> + <item> + <key> <string>type_list</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="PersistentMapping" module="Persistence.mapping"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary> + <item> + <key> <string>Access contents information</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + <item> + <key> <string>Add portal content</string> </key> + <value> + <tuple> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>Change local roles</string> </key> + <value> + <tuple> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>Modify portal content</string> </key> + <value> + <tuple> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>View</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/shared.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/shared.xml new file mode 100644 index 0000000000..3e6e550f20 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/shared.xml @@ -0,0 +1,122 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="StateDefinition" module="Products.DCWorkflow.States"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>description</string> </key> + <value> <string>A document shared by limited people in the organisation (ex. team, project, etc.)</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>shared</string> </value> + </item> + <item> + <key> <string>permission_roles</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Shared</string> </value> + </item> + <item> + <key> <string>transitions</string> </key> + <value> + <tuple> + <string>archive</string> + <string>archive_action</string> + <string>delete</string> + <string>delete_action</string> + <string>hide</string> + <string>hide_action</string> + <string>publish</string> + <string>publish_action</string> + <string>release</string> + <string>release_action</string> + </tuple> + </value> + </item> + <item> + <key> <string>type_list</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="PersistentMapping" module="Persistence.mapping"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary> + <item> + <key> <string>Access contents information</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Associate</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + <item> + <key> <string>Add portal content</string> </key> + <value> + <tuple> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>Change local roles</string> </key> + <value> + <tuple> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>Modify portal content</string> </key> + <value> + <tuple> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>View</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Associate</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/shared_alive.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/shared_alive.xml new file mode 100644 index 0000000000..c32b8f442e --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/shared_alive.xml @@ -0,0 +1,131 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="StateDefinition" module="Products.DCWorkflow.States"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>description</string> </key> + <value> <string>A document shared by limited people in the organisation (ex. team, project, etc.). Every assigned knowledge contributor or knowledge manager may modify it depending on its classification policy.</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>shared_alive</string> </value> + </item> + <item> + <key> <string>permission_roles</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Shared Alive</string> </value> + </item> + <item> + <key> <string>transitions</string> </key> + <value> + <tuple> + <string>archive</string> + <string>archive_action</string> + <string>delete</string> + <string>delete_action</string> + <string>hide</string> + <string>hide_action</string> + <string>publish</string> + <string>publish_action</string> + <string>publish_alive</string> + <string>publish_alive_action</string> + <string>reject</string> + <string>reject_action</string> + <string>release</string> + <string>release_action</string> + <string>release_alive</string> + <string>release_alive_action</string> + </tuple> + </value> + </item> + <item> + <key> <string>type_list</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="PersistentMapping" module="Persistence.mapping"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary> + <item> + <key> <string>Access contents information</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Associate</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + <item> + <key> <string>Add portal content</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>Change local roles</string> </key> + <value> + <tuple> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>Modify portal content</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>View</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Associate</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/split.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/split.xml new file mode 100644 index 0000000000..ac20321c8e --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/split.xml @@ -0,0 +1,117 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="StateDefinition" module="Products.DCWorkflow.States"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>description</string> </key> + <value> <string>Splits a document in multiple subdocuments to accelerate translation. Sets validation_state to split.</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>split</string> </value> + </item> + <item> + <key> <string>permission_roles</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Split Document</string> </value> + </item> + <item> + <key> <string>transitions</string> </key> + <value> + <tuple> + <string>delete</string> + <string>delete_action</string> + <string>translate</string> + <string>translate_action</string> + </tuple> + </value> + </item> + <item> + <key> <string>type_list</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="PersistentMapping" module="Persistence.mapping"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary> + <item> + <key> <string>Access contents information</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + <item> + <key> <string>Add portal content</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>Change local roles</string> </key> + <value> + <tuple> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>Modify portal content</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>View</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/submitted.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/submitted.xml new file mode 100644 index 0000000000..c607468ee2 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/submitted.xml @@ -0,0 +1,129 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="StateDefinition" module="Products.DCWorkflow.States"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>description</string> </key> + <value> <string>A document which has been submitted for review by the relevant reviewer.</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>submitted</string> </value> + </item> + <item> + <key> <string>permission_roles</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Submitted</string> </value> + </item> + <item> + <key> <string>transitions</string> </key> + <value> + <tuple> + <string>cancel</string> + <string>cancel_action</string> + <string>delete</string> + <string>delete_action</string> + <string>publish</string> + <string>publish_action</string> + <string>publish_alive</string> + <string>publish_alive_action</string> + <string>reject</string> + <string>reject_action</string> + <string>release</string> + <string>release_action</string> + <string>release_alive</string> + <string>release_alive_action</string> + <string>share</string> + <string>share_action</string> + <string>share_alive</string> + <string>share_alive_action</string> + </tuple> + </value> + </item> + <item> + <key> <string>type_list</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="PersistentMapping" module="Persistence.mapping"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary> + <item> + <key> <string>Access contents information</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + <item> + <key> <string>Add portal content</string> </key> + <value> + <tuple> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>Change local roles</string> </key> + <value> + <tuple> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>Modify portal content</string> </key> + <value> + <tuple> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>View</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/translated.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/translated.xml new file mode 100644 index 0000000000..b89c98140d --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/states/translated.xml @@ -0,0 +1,119 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="StateDefinition" module="Products.DCWorkflow.States"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>description</string> </key> + <value> <string>A translated document which needs approval from revisor before submission or acceptance.</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>translated</string> </value> + </item> + <item> + <key> <string>permission_roles</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Translated</string> </value> + </item> + <item> + <key> <string>transitions</string> </key> + <value> + <tuple> + <string>accept</string> + <string>accept_action</string> + <string>assign</string> + <string>assign_action</string> + <string>delete</string> + <string>delete_action</string> + <string>submit</string> + <string>submit_action</string> + </tuple> + </value> + </item> + <item> + <key> <string>type_list</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="PersistentMapping" module="Persistence.mapping"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary> + <item> + <key> <string>Access contents information</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + <item> + <key> <string>Add portal content</string> </key> + <value> + <tuple> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>Change local roles</string> </key> + <value> + <tuple> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>Modify portal content</string> </key> + <value> + <tuple> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>View</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Manager</string> + <string>Owner</string> + </tuple> + </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions.xml new file mode 100644 index 0000000000..aa36144efe --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions.xml @@ -0,0 +1,28 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Transitions" module="Products.DCWorkflow.Transitions"/> + </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>transitions</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/accept.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/accept.xml new file mode 100644 index 0000000000..5f55dc7813 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/accept.xml @@ -0,0 +1,58 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + </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>Accept a translation and set the validation state to submitted, waiting for further approval before publication.</string> </value> + </item> + <item> + <key> <string>guard</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>accept</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>Accept Translation</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_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/accept_action.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/accept_action.xml new file mode 100644 index 0000000000..d1c5ffcea5 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/accept_action.xml @@ -0,0 +1,78 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + </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>Accept Translation</string> </value> + </item> + <item> + <key> <string>actbox_url</string> </key> + <value> <string>%(content_url)s/Base_viewWorkflowActionDialog?workflow_action=accept_action</string> </value> + </item> + <item> + <key> <string>after_script_name</string> </key> + <value> <string>accept</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>Accept the translation which was provided by the assigned translator and submit the translation for further approval before publication.</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>accept_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>Accept Translation 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_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/archive.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/archive.xml new file mode 100644 index 0000000000..b84680e0a2 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/archive.xml @@ -0,0 +1,58 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + </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>Archive a document which has been replaced by a more recent version by setting the validation state to archived.</string> </value> + </item> + <item> + <key> <string>guard</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>archive</string> </value> + </item> + <item> + <key> <string>new_state_id</string> </key> + <value> <string>archived</string> </value> + </item> + <item> + <key> <string>script_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Archive Document</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_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/archive_action.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/archive_action.xml new file mode 100644 index 0000000000..de8386ce68 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/archive_action.xml @@ -0,0 +1,78 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + </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>Archive Document</string> </value> + </item> + <item> + <key> <string>actbox_url</string> </key> + <value> <string>%(content_url)s/Base_viewWorkflowActionDialog?workflow_action=archive_action</string> </value> + </item> + <item> + <key> <string>after_script_name</string> </key> + <value> <string>archive</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>The Archive action can be used to force the archivaval of a document which was previously published, released or shared.</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>archive_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>Archive Document 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_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/assign.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/assign.xml new file mode 100644 index 0000000000..3051831cbb --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/assign.xml @@ -0,0 +1,58 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + </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>Assign this document to a translator and set the validation state to assigned.</string> </value> + </item> + <item> + <key> <string>guard</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>assign</string> </value> + </item> + <item> + <key> <string>new_state_id</string> </key> + <value> <string>assigned</string> </value> + </item> + <item> + <key> <string>script_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Assign Translation</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_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/assign_action.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/assign_action.xml new file mode 100644 index 0000000000..b73f325469 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/assign_action.xml @@ -0,0 +1,78 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + </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>Assign Translation</string> </value> + </item> + <item> + <key> <string>actbox_url</string> </key> + <value> <string>%(content_url)s/Base_viewWorkflowActionDialog?workflow_action=assign_action</string> </value> + </item> + <item> + <key> <string>after_script_name</string> </key> + <value> <string>assign</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>The Assign action is called once a translator has been assigned for the document using local roles (Assignee).</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>assign_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>Assign Translation 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_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/cancel.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/cancel.xml new file mode 100644 index 0000000000..7b0581d137 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/cancel.xml @@ -0,0 +1,58 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + </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>Cancel a document in ERP5</string> </value> + </item> + <item> + <key> <string>guard</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>cancel</string> </value> + </item> + <item> + <key> <string>new_state_id</string> </key> + <value> <string>cancelled</string> </value> + </item> + <item> + <key> <string>script_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Cancel Document Publication</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_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/cancel_action.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/cancel_action.xml new file mode 100644 index 0000000000..d2dbfe96eb --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/cancel_action.xml @@ -0,0 +1,80 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + </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>Cancel Document Publication</string> </value> + </item> + <item> + <key> <string>actbox_url</string> </key> + <value> <string>%(content_url)s/Base_viewWorkflowActionDialog?workflow_action=cancel_action</string> </value> + </item> + <item> + <key> <string>after_script_name</string> </key> + <value> <string>cancel</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>The Cancel action makes a document invisible in default lists but still searchable with search tools.</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>cancel_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>Cancel Document Publication 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>Owner</string> + <string>Assignee</string> + <string>Assignor</string> + </tuple> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/delete.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/delete.xml new file mode 100644 index 0000000000..3b0e2241c2 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/delete.xml @@ -0,0 +1,58 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + </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>Delete a document in ERP5</string> </value> + </item> + <item> + <key> <string>guard</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>delete</string> </value> + </item> + <item> + <key> <string>new_state_id</string> </key> + <value> <string>deleted</string> </value> + </item> + <item> + <key> <string>script_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Delete Document</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_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/delete_action.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/delete_action.xml new file mode 100644 index 0000000000..de1ef7ee0a --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/delete_action.xml @@ -0,0 +1,80 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + </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>%(content_url)s/Base_viewWorkflowActionDialog?workflow_action=delete_action</string> </value> + </item> + <item> + <key> <string>after_script_name</string> </key> + <value> <string>delete</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>The Delete action removes a document from the system by preventing anyone from accessing it anymore.</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>delete_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>Delete Document 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>Owner</string> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/extract.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/extract.xml new file mode 100644 index 0000000000..2b50193617 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/extract.xml @@ -0,0 +1,92 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + </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>This automatic transition is called to redraft an initially embedded object which is moved to a module, for example after a Copy / Paste or Clone action.</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>extract</string> </value> + </item> + <item> + <key> <string>new_state_id</string> </key> + <value> <string>draft</string> </value> + </item> + <item> + <key> <string>script_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Extract</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.portal_membership.checkPermission(\'View\', here) and here.getParentValue().getId() != \'portal_contributions\' and here.getDefaultModuleId(here.getPortalType()) == here.getParentValue().getId()</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/hide.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/hide.xml new file mode 100644 index 0000000000..7b4a85622b --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/hide.xml @@ -0,0 +1,58 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + </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>Hides a document which was published or released by mistake by setting the validation_state to hidden.</string> </value> + </item> + <item> + <key> <string>guard</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>hide</string> </value> + </item> + <item> + <key> <string>new_state_id</string> </key> + <value> <string>hidden</string> </value> + </item> + <item> + <key> <string>script_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Hide Document</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_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/hide_action.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/hide_action.xml new file mode 100644 index 0000000000..6045fd6be3 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/hide_action.xml @@ -0,0 +1,78 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + </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>Hide Document</string> </value> + </item> + <item> + <key> <string>actbox_url</string> </key> + <value> <string>%(content_url)s/Base_viewWorkflowActionDialog?workflow_action=hide_action</string> </value> + </item> + <item> + <key> <string>after_script_name</string> </key> + <value> <string>hide</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>The Hide action hides a document which was previously published, released or shared and gives an opportunity to assigned knowledge contributor or manager to update it before publishing it again.</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>hide_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>Hide Document 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_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/publish.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/publish.xml new file mode 100644 index 0000000000..4dbb81708b --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/publish.xml @@ -0,0 +1,62 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>actbox_category</string> </key> + <value> <string>workflow</string> </value> + </item> + <item> + <key> <string>actbox_icon</string> </key> + <value> <string></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>archiveVersion</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>Publishes a document and triggers the archival of any public document of a previous version</string> </value> + </item> + <item> + <key> <string>guard</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>publish</string> </value> + </item> + <item> + <key> <string>new_state_id</string> </key> + <value> <string>published</string> </value> + </item> + <item> + <key> <string>script_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Publish Document</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_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/publish_action.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/publish_action.xml new file mode 100644 index 0000000000..852d5652aa --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/publish_action.xml @@ -0,0 +1,79 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>actbox_category</string> </key> + <value> <string>workflow</string> </value> + </item> + <item> + <key> <string>actbox_icon</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>actbox_name</string> </key> + <value> <string>Publish Document</string> </value> + </item> + <item> + <key> <string>actbox_url</string> </key> + <value> <string>%(content_url)s/Base_viewWorkflowActionDialog?workflow_action=publish_action</string> </value> + </item> + <item> + <key> <string>after_script_name</string> </key> + <value> <string>publish</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>The publish action make a document accessible to everyone including anonymous users and archives previously published document in the same language.</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>publish_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>checkValidity</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Publish Document 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> + <global name="Guard" module="Products.DCWorkflow.Guard"/> + </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_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/publish_alive.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/publish_alive.xml new file mode 100644 index 0000000000..13e36df5b9 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/publish_alive.xml @@ -0,0 +1,62 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>actbox_category</string> </key> + <value> <string>workflow</string> </value> + </item> + <item> + <key> <string>actbox_icon</string> </key> + <value> <string></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>archiveVersion</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>The publish_alive workflow method sets the validation state of the document to published_alive and archives any other published version (alive or not) of the same document in the same language.</string> </value> + </item> + <item> + <key> <string>guard</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>publish_alive</string> </value> + </item> + <item> + <key> <string>new_state_id</string> </key> + <value> <string>published_alive</string> </value> + </item> + <item> + <key> <string>script_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Publish Document Alive</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_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/publish_alive_action.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/publish_alive_action.xml new file mode 100644 index 0000000000..fc4ce1b56b --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/publish_alive_action.xml @@ -0,0 +1,79 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>actbox_category</string> </key> + <value> <string>workflow</string> </value> + </item> + <item> + <key> <string>actbox_icon</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>actbox_name</string> </key> + <value> <string>Publish Document Alive</string> </value> + </item> + <item> + <key> <string>actbox_url</string> </key> + <value> <string>%(content_url)s/Base_viewWorkflowActionDialog?workflow_action=publish_alive_action</string> </value> + </item> + <item> + <key> <string>after_script_name</string> </key> + <value> <string>publish_alive</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>The publish_alive workflow method sets the validation state of the document to published_alive and archives any other published version (alive or not) of the same document in the same language.</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>publish_alive_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>checkValidity</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Publish Document Alive 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> + <global name="Guard" module="Products.DCWorkflow.Guard"/> + </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_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/reject.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/reject.xml new file mode 100644 index 0000000000..50fb6a997b --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/reject.xml @@ -0,0 +1,58 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + </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>Rejects a document which was submitted by setting its validation state to draft.</string> </value> + </item> + <item> + <key> <string>guard</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>reject</string> </value> + </item> + <item> + <key> <string>new_state_id</string> </key> + <value> <string>draft</string> </value> + </item> + <item> + <key> <string>script_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Reject Document</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_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/reject_action.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/reject_action.xml new file mode 100644 index 0000000000..db01792b9c --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/reject_action.xml @@ -0,0 +1,78 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + </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>Reject Document</string> </value> + </item> + <item> + <key> <string>actbox_url</string> </key> + <value> <string>%(content_url)s/Base_viewWorkflowActionDialog?workflow_action=reject_action</string> </value> + </item> + <item> + <key> <string>after_script_name</string> </key> + <value> <string>reject</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>The Reject action is invoke to send a document back in draft state and give a chance to its author to improve it before submitting it again.</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>reject_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>Reject Document 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_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/release.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/release.xml new file mode 100644 index 0000000000..c32be40ba0 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/release.xml @@ -0,0 +1,62 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>actbox_category</string> </key> + <value> <string>workflow</string> </value> + </item> + <item> + <key> <string>actbox_icon</string> </key> + <value> <string></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>archiveVersion</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>Releases a document and triggers the archival of any released document of a previous version</string> </value> + </item> + <item> + <key> <string>guard</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>release</string> </value> + </item> + <item> + <key> <string>new_state_id</string> </key> + <value> <string>released</string> </value> + </item> + <item> + <key> <string>script_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Release Document</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_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/release_action.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/release_action.xml new file mode 100644 index 0000000000..bbbd426542 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/release_action.xml @@ -0,0 +1,79 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>actbox_category</string> </key> + <value> <string>workflow</string> </value> + </item> + <item> + <key> <string>actbox_icon</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>actbox_name</string> </key> + <value> <string>Release Document</string> </value> + </item> + <item> + <key> <string>actbox_url</string> </key> + <value> <string>%(content_url)s/Base_viewWorkflowActionDialog?workflow_action=release_action</string> </value> + </item> + <item> + <key> <string>after_script_name</string> </key> + <value> <string>release</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>The Release action grants access to a document to all Auditor (ex. employees of a company) based on classification policy security definition.</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>release_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>checkValidity</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Release Document 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> + <global name="Guard" module="Products.DCWorkflow.Guard"/> + </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_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/release_alive.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/release_alive.xml new file mode 100644 index 0000000000..3103a89ea2 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/release_alive.xml @@ -0,0 +1,62 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>actbox_category</string> </key> + <value> <string>workflow</string> </value> + </item> + <item> + <key> <string>actbox_icon</string> </key> + <value> <string></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>archiveVersion</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>The release_alive workflow method sets the document state to released_alive and archives all previously released documents with same reference in the same language.</string> </value> + </item> + <item> + <key> <string>guard</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>release_alive</string> </value> + </item> + <item> + <key> <string>new_state_id</string> </key> + <value> <string>released_alive</string> </value> + </item> + <item> + <key> <string>script_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Release Document Alive</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_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/release_alive_action.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/release_alive_action.xml new file mode 100644 index 0000000000..d1d62df090 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/release_alive_action.xml @@ -0,0 +1,79 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>actbox_category</string> </key> + <value> <string>workflow</string> </value> + </item> + <item> + <key> <string>actbox_icon</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>actbox_name</string> </key> + <value> <string>Release Document Alive</string> </value> + </item> + <item> + <key> <string>actbox_url</string> </key> + <value> <string>%(content_url)s/Base_viewWorkflowActionDialog?workflow_action=release_alive_action</string> </value> + </item> + <item> + <key> <string>after_script_name</string> </key> + <value> <string>release_alive</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>The Release Alive action grants read access to a document to all Auditor roles (ex. empoyees of a company) and grants modification right to all assigned knowledge contributors defined by document classification policy.</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>release_alive_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>checkValidity</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Release Document Alive 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> + <global name="Guard" module="Products.DCWorkflow.Guard"/> + </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_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/request.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/request.xml new file mode 100644 index 0000000000..f2a0292fd6 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/request.xml @@ -0,0 +1,58 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + </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>The request workflow method sets the document validation state to requested.</string> </value> + </item> + <item> + <key> <string>guard</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>request</string> </value> + </item> + <item> + <key> <string>new_state_id</string> </key> + <value> <string>requested</string> </value> + </item> + <item> + <key> <string>script_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Request Translation</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_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/request_action.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/request_action.xml new file mode 100644 index 0000000000..9a19ccc9d6 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/request_action.xml @@ -0,0 +1,102 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + </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>Request Translation</string> </value> + </item> + <item> + <key> <string>actbox_url</string> </key> + <value> <string>%(content_url)s/Base_viewWorkflowActionDialog?workflow_action=request_action</string> </value> + </item> + <item> + <key> <string>after_script_name</string> </key> + <value> <string>request</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>The Request Translation action is invoked to notify that a draft document needs to be translated. Usually, the draft document is a clone of the document in the original language.</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>request_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>Request Translation 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>expr</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + <item> + <key> <string>roles</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Owner</string> + </tuple> + </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:not here.Document_policyApplies(\'*/restricted\')</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/share.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/share.xml new file mode 100644 index 0000000000..b170ea9617 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/share.xml @@ -0,0 +1,62 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>actbox_category</string> </key> + <value> <string>workflow</string> </value> + </item> + <item> + <key> <string>actbox_icon</string> </key> + <value> <string></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>archiveVersion</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>The Share workflow method sets the document validation state to shared and archive any previous shared document with same reference and same language.</string> </value> + </item> + <item> + <key> <string>guard</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>share</string> </value> + </item> + <item> + <key> <string>new_state_id</string> </key> + <value> <string>shared</string> </value> + </item> + <item> + <key> <string>script_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Share Document</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_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/share_action.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/share_action.xml new file mode 100644 index 0000000000..8f4a47a1d8 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/share_action.xml @@ -0,0 +1,79 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>actbox_category</string> </key> + <value> <string>workflow</string> </value> + </item> + <item> + <key> <string>actbox_icon</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>actbox_name</string> </key> + <value> <string>Share Document</string> </value> + </item> + <item> + <key> <string>actbox_url</string> </key> + <value> <string>%(content_url)s/Base_viewWorkflowActionDialog?workflow_action=share_action</string> </value> + </item> + <item> + <key> <string>after_script_name</string> </key> + <value> <string>share</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>The Share action grants read access to all Associate (ex. team members, project members) on the document.</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>share_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>checkValidity</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Share Document 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> + <global name="Guard" module="Products.DCWorkflow.Guard"/> + </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_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/share_alive.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/share_alive.xml new file mode 100644 index 0000000000..4324419864 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/share_alive.xml @@ -0,0 +1,62 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>actbox_category</string> </key> + <value> <string>workflow</string> </value> + </item> + <item> + <key> <string>actbox_icon</string> </key> + <value> <string></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>archiveVersion</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>The Share Alive workflow method sets the document validation state to shared_alive and archives any previously shared document with same version and same language.</string> </value> + </item> + <item> + <key> <string>guard</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>share_alive</string> </value> + </item> + <item> + <key> <string>new_state_id</string> </key> + <value> <string>shared_alive</string> </value> + </item> + <item> + <key> <string>script_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Share Document Alive</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_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/share_alive_action.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/share_alive_action.xml new file mode 100644 index 0000000000..92efaf00ee --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/share_alive_action.xml @@ -0,0 +1,79 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>actbox_category</string> </key> + <value> <string>workflow</string> </value> + </item> + <item> + <key> <string>actbox_icon</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>actbox_name</string> </key> + <value> <string>Share Document Alive</string> </value> + </item> + <item> + <key> <string>actbox_url</string> </key> + <value> <string>%(content_url)s/Base_viewWorkflowActionDialog?workflow_action=share_alive_action</string> </value> + </item> + <item> + <key> <string>after_script_name</string> </key> + <value> <string>share_alive</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>The Share Alive action grants read access on the document to all Associate roles (ex. team members, project members) as well as write access to all knowledge contributors defined by the classification policy.</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>share_alive_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>checkValidity</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Share Document Alive 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> + <global name="Guard" module="Products.DCWorkflow.Guard"/> + </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_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/split.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/split.xml new file mode 100644 index 0000000000..66833e9271 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/split.xml @@ -0,0 +1,58 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + </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>Splits a document in multiple subdocuments to accelerate translation. Sets validation_state to split.</string> </value> + </item> + <item> + <key> <string>guard</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>split</string> </value> + </item> + <item> + <key> <string>new_state_id</string> </key> + <value> <string>split</string> </value> + </item> + <item> + <key> <string>script_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Split Translation</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_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/split_action.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/split_action.xml new file mode 100644 index 0000000000..f23bfb990a --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/split_action.xml @@ -0,0 +1,78 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + </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>Split Translation</string> </value> + </item> + <item> + <key> <string>actbox_url</string> </key> + <value> <string>%(content_url)s/Base_viewWorkflowActionDialog?workflow_action=split_action</string> </value> + </item> + <item> + <key> <string>after_script_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>Splits a document in multiple subdocuments to accelerate translation. Sets validation_state to split.</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>split_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>split</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Split Translation 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_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/submit.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/submit.xml new file mode 100644 index 0000000000..77f1fc493a --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/submit.xml @@ -0,0 +1,58 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + </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>Submits a document for review by setting validation_state to submitted.</string> </value> + </item> + <item> + <key> <string>guard</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>submit</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>Submit Document for Review</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_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/submit_action.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/submit_action.xml new file mode 100644 index 0000000000..38b25bc588 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/submit_action.xml @@ -0,0 +1,101 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + </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>Submit Document for Review</string> </value> + </item> + <item> + <key> <string>actbox_url</string> </key> + <value> <string>%(content_url)s/Base_viewWorkflowActionDialog?workflow_action=submit_action</string> </value> + </item> + <item> + <key> <string>after_script_name</string> </key> + <value> <string>submit</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>Submits a document for review by setting validation_state to submitted.</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>submit_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>checkValidity</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Submit Document for Review 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>expr</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + <item> + <key> <string>roles</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Owner</string> + </tuple> + </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:not here.Document_policyApplies(\'*/restricted\')</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/translate.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/translate.xml new file mode 100644 index 0000000000..1b1cc86375 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/translate.xml @@ -0,0 +1,58 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + </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>The translate workflow method sets the validation_state to translated.</string> </value> + </item> + <item> + <key> <string>guard</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>translate</string> </value> + </item> + <item> + <key> <string>new_state_id</string> </key> + <value> <string>translated</string> </value> + </item> + <item> + <key> <string>script_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Finish Translation</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_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/translate_action.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/translate_action.xml new file mode 100644 index 0000000000..a37eae47ad --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/transitions/translate_action.xml @@ -0,0 +1,79 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/> + </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>Finish Translation</string> </value> + </item> + <item> + <key> <string>actbox_url</string> </key> + <value> <string>%(content_url)s/Base_viewWorkflowActionDialog?workflow_action=translate_action</string> </value> + </item> + <item> + <key> <string>after_script_name</string> </key> + <value> <string>translate</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>Notify that the document was translated or collated. Translated document must be revised before submission for publication.</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>translate_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>Finish Translation 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>Assignee</string> + <string>Assignor</string> + </tuple> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/variables.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/variables.xml new file mode 100644 index 0000000000..bb12bef805 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/variables.xml @@ -0,0 +1,28 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Variables" module="Products.DCWorkflow.Variables"/> + </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>variables</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/variables/action.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/variables/action.xml new file mode 100644 index 0000000000..03e9664295 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/variables/action.xml @@ -0,0 +1,64 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="VariableDefinition" module="Products.DCWorkflow.Variables"/> + </pickle> + <pickle> + <dictionary> + <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>The last transition</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>action</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> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>transition/getId|nothing</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/variables/actor.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/variables/actor.xml new file mode 100644 index 0000000000..a1487eb1f4 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/variables/actor.xml @@ -0,0 +1,64 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="VariableDefinition" module="Products.DCWorkflow.Variables"/> + </pickle> + <pickle> + <dictionary> + <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>The name of the user who performed the last transition</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>actor</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> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>user/getUserName</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/variables/comment.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/variables/comment.xml new file mode 100644 index 0000000000..f9ffdeace1 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/variables/comment.xml @@ -0,0 +1,64 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="VariableDefinition" module="Products.DCWorkflow.Variables"/> + </pickle> + <pickle> + <dictionary> + <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>Comments about the last transition</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>comment</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> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>python:state_change.kwargs.get(\'comment\', \'\')</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/variables/error_message.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/variables/error_message.xml new file mode 100644 index 0000000000..535863de2a --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/variables/error_message.xml @@ -0,0 +1,48 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="VariableDefinition" module="Products.DCWorkflow.Variables"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>default_expr</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>default_value</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>Error message if validation failed</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>error_message</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> +</ZopeData> diff --git a/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/variables/history.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/variables/history.xml new file mode 100644 index 0000000000..e97a0a7c56 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/variables/history.xml @@ -0,0 +1,64 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="VariableDefinition" module="Products.DCWorkflow.Variables"/> + </pickle> + <pickle> + <dictionary> + <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>Provides access to workflow history</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>0</int> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>history</string> </value> + </item> + <item> + <key> <string>info_guard</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>update_always</string> </key> + <value> <int>0</int> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>state_change/getHistory</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/variables/time.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/variables/time.xml new file mode 100644 index 0000000000..0e45efc019 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/variables/time.xml @@ -0,0 +1,64 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="VariableDefinition" module="Products.DCWorkflow.Variables"/> + </pickle> + <pickle> + <dictionary> + <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>Time of the last transition</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>time</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> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>state_change/getDateTime</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/worklists.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/worklists.xml new file mode 100644 index 0000000000..c7242ee114 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/worklists.xml @@ -0,0 +1,28 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Worklists" module="Products.DCWorkflow.Worklists"/> + </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>worklists</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/worklists/assigned_to_translate.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/worklists/assigned_to_translate.xml new file mode 100644 index 0000000000..1bfafdf60b --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/worklists/assigned_to_translate.xml @@ -0,0 +1,95 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="WorklistDefinition" module="Products.DCWorkflow.Worklists"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>actbox_category</string> </key> + <value> <string>global</string> </value> + </item> + <item> + <key> <string>actbox_name</string> </key> + <value> <string>Assigned Translations (%(count)s)</string> </value> + </item> + <item> + <key> <string>actbox_url</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +ERP5Site_viewDocumentList?validation_state=assigned&local_roles=%(local_roles)s&portal_type=%(portal_type)s&reset=1 + +]]></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>Assigned translations</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>assigned_to_translate</string> </value> + </item> + <item> + <key> <string>var_matches</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </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>Assignee</string> + </tuple> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <tuple> + <global name="PersistentMapping" module="Persistence.mapping"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary> + <item> + <key> <string>validation_state</string> </key> + <value> + <tuple> + <string>assigned</string> + </tuple> + </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/worklists/draft_to_submit.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/worklists/draft_to_submit.xml new file mode 100644 index 0000000000..c41e77ca56 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/worklists/draft_to_submit.xml @@ -0,0 +1,95 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="WorklistDefinition" module="Products.DCWorkflow.Worklists"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>actbox_category</string> </key> + <value> <string>global</string> </value> + </item> + <item> + <key> <string>actbox_name</string> </key> + <value> <string>Documents to Submit (%(count)s)</string> </value> + </item> + <item> + <key> <string>actbox_url</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +ERP5Site_viewDocumentList?validation_state=draft&local_roles=%(local_roles)s&portal_type=%(portal_type)s&reset=1 + +]]></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>Documents to Submit</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>draft_to_submit</string> </value> + </item> + <item> + <key> <string>var_matches</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </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>Owner</string> + </tuple> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <tuple> + <global name="PersistentMapping" module="Persistence.mapping"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary> + <item> + <key> <string>validation_state</string> </key> + <value> + <tuple> + <string>draft</string> + </tuple> + </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/worklists/requested_to_assign.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/worklists/requested_to_assign.xml new file mode 100644 index 0000000000..1c09d01195 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/worklists/requested_to_assign.xml @@ -0,0 +1,95 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="WorklistDefinition" module="Products.DCWorkflow.Worklists"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>actbox_category</string> </key> + <value> <string>global</string> </value> + </item> + <item> + <key> <string>actbox_name</string> </key> + <value> <string>Translations to Assign (%(count)s)</string> </value> + </item> + <item> + <key> <string>actbox_url</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +ERP5Site_viewDocumentList?validation_state=requested&local_roles=%(local_roles)s&portal_type=%(portal_type)s&reset=1 + +]]></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>Translations to assign</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>requested_to_assign</string> </value> + </item> + <item> + <key> <string>var_matches</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </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> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <tuple> + <global name="PersistentMapping" module="Persistence.mapping"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary> + <item> + <key> <string>validation_state</string> </key> + <value> + <tuple> + <string>requested</string> + </tuple> + </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/worklists/submitted_for_review.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/worklists/submitted_for_review.xml new file mode 100644 index 0000000000..58ce403c34 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/worklists/submitted_for_review.xml @@ -0,0 +1,95 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="WorklistDefinition" module="Products.DCWorkflow.Worklists"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>actbox_category</string> </key> + <value> <string>global</string> </value> + </item> + <item> + <key> <string>actbox_name</string> </key> + <value> <string>Documents to Review (%(count)s)</string> </value> + </item> + <item> + <key> <string>actbox_url</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +ERP5Site_viewDocumentList?validation_state=submitted&local_roles=%(local_roles)s&portal_type=%(portal_type)s&reset=1 + +]]></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>Documents submitted for review</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>submitted_for_review</string> </value> + </item> + <item> + <key> <string>var_matches</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </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> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <tuple> + <global name="PersistentMapping" module="Persistence.mapping"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary> + <item> + <key> <string>validation_state</string> </key> + <value> + <tuple> + <string>submitted</string> + </tuple> + </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/worklists/translated_to_accept.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/worklists/translated_to_accept.xml new file mode 100644 index 0000000000..6e39c349f8 --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/worklists/translated_to_accept.xml @@ -0,0 +1,95 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="WorklistDefinition" module="Products.DCWorkflow.Worklists"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>actbox_category</string> </key> + <value> <string>global</string> </value> + </item> + <item> + <key> <string>actbox_name</string> </key> + <value> <string>Translations to Revise (%(count)s)</string> </value> + </item> + <item> + <key> <string>actbox_url</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +ERP5Site_viewDocumentList?validation_state=translated&local_roles=%(local_roles)s&portal_type=%(portal_type)s&reset=1 + +]]></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>Translations to revise</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>translated_to_accept</string> </value> + </item> + <item> + <key> <string>var_matches</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </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> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <tuple> + <global name="PersistentMapping" module="Persistence.mapping"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary> + <item> + <key> <string>validation_state</string> </key> + <value> + <tuple> + <string>translated</string> + </tuple> + </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/worklists/translation_to_collate.xml b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/worklists/translation_to_collate.xml new file mode 100644 index 0000000000..9bc000475a --- /dev/null +++ b/bt5/erp5_web_ung_core/WorkflowTemplateItem/portal_workflow/ung_document_publication_workflow/worklists/translation_to_collate.xml @@ -0,0 +1,96 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="WorklistDefinition" module="Products.DCWorkflow.Worklists"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>actbox_category</string> </key> + <value> <string>global</string> </value> + </item> + <item> + <key> <string>actbox_name</string> </key> + <value> <string>Translations to Collate (%(count)s)</string> </value> + </item> + <item> + <key> <string>actbox_url</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +ERP5Site_viewDocumentList?validation_state=split&local_roles=%(local_roles)s&portal_type=%(portal_type)s&reset=1 + +]]></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>Translation to collate</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>translation_to_collate</string> </value> + </item> + <item> + <key> <string>var_matches</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </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>Assignee</string> + <string>Assignor</string> + </tuple> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <tuple> + <global name="PersistentMapping" module="Persistence.mapping"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary> + <item> + <key> <string>validation_state</string> </key> + <value> + <tuple> + <string>split</string> + </tuple> + </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_core/bt/revision b/bt5/erp5_web_ung_core/bt/revision index f70d7bba4a..ac4213d6e9 100644 --- a/bt5/erp5_web_ung_core/bt/revision +++ b/bt5/erp5_web_ung_core/bt/revision @@ -1 +1 @@ -42 \ No newline at end of file +43 \ No newline at end of file diff --git a/bt5/erp5_web_ung_core/bt/template_portal_type_workflow_chain_list b/bt5/erp5_web_ung_core/bt/template_portal_type_workflow_chain_list index 546ff0ac92..67ae1ffae6 100644 --- a/bt5/erp5_web_ung_core/bt/template_portal_type_workflow_chain_list +++ b/bt5/erp5_web_ung_core/bt/template_portal_type_workflow_chain_list @@ -1,10 +1,15 @@ Web Illustration | document_conversion_interaction_workflow -Web Illustration | document_publication_workflow Web Illustration | document_security_interaction_workflow Web Illustration | edit_workflow Web Illustration | processing_status_workflow +Web Illustration | ung_document_publication_workflow +Web Page | document_conversion_interaction_workflow +Web Page | document_security_interaction_workflow +Web Page | edit_workflow +Web Page | processing_status_workflow +Web Page | ung_document_publication_workflow Web Table | document_conversion_interaction_workflow -Web Table | document_publication_workflow Web Table | document_security_interaction_workflow Web Table | edit_workflow -Web Table | processing_status_workflow \ No newline at end of file +Web Table | processing_status_workflow +Web Table | ung_document_publication_workflow \ No newline at end of file diff --git a/bt5/erp5_web_ung_core/bt/template_workflow_id_list b/bt5/erp5_web_ung_core/bt/template_workflow_id_list new file mode 100644 index 0000000000..ac492ca2fb --- /dev/null +++ b/bt5/erp5_web_ung_core/bt/template_workflow_id_list @@ -0,0 +1 @@ +ung_document_publication_workflow \ No newline at end of file -- 2.30.9