05-20-2011 08:58 AM
runtimeService.getVariables(processInstance.getId());
, but only got the variables in their initial state (e.g. I've passed an empty array in the process and filled it inside my Script tasks, but get an empty array again as a result from calling getVariables(instanceId)).historyService.createHistoricDetailQuery().variableUpdates().processInstanceId(processInstance.getId()).orderByTime().desc().list();
which, in turn, returned me variables as they were passed in the process.05-20-2011 09:42 AM
05-20-2011 10:03 AM
//…putting together initialVariables map
ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("p_verify", initialVariables);
//the process has been started
//this line gets executed when process reached User Task and, therefore, in wait state.
Map<String, Object> afterVariables = runtimeService.getVariables(processInstance.getId());
errorMsgs.add(stdMsgs.get(13011L));
And I want to check that errorMsgs afterwards in JUnit.
05-20-2011 10:07 AM
05-20-2011 02:08 PM
05-20-2011 04:19 PM
errorMsgs = errorMsgs
05-20-2011 06:17 PM
errorMsgs = errorMsgs
helloBean.doSomethingWithError(errorMsgs)
errorMsgs = errorMsgs
05-23-2011 06:10 AM
05-23-2011 07:42 AM
05-16-2013 10:20 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.