Class ScopeImpl

    • Field Detail

      • isSubProcessScope

        protected boolean isSubProcessScope
      • flowActivities

        protected java.util.List<ActivityImpl> flowActivities
        The activities for which the flow scope is this scope
      • namedFlowActivities

        protected java.util.Map<java.lang.String,​ActivityImpl> namedFlowActivities
      • eventActivities

        protected java.util.Set<ActivityImpl> eventActivities
        activities for which this is the event scope
      • BACKLOG

        protected final java.util.Map<java.lang.String,​ScopeImpl.BacklogErrorCallback> BACKLOG
        The key identifies the activity which is referenced but not read yet. The value is the error callback, which is called if the activity is not read till the end of parsing.
    • Constructor Detail

    • Method Detail

      • findActivity

        public ActivityImpl findActivity​(java.lang.String activityId)
        Description copied from class: CoreActivity
        searches for the activity recursively
        Specified by:
        findActivity in interface PvmScope
        Overrides:
        findActivity in class CoreActivity
        Parameters:
        activityId - the id of the activity to find.
        Returns:
        the activity or null
      • findTransition

        public TransitionImpl findTransition​(java.lang.String transitionId)
        Description copied from interface: PvmScope
        Recursively finds a transition.
        Specified by:
        findTransition in interface PvmScope
        Parameters:
        transitionId - the transiton to find
        Returns:
        the transition or null
      • findActivityAtLevelOfSubprocess

        public ActivityImpl findActivityAtLevelOfSubprocess​(java.lang.String activityId)
        Description copied from interface: PvmScope
        Finds an activity at the same level of subprocess.
        Specified by:
        findActivityAtLevelOfSubprocess in interface PvmScope
        Parameters:
        activityId - the id of the activity to find.
        Returns:
        the activity or null
      • getBacklogErrorCallbacks

        public java.util.Collection<ScopeImpl.BacklogErrorCallback> getBacklogErrorCallbacks()
        Returns the backlog error callback's.
        Returns:
        the callback's
      • isBacklogEmpty

        public boolean isBacklogEmpty()
        Returns true if the backlog is empty.
        Returns:
        true if empty, false otherwise
      • addToBacklog

        public void addToBacklog​(java.lang.String activityRef,
                                 ScopeImpl.BacklogErrorCallback callback)
        Add's the given activity reference and the error callback to the backlog.
        Parameters:
        activityRef - the activity reference which is not read until now
        callback - the error callback which should called if activity will not be read
      • isAncestorFlowScopeOf

        public boolean isAncestorFlowScopeOf​(ScopeImpl other)
      • contains

        public boolean contains​(ActivityImpl activity)
      • getExecutionListeners

        @Deprecated
        public java.util.List<ExecutionListener> getExecutionListeners​(java.lang.String eventName)
        Deprecated.
      • addExecutionListener

        @Deprecated
        public void addExecutionListener​(java.lang.String eventName,
                                         ExecutionListener executionListener)
        Deprecated.
      • addExecutionListener

        @Deprecated
        public void addExecutionListener​(java.lang.String eventName,
                                         ExecutionListener executionListener,
                                         int index)
        Deprecated.
      • getExecutionListeners

        @Deprecated
        public java.util.Map<java.lang.String,​java.util.List<ExecutionListener>> getExecutionListeners()
        Deprecated.
      • getActivities

        public java.util.List<ActivityImpl> getActivities()
        Description copied from interface: PvmScope
        Returns the flow activities of this scope. This is the list of activities for which this scope is the flow scope.
        Specified by:
        getActivities in interface PvmScope
        Specified by:
        getActivities in class CoreActivity
        Returns:
        the list of flow activities for this scope.
      • getEventActivities

        public java.util.Set<ActivityImpl> getEventActivities()
      • isSubProcessScope

        public boolean isSubProcessScope()
        Description copied from interface: PvmScope
        Indicates whether this scope is a sub process scope. A sub process scope is a scope which contains "normal flow".Scopes which are flow scopes but not sub process scopes:
        • a multi instance body scope
        • leaf scope activities which are pure event scopes (Example: User task with attached boundary event)
        Specified by:
        isSubProcessScope in interface PvmScope
        Returns:
        true if this is a sub process scope
      • setSubProcessScope

        public void setSubProcessScope​(boolean isSubProcessScope)