Am creating a test process flow where in I place a intermediate signal catch event and then a user task and using a springboot application am trying to send a signal event back to the process so that once the signal is caught the user task is created, but the logic for signal send in java works correctly and the executions is picked out correctly but the process flow does not move forward. Any reasons, the signal subscription is on the process instance level and created on the process and inherited by the signal catch event.
sample Springboot rest controller code -
@PostMapping(“/signal/{piid}/{signalCode}”)
public void sendSignal(@PathVariable String piid,@PathVariable String signalCode){
Execution execution = runtimeService.createExecutionQuery().processInstanceId(piid).signalEventSubscriptionName(signalCode).singleResult();
runtimeService.signalEventReceived(signalCode,execution.getId());
}
thanks,
Vivek