terminate process instance when starter subscription ends

This commit is contained in:
2025-03-11 12:21:47 -04:00
parent 0d9b40f020
commit c1cc36afc2

View File

@@ -121,7 +121,7 @@ public class MqSubscribeDelegate extends AbstractMqDelegate {
}
) == null) {
this.logger.debug("Gracefully stopped looking for MQ messages: {} => {}", mqExecution.getConnectorIdFromModel(), mqExecution.getQueueNameFromModel());
throw new BpmnError("cancelled", "MQ subscription cancelled gracefully");
this.services.getRuntimeService().deleteProcessInstance(execution.getProcessInstanceId(), "MQ subscription cancelled gracefully");
}
} catch (TimeoutException te) {
this.logger.error("MQ connection or communication timed out: " + te.getMessage(), te);