04-04-2016 08:18 AM
ProcessInstance instance = engine.getRuntimeService().startProcessinstanceByKey("myprocess", "A1");
//engine.getRuntimeService().createExecutionQuery().processInstanceId(instance.getId()).list().length == 1 //(perfect)
engine.getRuntimeService().createExecutionquery().businesskey("A1").singleResult;
Execution execution = engine.getRuntimeService().createExecutionQuery().processInstanceId(instance.getId()).messageEventSubscriptionName("msg_cancel");
Map<String,Object> params = new HashMap<>();
engine.getRuntimeService().messageEventReceived("msg_cancel", execution.getId(), params);
//engine.getRuntimeService().createExecutionQuery().processInstanceId(instance.getId()).list().length == 0// (perfect)
ProcessInstance instance = engine.getRuntimeService().startProcessinstanceByKey("myprocess", "A1");
ProcessInstance instance = engine.getRuntimeService().startProcessinstanceByKey("myprocess", "A2");
04-04-2016 10:42 AM
04-07-2016 04:28 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.