mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged HEAD-BUG-FIX (4.3/Cloud) to HEAD (4.3/Cloud)
58206: Merged V4.2-BUG-FIX (4.2.1) to HEAD-BUG-FIX (Cloud/4.3) 58147: Merged V4.1-BUG-FIX (4.1.8) to V4.2-BUG-FIX (4.2.1) 58037: MNT-9932: Merged DEV to V4.1-BUG-FIX (4.1.8) 57933: MNT-9932: Error Message while accessing cancelled workflow- task-edit link from mail notification - Add useful error messages for case when edit page is opened for cancelled task git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@61945 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -107,7 +107,13 @@ public class TaskFormProcessor extends AbstractWorkflowFormProcessor<WorkflowTas
|
||||
@Override
|
||||
protected WorkflowTask getTypedItemForDecodedId(String itemId)
|
||||
{
|
||||
return workflowService.getTaskById(itemId);
|
||||
WorkflowTask task = workflowService.getTaskById(itemId);
|
||||
if (task == null)
|
||||
{
|
||||
String msg = "Workflow task does not exist: " + itemId;
|
||||
throw new IllegalArgumentException(msg);
|
||||
}
|
||||
return task;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user