As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<receiveTask id="receivetask1" name="Receive Task"></receiveTask>
log.info("Starting process…"); ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("myProcess"); Execution execution = runtimeService.createExecutionQuery() .processDefinitionKey("myProcess") .processInstanceId(processInstance.getId()) .activityId("receivetask1") .singleResult(); log.info("Execution id : " + execution.getId() + " - " + execution.getParentId() + " - " + execution.getActivityId()); runtimeService.trigger(execution.getId()); log.info("…Done.");