Hi all,
how can i access context variables in java task in process. i tried using exectuion service get/set variables but that too need execution id. i am unable to get where i acn set the execution id . is it while starting process by executionService.startprocessinstancebykey() call or any other way. please help
Thank you.
Chakradhar,
This should help you.
ProcessInstance processInstance = executionService.startProcessInstanceByKey("blah");
String processInstID = processInstance.getId();
By using this id you can get the variables MAP.
regds.