mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Expose a workflow instance's global ID through a new workflow process variable called 'workflowinstanceid'
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10477 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -693,6 +693,7 @@ public class JBPMEngine extends BPMEngine
|
|||||||
processContext.setVariable("initiatorhome", new JBPMNode(initiatorHome, serviceRegistry));
|
processContext.setVariable("initiatorhome", new JBPMNode(initiatorHome, serviceRegistry));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
processContext.setVariable("workflowinstanceid", createGlobalId(new Long(processInstance.getId()).toString()));
|
||||||
|
|
||||||
// create the start task if one exists
|
// create the start task if one exists
|
||||||
Token token = processInstance.getRootToken();
|
Token token = processInstance.getRootToken();
|
||||||
|
Reference in New Issue
Block a user