Class ScopeContext

  • All Implemented Interfaces:
    CommonScopes

    public class ScopeContext
    extends java.lang.Object
    implements CommonScopes
    Created by colby.clegg on 2/2/2015.
    • Constructor Detail

    • Method Detail

      • getStepScope

        public PyChartScope getStepScope()
        Returns the current step's scope, in the context of the step. If the current context is a transition, "previous" is the step scope, or you can call getStepOrPrevious().
      • getPrevious

        public PyChartScope getPrevious()
        Returns the previous step's scope, in the context of a transition who has an active step preceeding it.
      • getStepOrPrevious

        public PyChartScope getStepOrPrevious()
        This returns the "step" scope, regardless of whether it represents the current step, in the context of an executing step, or "previous step", in the context of a transition.
      • getRoot

        public PyChartScope getRoot()
        Goes up the chart scope's parent chain to find the root scope.
      • locate

        public java.util.Optional<PyChartScope> locate​(java.lang.String id)