Class FlowImpl

    • Field Detail

      • SYNTHESIZED_RETURN_CASE_FLOW

        public static final Flow SYNTHESIZED_RETURN_CASE_FLOW
      • ABANDONED_FLOW

        public static final Flow ABANDONED_FLOW
    • Constructor Detail

      • FlowImpl

        public FlowImpl()
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getId

        public String getId()
        Description copied from class: Flow

        Return the immutable id for this Flow. This must be unique within the defining document (such as an Application Configuration Resources file), but need not be unique within the entire application.

        Specified by:
        getId in class Flow
        Returns:
        the id.
      • getDefiningDocumentId

        public String getDefiningDocumentId()
        Description copied from class: Flow

        Return the immutable application unique identifier for the document in which the argument flow is defined.

        Specified by:
        getDefiningDocumentId in class Flow
        Returns:
        the defining document id
      • setId

        public void setId​(String definingDocumentId,
                          String id)
      • getStartNodeId

        public String getStartNodeId()
        Description copied from class: Flow

        Return the immutable id for the default node that should be activated when this flow is entered.

        Specified by:
        getStartNodeId in class Flow
        Returns:
        the id of the start node
      • setStartNodeId

        public void setStartNodeId​(String defaultNodeId)
      • getFinalizer

        public jakarta.el.MethodExpression getFinalizer()
        Description copied from class: Flow

        Return the MethodExpression that must be called by the runtime as the last thing that happens before exiting this flow. Any FlowScoped beans declared for this flow must remain in scope until after control returns from the method referenced by this MethodExpression.

        Specified by:
        getFinalizer in class Flow
        Returns:
        the MethodExpresion for the finalizer.
      • setFinalizer

        public void setFinalizer​(jakarta.el.MethodExpression finalizer)
      • getInitializer

        public jakarta.el.MethodExpression getInitializer()
        Description copied from class: Flow

        Return the MethodExpression that must be called by the runtime immediately after activating any FlowScoped beans declared for this flow.

        Specified by:
        getInitializer in class Flow
        Returns:
        the MethodExpresion for the initializer.
      • setInitializer

        public void setInitializer​(jakarta.el.MethodExpression initializer)
      • getViews

        public List<ViewNode> getViews()
        Description copied from class: Flow

        Return an immutable data structure containing all of the view nodes declared for this flow.

        Specified by:
        getViews in class Flow
        Returns:
        the view nodes for this flow
      • getReturns

        public Map<String,​ReturnNode> getReturns()
        Description copied from class: Flow

        Return an immutable data structure containing all of the return nodes declared for this flow.

        Specified by:
        getReturns in class Flow
        Returns:
        the return nodes for this flow.
      • getSwitches

        public Map<String,​SwitchNode> getSwitches()
        Description copied from class: Flow

        Return an immutable data structure containing all of the switch nodes declared for this flow.

        Specified by:
        getSwitches in class Flow
        Returns:
        the switch nodes for this flow
      • getFlowCalls

        public Map<String,​FlowCallNode> getFlowCalls()
        Description copied from class: Flow

        Return an immutable data structure containing all the flow call nodes declared for this flow.

        Specified by:
        getFlowCalls in class Flow
        Returns:
        the flow call nodes for this flow
      • getNavigationCases

        public Map<String,​Set<NavigationCase>> getNavigationCases()
        Description copied from class: Flow

        Return an unmodifiable view of the navigation cases within this flow.

        Specified by:
        getNavigationCases in class Flow
        Returns:
        the navigation cases,
      • getFlowCall

        public FlowCallNode getFlowCall​(Flow targetFlow)
        Description copied from class: Flow

        Return the FlowCallNode that represents calling the targetFlow from this flow, or null if targetFlow cannot be reached from this flow.

        Specified by:
        getFlowCall in class Flow
        Parameters:
        targetFlow - the flow for which the FlowCallNode is to be returned
        Returns:
        a FlowCallNode for the argument flow or null
      • getMethodCalls

        public List<MethodCallNode> getMethodCalls()
        Description copied from class: Flow

        Return an immutable data structure containing all the method call nodes declared for this flow.

        Specified by:
        getMethodCalls in class Flow
        Returns:
        the method call nodes for this flow
      • getNode

        public FlowNode getNode​(String nodeId)
        Description copied from class: Flow

        Return the generic FlowNode by id, or null if not found.

        Specified by:
        getNode in class Flow
        Parameters:
        nodeId - the node id for which the FlowNode is to be returned
        Returns:
        the FlowNode or null
      • getClientWindowFlowId

        public String getClientWindowFlowId​(ClientWindow curWindow)
        Description copied from class: Flow

        Get the ClientWindow's id and append "_" and the return from Flow.getId(). Return the result.

        Specified by:
        getClientWindowFlowId in class Flow
        Parameters:
        curWindow - the
        Returns:
        the generated client window id for this flow.