Class FlowableIdmEventBuilder


  • public class FlowableIdmEventBuilder
    extends java.lang.Object
    Builder class used to create FlowableEvent implementations.
    Author:
    Tijs Rademakers
    • Method Detail

      • 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 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 org.flowable.common.engine.api.delegate.event.FlowableEntityEvent createEntityEvent​(org.flowable.idm.api.event.FlowableIdmEventType type,
                                                                                                          java.lang.Object entity)
        Parameters:
        type - type of event
        entity - 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 the Object if possible.
      • createMembershipEvent

        public static org.flowable.idm.api.event.FlowableIdmMembershipEvent createMembershipEvent​(org.flowable.idm.api.event.FlowableIdmEventType type,
                                                                                                  java.lang.String groupId,
                                                                                                  java.lang.String userId)
      • createUserPresenceChangeEvent

        public static FlowableUserPresenceChangeEvent createUserPresenceChangeEvent​(java.lang.String userId,
                                                                                    java.lang.String presence)