Class ProcessDefinitionImpl

    • Field Detail

      • name

        protected java.lang.String name
      • description

        protected java.lang.String description
      • laneSets

        protected java.util.List<LaneSet> laneSets
    • Constructor Detail

      • ProcessDefinitionImpl

        public ProcessDefinitionImpl​(java.lang.String id)
    • Method Detail

      • ensureDefaultInitialExists

        protected void ensureDefaultInitialExists()
      • createProcessInstance

        public PvmProcessInstance createProcessInstance​(java.lang.String businessKey,
                                                        java.lang.String caseInstanceId,
                                                        ActivityImpl initial)
      • createProcessInstanceForInitial

        public PvmProcessInstance createProcessInstanceForInitial​(ActivityImpl initial)
        creates a process instance using the provided activity as initial
      • getInitialActivityStack

        public java.util.List<ActivityImpl> getInitialActivityStack()
      • addLaneSet

        public void addLaneSet​(LaneSet newLaneSet)
      • getLaneForId

        public Lane getLaneForId​(java.lang.String id)
      • setInitial

        public void setInitial​(ActivityImpl initial)
      • getLaneSets

        public java.util.List<LaneSet> getLaneSets()
        all lane-sets defined on this process-instance. Returns an empty list if none are defined.
      • setParticipantProcess

        public void setParticipantProcess​(ParticipantProcess participantProcess)
      • isScope

        public boolean isScope()
        Description copied from interface: PvmScope
        Indicates whether this is a local scope for variables and events if true, there will _always_ be a scope execution created for it.

        Note: the fact that this is a scope does not mean that it is also a sub process scope.

        Specified by:
        isScope in interface PvmScope
      • getEventScope

        public PvmScope getEventScope()
        Description copied from interface: PvmScope
        The event scope for an activity is the scope in which the activity listens for events. This may or may not be the flow scope.. Consider: boundary events have a different event scope than flow scope.

        The event scope is always a scope.

        Specified by:
        getEventScope in interface PvmScope
        the event scope of the activity
      • getFlowScope

        public ScopeImpl getFlowScope()
        Description copied from interface: PvmScope
        The flow scope of the activity. The scope in which the activity itself is executed.

        Note: in order to ensure backwards compatible behavior, a flow scope is not necessarily a a scope. Example: event sub processes.

        Specified by:
        getFlowScope in interface PvmScope
      • getLevelOfSubprocessScope

        public PvmScope getLevelOfSubprocessScope()
        Description copied from interface: PvmScope
        The "level of subprocess scope" as defined in bpmn: this is the subprocess containing the activity. Usually this is the same as the flow scope, instead if the activity is multi instance: in that case the activity is nested inside a mutli instance body but "at the same level of subprocess" as other activities which are siblings to the mi-body.
        Specified by:
        getLevelOfSubprocessScope in interface PvmScope
        the level of subprocess scope as defined in bpmn
      • 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
        isSubProcessScope in class ScopeImpl
        true if this is a sub process scope