Class Flow
- java.lang.Object
-
- lumis.portal.analytics.automationflow.Flow
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class Flow extends Object implements Serializable, Cloneable
An automation flow.- Since:
- 12.0.0
- Version:
- $Revision: 23535 $ $Date: 2020-01-14 13:18:39 -0300 (Tue, 14 Jan 2020) $
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Flow(Collection<FilterByEventAttributeNode> triggers, FlowNode firstNode, boolean isActive)
Creates a new flow instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,FlowNode>
getAllNodes()
Returns all nodes of this flow.FlowNode
getFirstNode()
Returns the first node of the flow.Collection<FilterByEventAttributeNode>
getTriggers()
Returns the triggers.protected void
init(FlowEntry flowEntry)
Initializes the flow with the given flow entry.boolean
isActive()
Returns whether this flow is active.void
validate()
Validates this flow.
-
-
-
Constructor Detail
-
Flow
public Flow(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 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 Map<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
-
-