Class ProcessNodeTemplate
java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.process.ProcessNodeTemplate
Template class that may be used to provide the information needed during initialization.
- Since:
- 7.1
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ProcessNodeTemplate
(com.aquima.interactions.foundation.report.IInitializationReport report, ProcessTemplate parent, com.aquima.interactions.process.ds.ProcessNodeType type) protected
ProcessNodeTemplate
(com.aquima.interactions.foundation.report.IInitializationReport report, ProcessTemplate parent, com.aquima.interactions.process.ds.ProcessNodeType type, com.aquima.interactions.foundation.GUID id) -
Method Summary
Modifier and TypeMethodDescriptionaddNextNode
(com.aquima.interactions.process.ds.ProcessNodeType type) This method may be used to add a node and connect it to the default exit of this node.addNextNode
(com.aquima.interactions.process.ds.ProcessNodeType type, com.aquima.interactions.foundation.GUID id) This method may be used to add a node and connect it to the default exit of this node.addNextNode
(String exitState, com.aquima.interactions.process.ds.ProcessNodeType type) This method may be used to add a node to the process, and connect it directly to this node.addNextNode
(String exitState, ProcessNodeTemplate node) This method may be used connect a node to the specified exit of this node.protected String
protected com.aquima.interactions.process.ProcessExit
com.aquima.interactions.foundation.GUID
getId()
This method returns the unique ID for the node.protected IntermediateMessageEventMappingTemplate
protected String
com.aquima.interactions.process.impl.ReevaluationEvent
protected String
protected String
protected com.aquima.interactions.process.ds.ProcessNodeType
getType()
protected boolean
protected boolean
protected String
void
setAdHocTask
(boolean isAdHoc) This method may be used to mark a task "ad-hoc".void
setCondition
(String condition) This method may be used to set a condition for the task.void
setId
(com.aquima.interactions.foundation.GUID id) void
setLocksCase
(boolean locksCase) This method may be used to set the case locking behaviour for a task node.setMessageEventName
(String messageEvent) This method may be used to specify the name of the event this node refers to.void
setProcessExit
(com.aquima.interactions.process.ProcessExit exitState) void
setProcessName
(String name) This method may be used to specify the name of the process this node refers to.void
setReevaluationEvent
(com.aquima.interactions.process.impl.ReevaluationEvent reevaluationEvent) void
setRepeatable
(boolean isRepeatable) This method may be used to specify if the task is repeatable or not.void
setRequired
(String isRequired) This method may be used to mark an adhoc task or process required or not.void
setTaskName
(String name) This method may be used to specify the name of the task this node refers to.void
setTimerExpression
(String expr) This method may be used to specify the timer expression.protected boolean
com.aquima.interactions.process.ds.IProcessNodeDS
This method converts the template to a data source that can be used during initialization.Methods inherited from class com.aquima.interactions.test.templates.AbstractReportingTemplate
getInitializationReport
-
Constructor Details
-
ProcessNodeTemplate
protected ProcessNodeTemplate(com.aquima.interactions.foundation.report.IInitializationReport report, ProcessTemplate parent, com.aquima.interactions.process.ds.ProcessNodeType type) -
ProcessNodeTemplate
protected ProcessNodeTemplate(com.aquima.interactions.foundation.report.IInitializationReport report, ProcessTemplate parent, com.aquima.interactions.process.ds.ProcessNodeType type, com.aquima.interactions.foundation.GUID id)
-
-
Method Details
-
getType
protected com.aquima.interactions.process.ds.ProcessNodeType getType() -
getParent
-
setId
public void setId(com.aquima.interactions.foundation.GUID id) -
getId
public com.aquima.interactions.foundation.GUID getId()This method returns the unique ID for the node.- Returns:
- the unique ID for the node.
-
addNextNode
public ProcessEdgeTemplate addNextNode(String exitState, com.aquima.interactions.process.ds.ProcessNodeType type) This method may be used to add a node to the process, and connect it directly to this node.- Parameters:
exitState
- The exit state of this node that should be used to connect to.type
- Template for the edge to the newly added node.- Returns:
- Returns the node template that is added.
-
addNextNode
This method may be used to add a node and connect it to the default exit of this node.- Parameters:
type
- The type of the node that should be added.- Returns:
- Template representing the newly added node.
-
addNextNode
public ProcessEdgeTemplate addNextNode(com.aquima.interactions.process.ds.ProcessNodeType type, com.aquima.interactions.foundation.GUID id) This method may be used to add a node and connect it to the default exit of this node.- Parameters:
type
- The type of the node that should be added.id
- The id of the new node.- Returns:
- Template representing the newly added node.
-
addNextNode
This method may be used connect a node to the specified exit of this node.- Parameters:
exitState
- The name of the exit the node should be connected to.node
- The node that should be connected to the exit of this node.- Returns:
- Template representing the connected node.
-
setProcessName
This method may be used to specify the name of the process this node refers to.- Parameters:
name
- the name of the process this node refers to.
-
getProcessName
-
setTaskName
This method may be used to specify the name of the task this node refers to.- Parameters:
name
- the name of the task this node refers to.
-
getTaskName
-
setMessageEventName
This method may be used to specify the name of the event this node refers to.- Parameters:
messageEvent
- The name of the event this node refers to.
-
getMessageEventTemplate
-
setTimerExpression
This method may be used to specify the timer expression.- Parameters:
expr
- The timer expression.
-
getTimerExpression
-
getReevaluationEvent
public com.aquima.interactions.process.impl.ReevaluationEvent getReevaluationEvent() -
setReevaluationEvent
public void setReevaluationEvent(com.aquima.interactions.process.impl.ReevaluationEvent reevaluationEvent) -
setProcessExit
public void setProcessExit(com.aquima.interactions.process.ProcessExit exitState) -
getExitState
protected com.aquima.interactions.process.ProcessExit getExitState() -
setAdHocTask
public void setAdHocTask(boolean isAdHoc) This method may be used to mark a task "ad-hoc".- Parameters:
isAdHoc
- boolean indicating if the node represents an ad-hoc task.
-
isAdHocTask
protected boolean isAdHocTask() -
setRequired
This method may be used to mark an adhoc task or process required or not.- Parameters:
isRequired
- Expression indicating if the adhoc task is required.
-
isRequired
-
setLocksCase
public void setLocksCase(boolean locksCase) This method may be used to set the case locking behaviour for a task node.- Parameters:
locksCase
- boolean indicating if the task should lock the case when started.
-
shouldLocksCase
protected boolean shouldLocksCase() -
toDataSource
public com.aquima.interactions.process.ds.IProcessNodeDS toDataSource()This method converts the template to a data source that can be used during initialization.- Returns:
- a data source that can be used during initialization.
-
setCondition
This method may be used to set a condition for the task.- Parameters:
condition
- The condition that should be set.
-
getCondition
-
setRepeatable
public void setRepeatable(boolean isRepeatable) This method may be used to specify if the task is repeatable or not. Default all tasks are repeatable.- Parameters:
isRepeatable
- Boolean indicating if the task is repeatable.
-
isRepeatable
protected boolean isRepeatable()
-