From ff912e606b3031f96e0026c067cbaf6b0df7ae2b Mon Sep 17 00:00:00 2001 From: Brian Remmington Date: Wed, 7 Dec 2011 15:46:58 +0000 Subject: [PATCH] Fixes ALF-10846: A system error happened during the operation: Error while evaluating expression. - A simple fix whereby the task is routed to admin if the initiator of the process no longer exists. Since the affected tasks are simply a courtesy to the initiator to inform them that the work was done, it seems churlish to prevent the assignee from ending the task if the initiator has been removed from the system. Other, more complex, alternatives were considered including adding a gate to route the process directly to "end" if the initiator no longer existed, but it seemed overkill, really. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32605 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- config/alfresco/workflow/adhoc.bpmn20.xml | 2 +- config/alfresco/workflow/invitation-nominated.bpmn20.xml | 4 ++-- config/alfresco/workflow/parallel-review-group.bpmn20.xml | 4 ++-- config/alfresco/workflow/parallel-review.bpmn20.xml | 4 ++-- config/alfresco/workflow/review-pooled.bpmn20.xml | 4 ++-- config/alfresco/workflow/review.bpmn20.xml | 4 ++-- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/config/alfresco/workflow/adhoc.bpmn20.xml b/config/alfresco/workflow/adhoc.bpmn20.xml index 95c7169308..3463b52825 100644 --- a/config/alfresco/workflow/adhoc.bpmn20.xml +++ b/config/alfresco/workflow/adhoc.bpmn20.xml @@ -64,7 +64,7 @@ - ${initiator.properties.userName} + ${initiator.exists() ? initiator.properties.userName : 'admin'} diff --git a/config/alfresco/workflow/invitation-nominated.bpmn20.xml b/config/alfresco/workflow/invitation-nominated.bpmn20.xml index 523bc2ecfc..239a411f20 100644 --- a/config/alfresco/workflow/invitation-nominated.bpmn20.xml +++ b/config/alfresco/workflow/invitation-nominated.bpmn20.xml @@ -79,7 +79,7 @@ - ${initiator.properties.userName} + ${initiator.exists() ? initiator.properties.userName : 'admin'} @@ -99,7 +99,7 @@ - ${initiator.properties.userName} + ${initiator.exists() ? initiator.properties.userName : 'admin'} diff --git a/config/alfresco/workflow/parallel-review-group.bpmn20.xml b/config/alfresco/workflow/parallel-review-group.bpmn20.xml index 1a055da53d..fd459665d5 100644 --- a/config/alfresco/workflow/parallel-review-group.bpmn20.xml +++ b/config/alfresco/workflow/parallel-review-group.bpmn20.xml @@ -124,7 +124,7 @@ - ${initiator.properties.userName} + ${initiator.exists() ? initiator.properties.userName : 'admin'} @@ -152,7 +152,7 @@ - ${initiator.properties.userName} + ${initiator.exists() ? initiator.properties.userName : 'admin'} diff --git a/config/alfresco/workflow/parallel-review.bpmn20.xml b/config/alfresco/workflow/parallel-review.bpmn20.xml index c0a181ab5d..546b1a706f 100644 --- a/config/alfresco/workflow/parallel-review.bpmn20.xml +++ b/config/alfresco/workflow/parallel-review.bpmn20.xml @@ -106,7 +106,7 @@ - ${initiator.properties.userName} + ${initiator.exists() ? initiator.properties.userName : 'admin'} @@ -134,7 +134,7 @@ - ${initiator.properties.userName} + ${initiator.exists() ? initiator.properties.userName : 'admin'} diff --git a/config/alfresco/workflow/review-pooled.bpmn20.xml b/config/alfresco/workflow/review-pooled.bpmn20.xml index 736e347fc1..1cd89036c8 100644 --- a/config/alfresco/workflow/review-pooled.bpmn20.xml +++ b/config/alfresco/workflow/review-pooled.bpmn20.xml @@ -80,7 +80,7 @@ - ${initiator.properties.userName} + ${initiator.exists() ? initiator.properties.userName : 'admin'} @@ -109,7 +109,7 @@ - ${initiator.properties.userName} + ${initiator.exists() ? initiator.properties.userName : 'admin'} diff --git a/config/alfresco/workflow/review.bpmn20.xml b/config/alfresco/workflow/review.bpmn20.xml index 279171fce8..0263c5dfb9 100644 --- a/config/alfresco/workflow/review.bpmn20.xml +++ b/config/alfresco/workflow/review.bpmn20.xml @@ -72,7 +72,7 @@ - ${initiator.properties.userName} + ${initiator.exists() ? initiator.properties.userName : 'admin'} @@ -94,7 +94,7 @@ - ${initiator.properties.userName} + ${initiator.exists() ? initiator.properties.userName : 'admin'}