10-22-2013 09:19 AM
RuntimeService runtimeSvc = activitiRule.getRuntimeService();
TaskService taskSvc = activitiRule.getTaskService();
HistoryService historySvc = activitiRule.getHistoryService();
Map<String, String> vars = new HashMap<String, String>();
vars.put("myVar", "Test");
ProcessInstance processInstance = runtimeSvc.startProcessInstanceByKey("myprocess", vars)
vars.put("myVar", "new value");
taskSvc.complete(taskSvc.createTaskQuery().singleResult().getId(), vars);
Then i can retrieve all variable changes by
historySvc.createHistoricDetailQuery().variableUpdates().processInstanceId(processInstance.getProcessInstanceId()).list()
10-23-2013 02:59 AM
10-23-2013 03:44 AM
10-24-2013 05:56 PM
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.