Class Flow

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public class Flow
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Cloneable
    An automation flow.
    Since:
    12.0.0
    Version:
    $Revision$ $Date$
    See Also:
    Serialized Form
    • Constructor Detail

      • Flow

        public Flow​(java.util.Collection<FilterByEventAttributeNode> triggers,
                    FlowNode firstNode,
                    boolean isActive)
        Creates a new flow instance.
        Parameters:
        triggers - the triggers.
        firstNode - the first node.
        Since:
        12.0.0
    • Method Detail

      • validate

        public void validate()
                      throws PortalException
        Validates this flow.
        Throws:
        PortalException - if the validation detects any problem.
        Since:
        12.0.0
      • getTriggers

        public java.util.Collection<FilterByEventAttributeNode> getTriggers()
        Returns the triggers.
        Returns:
        the triggers.
        Since:
        12.0.0
      • getFirstNode

        public FlowNode getFirstNode()
        Returns the first node of the flow.
        Returns:
        the first node of the flow.
        Since:
        12.0.0
      • getAllNodes

        public java.util.Map<java.lang.String,​FlowNode> getAllNodes()
        Returns all nodes of this flow.
        Returns:
        all nodes of this flow.
        Since:
        12.2.0
      • isActive

        public boolean isActive()
        Returns whether this flow is active.
        Returns:
        whether this flow is active.
        Since:
        12.0.0
      • init

        protected void init​(FlowEntry flowEntry)
        Initializes the flow with the given flow entry.
        Parameters:
        flowEntry - the flow entry.
        Since:
        12.1.0