AnsweredAssumed Answered

How to get a particular ProcessIntance from processEngine

Question asked by rock_star on Jan 8, 2011
Latest reply on Jan 10, 2011 by rock_star
Hi Guys,

I am trying to get the particulat execution of the processEngine. This was achiveable as


Execution execution = processEngine.getRuntimeService().findExecutionById(executionId);

on 5.0-Beta but this seems to be not anymore in 5.1 release.

Can someone please tell me how do I acheive the same in 5.1 release? I have gone through the Javadoc of 5.1 lot of times now but does not seem to be any way there.

Please anyone reply on this as I am stuck for long time now.

Also, I am starting the processIntance as


processEngine.getRepositoryService().createDeployment().addClasspathResource("processes/si_gateway_example.bpmn20.xml").deploy();
      Map<String, Object> vars = new HashMap<String, Object>();
      vars.put("abc", 232);
      processEngine.getRuntimeService().startProcessInstanceByKey("testProcess", vars);

Outcomes