Class ActivitiEventDispatcherImpl

    • Constructor Detail

      • ActivitiEventDispatcherImpl

        public ActivitiEventDispatcherImpl()
    • Method Detail

      • setEnabled

        public void setEnabled​(boolean enabled)
        Specified by:
        setEnabled in interface ActivitiEventDispatcher
        Parameters:
        enabled - true, if event dispatching should be enabled.
      • removeEventListener

        public void removeEventListener​(ActivitiEventListener listenerToRemove)
        Description copied from interface: ActivitiEventDispatcher
        Removes the given listener from this dispatcher. The listener will no longer be notified, regardless of the type(s) it was registered for in the first place.
        Specified by:
        removeEventListener in interface ActivitiEventDispatcher
        Parameters:
        listenerToRemove - listener to remove
      • extractBpmnModelFromEvent

        protected org.activiti.bpmn.model.BpmnModel extractBpmnModelFromEvent​(ActivitiEvent event)
        In case no process-context is active, this method attempts to extract a process-definition based on the event. In case it's an event related to an entity, this can be deducted by inspecting the entity, without additional queries to the database. If not an entity-related event, the process-definition will be retrieved based on the processDefinitionId (if filled in). This requires an additional query to the database in case not already cached. However, queries will only occur when the definition is not yet in the cache, which is very unlikely to happen, unless evicted.
        Parameters:
        event -
        Returns: