Class FlowableIdmEventBuilder
- java.lang.Object
-
- com.flowable.idm.engine.delegate.event.impl.FlowableIdmEventBuilder
-
public class FlowableIdmEventBuilder extends Object
Builder class used to createFlowableEvent
implementations.- Author:
- Tijs Rademakers
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FlowableEntityEvent
createEntityEvent(FlowableIdmEventType type, Object entity)
static FlowableEvent
createGlobalEvent(FlowableIdmEventType type)
static FlowableIdmMembershipEvent
createMembershipEvent(FlowableIdmEventType type, String groupId, String userId)
static FlowableIdmIdentityInfoSetEvent
createPlatformIdentityInfoSetEvent(PlatformIdentityInfo platformIdentityInfo)
static FlowableUserPresenceChangeEvent
createUserPresenceChangeEvent(String userId, String presence)
-
-
-
Method Detail
-
createGlobalEvent
public static FlowableEvent createGlobalEvent(FlowableIdmEventType type)
- 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
public static FlowableEntityEvent createEntityEvent(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 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)
-
-