Java Code Examples for org.activiti.engine.delegate.event.ActivitiEventType#ENTITY_ACTIVATED
The following examples show how to use
org.activiti.engine.delegate.event.ActivitiEventType#ENTITY_ACTIVATED .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SuspensionState.java From activiti6-boot2 with Apache License 2.0 | 5 votes |
protected static void dispatchStateChangeEvent(Object entity, SuspensionState state) { if(Context.getCommandContext() != null && Context.getCommandContext().getEventDispatcher().isEnabled()) { ActivitiEventType eventType = null; if(state == SuspensionState.ACTIVE) { eventType = ActivitiEventType.ENTITY_ACTIVATED; } else { eventType = ActivitiEventType.ENTITY_SUSPENDED; } Context.getCommandContext().getEventDispatcher().dispatchEvent( ActivitiEventBuilder.createEntityEvent(eventType, entity)); } }
Example 2
Source File: SuspensionState.java From activiti6-boot2 with Apache License 2.0 | 5 votes |
protected static void dispatchStateChangeEvent(Object entity, SuspensionState state) { if (Context.getCommandContext() != null && Context.getCommandContext().getEventDispatcher().isEnabled()) { ActivitiEventType eventType = null; if (state == SuspensionState.ACTIVE) { eventType = ActivitiEventType.ENTITY_ACTIVATED; } else { eventType = ActivitiEventType.ENTITY_SUSPENDED; } Context.getCommandContext().getEventDispatcher().dispatchEvent(ActivitiEventBuilder.createEntityEvent(eventType, entity)); } }