public void eventCancelledByEventGateway ( DelegateExecution execution ) { Context . getCommandContext ( ) . getExecutionEntityManager ( ) . deleteExecutionAndRelatedData ( ( ExecutionEntity ) execution , DeleteReason . EVENT_BASED_GATEWAY_CANCEL , false ) ; }
Should be subclassed by the more specific types . For an intermediate catch without type it s simply leaving the event .