05-20-2015 04:55 AM
@Override
public void onEvent(final ActivitiEvent event) {
final ActivitiActivityEvent eventImpl = (ActivitiActivityEvent) event;
if ("serviceTask".equals(eventImpl.getActivityType())) {
final ProcessInstanceQuery processInstanceQuery = event.getEngineServices().getRuntimeService()
.createProcessInstanceQuery().processInstanceId(event.getProcessInstanceId())
.includeProcessVariables();
final ProcessInstance processInstance = processInstanceQuery.singleResult();
if (processInstance == null) {
this.log.warning("Unable to retrieve the process instance for which a service task starts.");
} else {
final Map<String, Object> processVariables = processInstance.getProcessVariables();
…
}
}
}
05-21-2015 03:51 AM
05-26-2015 10:19 AM
06-02-2015 03:02 PM
06-08-2015 06:09 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.