Class TimerNodeDefinition
- java.lang.Object
-
- com.aquima.interactions.process.impl.nodes.NodeDefinition
-
- com.aquima.interactions.process.impl.nodes.ProcessStepDefinition
-
- com.aquima.interactions.process.impl.nodes.TimerNodeDefinition
-
- All Implemented Interfaces:
IProcessNodeDefinition
,IProcessStepDefinition
,ITimerNodeDefinition
,IWaitNodeDefinition
public class TimerNodeDefinition extends ProcessStepDefinition implements ITimerNodeDefinition
This class hold the definition of a timer node. The process flow should halt the execution of the current path until the time indicated by the expression has passed.- Since:
- 7.1
- Author:
- O. Kerpershoek
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TimerNodeDefinition(NodeData node, NodeContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ICondition
getCondition()
This method returns the conditions that should be met in order for the task to be scheduled.String
getDisplayName()
This method returns a name for the node in a readable format that can be used to identify the node.String[]
getExitStates()
This method returns the names of the exits that are connected to a next node.IExpression
getExpirationExpression()
This method returns the expression that should be evaluated to determine the expiration time.ReevaluationEvent
getReevaluationEvent()
This method returns the reevaluation event-
Methods inherited from class com.aquima.interactions.process.impl.nodes.ProcessStepDefinition
getNextNode, getNextNode, isAdhoc, isRepeatable, parseCondition
-
Methods inherited from class com.aquima.interactions.process.impl.nodes.NodeDefinition
addNextNode, getExpirationDefinition, getId, getNextNodeSafe, setExpirationDefinition
-
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
getExpirationDefinition, getId, getNextNode, getNextNode
-
Methods inherited from interface com.aquima.interactions.process.nodes.IProcessStepDefinition
isAdhoc, isRepeatable
-
-
-
-
Constructor Detail
-
TimerNodeDefinition
protected TimerNodeDefinition(NodeData node, NodeContext context) throws InitializationException
- Throws:
InitializationException
-
-
Method Detail
-
getCondition
public ICondition getCondition()
Description copied from interface:IProcessStepDefinition
This method returns the conditions that should be met in order for the task to be scheduled. The condition is only relevant for an adhoc node in a process. Note: Timer and event nodes can not have a condition- Specified by:
getCondition
in interfaceIProcessStepDefinition
- Overrides:
getCondition
in classProcessStepDefinition
- Returns:
- The condition that should be met in order for the task to be scheduled.
-
getExpirationExpression
public IExpression getExpirationExpression()
Description copied from interface:ITimerNodeDefinition
This method returns the expression that should be evaluated to determine the expiration time.- Specified by:
getExpirationExpression
in interfaceITimerNodeDefinition
- Returns:
- the expression that should be evaluated to determine the expiration time.
-
getReevaluationEvent
public ReevaluationEvent getReevaluationEvent()
Description copied from interface:ITimerNodeDefinition
This method returns the reevaluation event- Specified by:
getReevaluationEvent
in interfaceITimerNodeDefinition
- Returns:
- The reevaluation event
-
getExitStates
public final String[] getExitStates()
Description copied from class:NodeDefinition
This method returns the names of the exits that are connected to a next node.- Specified by:
getExitStates
in interfaceIProcessNodeDefinition
- Overrides:
getExitStates
in classNodeDefinition
- Returns:
- the names of the exits that are connected to a next node.
-
getDisplayName
public String getDisplayName()
Description copied from interface:IProcessNodeDefinition
This method returns a name for the node in a readable format that can be used to identify the node.- Specified by:
getDisplayName
in interfaceIProcessNodeDefinition
- Returns:
- a name for the node in a readable format that can be used to identify the node.
-
-