public interface Node
A Node represents an activity in the process flow chart. Many different
predefined nodes are supported out-of-the-box.
-
Method Summary
Modifier and TypeMethodDescriptionlonggetId()The id of the node.The incoming connections for this Node.getIncomingConnections(String type) The incoming connections for this Node for the given entry-point.Meta data associated with this Node.getName()The name of the nodeThe outgoing connections for this Node.getOutgoingConnections(String type) The outgoing connections for this Node for the given exit-point.The NodeContainer this Node lives in.booleanVerifies if given event type matches any of the listeners of this node
-
Method Details
-
getId
long getId()The id of the node. This is unique within its NodeContainer.- Returns:
- the id of the node
-
getName
String getName()The name of the node- Returns:
- the name of the node
-
getIncomingConnections
Map<String,List<Connection>> getIncomingConnections()The incoming connections for this Node. A Node could have multiple entry-points. This map contains the list of incoming connections for each entry-point.- Returns:
- the incoming connections
-
getOutgoingConnections
Map<String,List<Connection>> getOutgoingConnections()The outgoing connections for this Node. A Node could have multiple exit-points. This map contains the list of outgoing connections for each exit-point.- Returns:
- the outgoing connections
-
getIncomingConnections
The incoming connections for this Node for the given entry-point.- Returns:
- the incoming connections for the given entry point
-
getOutgoingConnections
The outgoing connections for this Node for the given exit-point.- Returns:
- the outgoing connections for the given exit point
-
getParentContainer
NodeContainer getParentContainer()The NodeContainer this Node lives in.- Returns:
- the parent NodeContainer
-
getMetaData
Meta data associated with this Node. -
hasMatchingEventListner
Verifies if given event type matches any of the listeners of this node- Parameters:
type- type of the incoming event- Returns:
- returns true if the event matches otherwise false
-