protected void processEventSync(EventSubscriptionEntity eventSubscriptionEntity, Object payload) { // A compensate event needs to be deleted before the handlers are called if (eventSubscriptionEntity instanceof CompensateEventSubscriptionEntity) { delete(eventSubscriptionEntity); } EventHandler eventHandler = getProcessEngineConfiguration().getEventHandler(eventSubscriptionEntity.getEventType()); if (eventHandler == null) { throw new ActivitiException("Could not find eventhandler for event of type '" + eventSubscriptionEntity.getEventType() + "'."); } eventHandler.handleEvent(eventSubscriptionEntity, payload, getCommandContext()); }
protected void processEventSync(Object payload) { EventHandler eventHandler = Context.getProcessEngineConfiguration().getEventHandler(eventType); if (eventHandler == null) { throw new ActivitiException("Could not find eventhandler for event of type '" + eventType + "'."); } eventHandler.handleEvent(this, payload, Context.getCommandContext()); }
protected void processEventSync(Object payload) { EventHandler eventHandler = Context.getProcessEngineConfiguration().getEventHandler(eventType); if (eventHandler == null) { throw new ActivitiException("Could not find eventhandler for event of type '" + eventType + "'."); } eventHandler.handleEvent(this, payload, Context.getCommandContext()); }
protected void processEventSync(EventSubscriptionEntity eventSubscriptionEntity, Object payload) { // A compensate event needs to be deleted before the handlers are called if (eventSubscriptionEntity instanceof CompensateEventSubscriptionEntity) { delete(eventSubscriptionEntity); } EventHandler eventHandler = getProcessEngineConfiguration().getEventHandler(eventSubscriptionEntity.getEventType()); if (eventHandler == null) { throw new ActivitiException("Could not find eventhandler for event of type '" + eventSubscriptionEntity.getEventType() + "'."); } eventHandler.handleEvent(eventSubscriptionEntity, payload, getCommandContext()); }