Class NodeDefinition
java.lang.Object
com.aquima.interactions.process.impl.nodes.NodeDefinition
- All Implemented Interfaces:
IProcessNodeDefinition
- Direct Known Subclasses:
BranchNodeDefinition
,EndNodeDefinition
,JoinNodeDefinition
,ProcessEndNodeDefinition
,ProcessStepDefinition
Base class for all nodes in a process.
- Since:
- 7.1
- Author:
- O. Kerpershoek
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addNextNode
(String exitState, NodeDefinition node) String[]
This method returns the names of the exits that are connected to a next node.This method returns information about what action should be taken in case of a timeout.getId()
This method returns a unique ID for the node.This method returns the next node that should be processed after this node has been completed.getNextNode
(String exitState) This method returns the next node for the specified exit state.getNextNodeSafe
(String exitState) This method is the same as the getNextNode method, but if won't throw an exception if the next node is not available.protected void
setExpirationDefinition
(IExpression expression, ReevaluationEvent reevaluationEvent, IProcessNodeDefinition continuationPoint) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.aquima.interactions.process.nodes.IProcessNodeDefinition
getDisplayName
-
Constructor Details
-
NodeDefinition
-
-
Method Details
-
getId
Description copied from interface:IProcessNodeDefinition
This method returns a unique ID for the node.- Specified by:
getId
in interfaceIProcessNodeDefinition
- Returns:
- a unique ID for the node.
-
getNextNode
Description copied from interface:IProcessNodeDefinition
This method returns the next node that should be processed after this node has been completed. If there is no next node, because the process has completed, this method will return null.- Specified by:
getNextNode
in interfaceIProcessNodeDefinition
- Returns:
- the next node that should be processed after this node has been completed.
-
getNextNode
Description copied from interface:IProcessNodeDefinition
This method returns the next node for the specified exit state. As each defined exit state should have a next node, this method will never return null, unless the default exit state (null) is provided as argument.- Specified by:
getNextNode
in interfaceIProcessNodeDefinition
- Parameters:
exitState
- The exit state for which the next node is requested.- Returns:
- The next node in the process.
-
getNextNodeSafe
This method is the same as the getNextNode method, but if won't throw an exception if the next node is not available.- Parameters:
exitState
- The exit state for which the next node is requested.- Returns:
- The next node for the exit state, or null is none was defined.
-
getExitStates
This method returns the names of the exits that are connected to a next node.- Specified by:
getExitStates
in interfaceIProcessNodeDefinition
- Returns:
- the names of the exits that are connected to a next node.
-
addNextNode
- Throws:
InitializationException
-
getExpirationDefinition
Description copied from interface:IProcessNodeDefinition
This method returns information about what action should be taken in case of a timeout. If expiration is not applicable for this node, the method will return null.- Specified by:
getExpirationDefinition
in interfaceIProcessNodeDefinition
- Returns:
- information about what action should be taken in case of a timeout.
-
setExpirationDefinition
protected void setExpirationDefinition(IExpression expression, ReevaluationEvent reevaluationEvent, IProcessNodeDefinition continuationPoint) throws InitializationException - Throws:
InitializationException
-