Commit c1cc36af authored by Brian Long's avatar Brian Long
Browse files

terminate process instance when starter subscription ends

parent 0d9b40f0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);