Class ProcessStepDefinition
java.lang.Object
com.aquima.interactions.process.impl.nodes.NodeDefinition
com.aquima.interactions.process.impl.nodes.ProcessStepDefinition
- All Implemented Interfaces:
IProcessNodeDefinition
,IProcessStepDefinition
- Direct Known Subclasses:
CallNodeDefinition
,ConditionNodeDefinition
,EventNodeDefinition
,TaskNodeDefinition
,TimerNodeDefinition
public abstract class ProcessStepDefinition
extends NodeDefinition
implements IProcessStepDefinition
Abstract base class for task and process nodes.
- Since:
- 7.1
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ProcessStepDefinition
(NodeData datasource, NodeContext context) protected
ProcessStepDefinition
(NodeData node, IExpressionParser parser) -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the conditions that should be met in order for the task to be scheduled.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.final boolean
isAdhoc()
This method returns a boolean indicating if the node is an adhoc node in a process definition.boolean
This method returns a boolean indicating if the task may be repeated once it has been completed.protected final ICondition
parseCondition
(String strCondition, IExpressionParser parser) Methods inherited from class com.aquima.interactions.process.impl.nodes.NodeDefinition
addNextNode, getExitStates, 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
getDisplayName, getExitStates, getExpirationDefinition, getId
-
Constructor Details
-
ProcessStepDefinition
protected ProcessStepDefinition(NodeData datasource, NodeContext context) throws InitializationException - Throws:
InitializationException
-
ProcessStepDefinition
protected ProcessStepDefinition(NodeData node, IExpressionParser parser) throws InitializationException - Throws:
InitializationException
-
-
Method Details
-
parseCondition
protected final ICondition parseCondition(String strCondition, IExpressionParser parser) throws InitializationException - Throws:
InitializationException
-
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
- Overrides:
getNextNode
in classNodeDefinition
- 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
- Overrides:
getNextNode
in classNodeDefinition
- Parameters:
exitState
- The exit state for which the next node is requested.- Returns:
- The next node in the process.
-
isAdhoc
public final boolean isAdhoc()Description copied from interface:IProcessStepDefinition
This method returns a boolean indicating if the node is an adhoc node in a process definition. Adhoc nodes are not part of the normal flow, and thus don't have any exit states. The adhoc nodes become active depending on their trigger.- Specified by:
isAdhoc
in interfaceIProcessStepDefinition
- Returns:
- boolean indicating if the node is an adhoc node in a process definition.
-
isRepeatable
public boolean isRepeatable()Description copied from interface:IProcessStepDefinition
This method returns a boolean indicating if the task may be repeated once it has been completed. Note: Only ad hoc tasks can be repeatable, ad hoc condition nodes can not be repeatable.- Specified by:
isRepeatable
in interfaceIProcessStepDefinition
- Returns:
- a boolean indicating if the task may be repeated once it has been completed.
-
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
- Returns:
- The condition that should be met in order for the task to be scheduled.
-