Class XmlProcessNodeDS
- java.lang.Object
-
- com.aquima.interactions.foundation.report.ReportingDS
-
- com.aquima.interactions.process.ds.xml.r8.parsing.XmlProcessNodeDS
-
- All Implemented Interfaces:
IReportingDS
,IProcessNodeDS
public class XmlProcessNodeDS extends ReportingDS implements IProcessNodeDS
Xml r8 datasource implementation.- Since:
- 7.2
- Author:
- Jon van Leuven
-
-
Field Summary
Fields Modifier and Type Field Description static ErrorCode
UNSUPPORTED_PROCESS_EVENT_NODE
-
Constructor Summary
Constructors Modifier Constructor Description protected
XmlProcessNodeDS(IInitializationReport report, IXmlNode node)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCondition()
This method returns the condition that should be met in order for the task to be scheduled.ProcessExit
getExitState()
This method returns the name of the exit state of this node.GUID
getId()
This method should return the unique id of the node.IIntermediateMessageEventMappingDS
getMessageEventMapping()
This method returns the message event this node should wait for.String
getProcessName()
This method returns the name of the (sub) process this node represents.ReevaluationEvent
getReevaluationEvent()
This method returns the reevaluation event, which determines when a timer expression needs to be updated.String
getRequiredCondition()
This method returns a boolean expression indicating if the ad-hoc task or process should be removed as soon as the condition no longer evaluates to true.String
getTaskName()
This method returns the name of the task this node represents.String
getTimerExpression()
This method returns the expression that should be evaluated to determine the wait time.ProcessNodeType
getType()
This method returns the type of the node.boolean
isAdHocTask()
This method returns a boolean indicating if the node is an ad-hoc task or process.boolean
isRepeatable()
This method returns a boolean indicating if the task may be repeated once it has been completed.boolean
locksCase()
This method returns if the case should be locked when the task is started.-
Methods inherited from class com.aquima.interactions.foundation.report.ReportingDS
addError, addMessage, getCategory, getReport
-
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.foundation.report.IReportingDS
addMessage
-
-
-
-
Field Detail
-
UNSUPPORTED_PROCESS_EVENT_NODE
public static final ErrorCode UNSUPPORTED_PROCESS_EVENT_NODE
-
-
Constructor Detail
-
XmlProcessNodeDS
protected XmlProcessNodeDS(IInitializationReport report, IXmlNode node)
-
-
Method Detail
-
getCondition
public String getCondition()
Description copied from interface:IProcessNodeDS
This method returns the condition that should be met in order for the task to be scheduled. The condition is only relevant when the task is used as an ad-hoc task in a process.- Specified by:
getCondition
in interfaceIProcessNodeDS
- Returns:
- The condition that should be met in order for the task to be scheduled.
-
getMessageEventMapping
public IIntermediateMessageEventMappingDS getMessageEventMapping()
Description copied from interface:IProcessNodeDS
This method returns the message event this node should wait for. The name of the event is only relevant for event nodes.- Specified by:
getMessageEventMapping
in interfaceIProcessNodeDS
- Returns:
- The mapping for the message event.
-
getExitState
public ProcessExit getExitState()
Description copied from interface:IProcessNodeDS
This method returns the name of the exit state of this node. The exit state is only relevant for end nodes.- Specified by:
getExitState
in interfaceIProcessNodeDS
- Returns:
- the name of the exit state of this node.
-
getProcessName
public String getProcessName()
Description copied from interface:IProcessNodeDS
This method returns the name of the (sub) process this node represents. The process name is only relevant for process nodes.- Specified by:
getProcessName
in interfaceIProcessNodeDS
- Returns:
- the name of the (sub) process this node represents.
-
getRequiredCondition
public String getRequiredCondition()
Description copied from interface:IProcessNodeDS
This method returns a boolean expression indicating if the ad-hoc task or process should be removed as soon as the condition no longer evaluates to true. An ad-hoc process that indicates to be volatile may only contain ad-hoc tasks, and not a normal flow.- Specified by:
getRequiredCondition
in interfaceIProcessNodeDS
- Returns:
- Boolean expression indicating if the ad-hoc task should be removed once the condition is no longer true.
-
getTaskName
public String getTaskName()
Description copied from interface:IProcessNodeDS
This method returns the name of the task this node represents. The task name is only relevant for task nodes.- Specified by:
getTaskName
in interfaceIProcessNodeDS
- Returns:
- the name of the task this node represents.
-
getTimerExpression
public String getTimerExpression()
Description copied from interface:IProcessNodeDS
This method returns the expression that should be evaluated to determine the wait time. The timer expression is only relevant for wait nodes.- Specified by:
getTimerExpression
in interfaceIProcessNodeDS
- Returns:
- the expression that should be evaluated to determine the wait time.
-
getReevaluationEvent
public ReevaluationEvent getReevaluationEvent()
Description copied from interface:IProcessNodeDS
This method returns the reevaluation event, which determines when a timer expression needs to be updated.- Specified by:
getReevaluationEvent
in interfaceIProcessNodeDS
- Returns:
- the reevaluation event
-
getType
public ProcessNodeType getType()
Description copied from interface:IProcessNodeDS
This method returns the type of the node.- Specified by:
getType
in interfaceIProcessNodeDS
- Returns:
- The type of the node.
-
isAdHocTask
public boolean isAdHocTask()
Description copied from interface:IProcessNodeDS
This method returns a boolean indicating if the node is an ad-hoc task or process. Only nodes of the type task, process, event, timer and condition may return true here. Nodes that indicate to be ad-hoc may not be used in the main process flow.- Specified by:
isAdHocTask
in interfaceIProcessNodeDS
- Returns:
- boolean indicating if the node is an ad-hoc task or process.
-
isRepeatable
public boolean isRepeatable()
Description copied from interface:IProcessNodeDS
This method returns a boolean indicating if the task may be repeated once it has been completed. Note: Only ad-hoc nodes can be repeatable, except for an ad hoc condition nodes.- Specified by:
isRepeatable
in interfaceIProcessNodeDS
- Returns:
- a boolean indicating if the task may be repeated once it has been completed.
-
locksCase
public boolean locksCase()
Description copied from interface:IProcessNodeDS
This method returns if the case should be locked when the task is started. The locksCase flag is only relevant for task nodes.- Specified by:
locksCase
in interfaceIProcessNodeDS
- Returns:
- the lock case flag of the task this node represents.
-
getId
public GUID getId()
Description copied from interface:IProcessNodeDS
This method should return the unique id of the node.- Specified by:
getId
in interfaceIProcessNodeDS
- Returns:
- String containing the id of the node.
-
-