mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fixed failing SiteServiceTest.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30025 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -2240,6 +2240,10 @@ public class JBPMEngine extends AlfrescoBpmEngine implements WorkflowEngine
|
|||||||
// retrieve process instance
|
// retrieve process instance
|
||||||
GraphSession graphSession = context.getGraphSession();
|
GraphSession graphSession = context.getGraphSession();
|
||||||
ProcessInstance processInstance = getProcessInstanceIfExists(graphSession, workflowInstanceId);
|
ProcessInstance processInstance = getProcessInstanceIfExists(graphSession, workflowInstanceId);
|
||||||
|
if(processInstance == null)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
Task startTask = processInstance.getProcessDefinition().getTaskMgmtDefinition().getStartTask();
|
Task startTask = processInstance.getProcessDefinition().getTaskMgmtDefinition().getStartTask();
|
||||||
|
|
||||||
// retrieve task
|
// retrieve task
|
||||||
|
Reference in New Issue
Block a user