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:
Glen Johnson
2008-08-21 16:06:56 +00:00
parent df7944e4b5
commit be93fb9ca5

View File

@@ -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();