Class FlowableIdmEventBuilder
java.lang.Object
com.flowable.idm.engine.delegate.event.impl.FlowableIdmEventBuilder
Builder class used to create
FlowableEvent implementations.- Author:
- Tijs Rademakers
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.flowable.common.engine.api.delegate.event.FlowableEntityEventcreateEntityEvent(org.flowable.idm.api.event.FlowableIdmEventType type, Object entity) static org.flowable.common.engine.api.delegate.event.FlowableEventcreateGlobalEvent(org.flowable.idm.api.event.FlowableIdmEventType type) static org.flowable.idm.api.event.FlowableIdmMembershipEventcreateMembershipEvent(org.flowable.idm.api.event.FlowableIdmEventType type, String groupId, String userId) createPlatformIdentityInfoSetEvent(PlatformIdentityInfo platformIdentityInfo) createUserPresenceChangeEvent(String userId, String presence)
-
Method Details
-
createGlobalEvent
public static org.flowable.common.engine.api.delegate.event.FlowableEvent createGlobalEvent(org.flowable.idm.api.event.FlowableIdmEventType type) - Parameters:
type- type of event- Returns:
- an
FlowableEventthat doesn't have it's execution context-fields filled, as the event is a global event, independent of any running execution.
-
createEntityEvent
public static org.flowable.common.engine.api.delegate.event.FlowableEntityEvent createEntityEvent(org.flowable.idm.api.event.FlowableIdmEventType type, Object entity) - Parameters:
type- type of evententity- the entity this event targets- Returns:
- an
FlowableEntityEvent. In case an execution context is active, the execution related event fields will be populated. If not, execution details will be retrieved from theObjectif possible.
-
createMembershipEvent
-
createPlatformIdentityInfoSetEvent
public static FlowableIdmIdentityInfoSetEvent createPlatformIdentityInfoSetEvent(PlatformIdentityInfo platformIdentityInfo) -
createUserPresenceChangeEvent
public static FlowableUserPresenceChangeEvent createUserPresenceChangeEvent(String userId, String presence)
-