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 FlowableEntityEvent
createEntityEvent
(FlowableIdmEventType type, Object entity) static FlowableEvent
static FlowableIdmMembershipEvent
createMembershipEvent
(FlowableIdmEventType type, String groupId, String userId) createPlatformIdentityInfoSetEvent
(PlatformIdentityInfo platformIdentityInfo) createUserPresenceChangeEvent
(String userId, String presence)
-
Method Details
-
createGlobalEvent
- Parameters:
type
- type of event- Returns:
- an
FlowableEvent
that doesn't have it's execution context-fields filled, as the event is a global event, independent of any running execution.
-
createEntityEvent
- 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 theObject
if possible.
-
createMembershipEvent
public static FlowableIdmMembershipEvent createMembershipEvent(FlowableIdmEventType type, String groupId, String userId) -
createPlatformIdentityInfoSetEvent
public static FlowableIdmIdentityInfoSetEvent createPlatformIdentityInfoSetEvent(PlatformIdentityInfo platformIdentityInfo) -
createUserPresenceChangeEvent
public static FlowableUserPresenceChangeEvent createUserPresenceChangeEvent(String userId, String presence)
-