From 3294fe7cd4ffb93938c79e97e269c2c1fc3831e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Tue, 19 Jul 2016 02:54:43 +0000 Subject: [PATCH] system_event: Fix worklists definition * Worklist must include (%(count)s) to include the number of document in that worklist * The role of users who have to take care of the documents must be defined on the worklist --- .../authentication_events_to_acknowledge.xml | 2 +- .../system_events_to_acknowledge.xml | 25 ++++++++++++++++--- 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/bt5/erp5_system_event/WorkflowTemplateItem/portal_workflow/system_event_workflow/worklists/authentication_events_to_acknowledge.xml b/bt5/erp5_system_event/WorkflowTemplateItem/portal_workflow/system_event_workflow/worklists/authentication_events_to_acknowledge.xml index 85e0dc2caf..1d3dc81860 100644 --- a/bt5/erp5_system_event/WorkflowTemplateItem/portal_workflow/system_event_workflow/worklists/authentication_events_to_acknowledge.xml +++ b/bt5/erp5_system_event/WorkflowTemplateItem/portal_workflow/system_event_workflow/worklists/authentication_events_to_acknowledge.xml @@ -16,7 +16,7 @@ </item> <item> <key> <string>actbox_name</string> </key> - <value> <string>User logins to Unblock</string> </value> + <value> <string>User logins to Unblock (%(count)s)</string> </value> </item> <item> <key> <string>actbox_url</string> </key> diff --git a/bt5/erp5_system_event/WorkflowTemplateItem/portal_workflow/system_event_workflow/worklists/system_events_to_acknowledge.xml b/bt5/erp5_system_event/WorkflowTemplateItem/portal_workflow/system_event_workflow/worklists/system_events_to_acknowledge.xml index b351efb52f..a3e0ccc3a2 100644 --- a/bt5/erp5_system_event/WorkflowTemplateItem/portal_workflow/system_event_workflow/worklists/system_events_to_acknowledge.xml +++ b/bt5/erp5_system_event/WorkflowTemplateItem/portal_workflow/system_event_workflow/worklists/system_events_to_acknowledge.xml @@ -16,13 +16,13 @@ </item> <item> <key> <string>actbox_name</string> </key> - <value> <string>System Events to Acknowledge</string> </value> + <value> <string>System Events to Acknowledge (%(count)s)</string> </value> </item> <item> <key> <string>actbox_url</string> </key> <value> <string encoding="cdata"><![CDATA[ -system_event_module/?reset=1&validation_state=confirmed +system_event_module/?reset=1&validation_state=confirmed&local_roles=%(local_roles)s ]]></string> </value> </item> @@ -33,7 +33,7 @@ system_event_module/?reset=1&validation_state=confirmed <item> <key> <string>guard</string> </key> <value> - <none/> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> </value> </item> <item> @@ -43,13 +43,30 @@ system_event_module/?reset=1&validation_state=confirmed <item> <key> <string>var_matches</string> </key> <value> - <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> </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> + <record id="3" aka="AAAAAAAAAAM="> <pickle> <global name="PersistentMapping" module="Persistence.mapping"/> </pickle> -- 2.30.9