Class ProcessTaskTemplate
java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.process.ProcessTaskTemplate
Template that may be used to initialize a process task.
- Since:
- 7.1
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ProcessTaskTemplate
(com.aquima.interactions.foundation.report.IInitializationReport report, String name) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCustomField
(String name, String expression) Adds a custom field to the process task with the specified name and expression.void
addExitState
(String exitState, boolean isContinue) This method may be used to add an exit state to the task.void
This method may be used to add a role to the task.protected String
List
<com.aquima.interactions.process.ds.IProcessTaskCustomFieldDS> protected String
protected com.aquima.interactions.foundation.text.IMultilingualText
Gets the expression that determines the date on which this task should be ended.protected List
<com.aquima.interactions.process.TaskExit> protected com.aquima.interactions.foundation.GUID
getId()
getName()
protected String
com.aquima.interactions.process.impl.ReevaluationEvent
protected String
protected long
getRoles()
protected String
protected boolean
void
setAuthorizationAlgorithm
(String authorizationAlgorithmName) This method may be used to set the authorization algorithmvoid
void
setAutomatic
(boolean isAutomatic) This method may be used to make the task automatic.void
setDescription
(String description) This method may be used to specify the description of the task.void
setDisplayName
(String displayName) This method may be used to specify the display name of the task.void
setDueDate
(String dueDateExpression) Sets the expression that determines the date on which this task should be ended.void
setPriorityAlgorithm
(String priorityAlgorithmName) This method may be used to add a priority algorithm to the task.void
setReevaluationEvent
(com.aquima.interactions.process.impl.ReevaluationEvent reevaluationEvent) void
setRetryInterval
(long retryInterval) This methods set the retry interval of the task.void
setRoutingAlgorithm
(String routingAlgorithmName) This method may be used to add a routing algorithm to the task.com.aquima.interactions.process.ds.IProcessTaskDS
This method converts the template to a data source that can be used to initialize a process task.Methods inherited from class com.aquima.interactions.test.templates.AbstractReportingTemplate
getInitializationReport
-
Constructor Details
-
ProcessTaskTemplate
protected ProcessTaskTemplate(com.aquima.interactions.foundation.report.IInitializationReport report, String name)
-
-
Method Details
-
getId
protected com.aquima.interactions.foundation.GUID getId() -
getName
-
setAuthorizationAlgoritm
-
getDescription
-
setDescription
This method may be used to specify the description of the task.- Parameters:
description
- the description of the task.
-
getDisplayName
protected com.aquima.interactions.foundation.text.IMultilingualText getDisplayName() -
setDisplayName
This method may be used to specify the display name of the task.- Parameters:
displayName
- The display name that should be used.
-
addRole
This method may be used to add a role to the task.- Parameters:
role
- The role that should be added.
-
getRoles
-
getAuthorizationAlgorithm
-
setAuthorizationAlgorithm
This method may be used to set the authorization algorithm- Parameters:
authorizationAlgorithmName
- The name of the authorization algorithm
-
getRoutingAlgorithm
-
setRoutingAlgorithm
This method may be used to add a routing algorithm to the task.- Parameters:
routingAlgorithmName
- The routing algorithm that should be added.
-
getPriorityAlgorithm
-
setPriorityAlgorithm
This method may be used to add a priority algorithm to the task.- Parameters:
priorityAlgorithmName
- The priority algorithm that should be added.
-
addExitState
This method may be used to add an exit state to the task.- Parameters:
exitState
- The exit state that should be added.isContinue
- Boolean indicating if it is a continue exit, or a
-
addCustomField
Adds a custom field to the process task with the specified name and expression.- Parameters:
name
- The name to set.expression
- The expression to set.
-
getExitStates
-
getRetryExpr
-
getRetryInterval
protected long getRetryInterval() -
setRetryInterval
public void setRetryInterval(long retryInterval) This methods set the retry interval of the task.- Parameters:
retryInterval
- The retry interval in ms.
-
isAutomatic
protected boolean isAutomatic() -
setAutomatic
public void setAutomatic(boolean isAutomatic) This method may be used to make the task automatic.- Parameters:
isAutomatic
- Boolean indicating if the task is automatic.
-
toDataSource
public com.aquima.interactions.process.ds.IProcessTaskDS toDataSource()This method converts the template to a data source that can be used to initialize a process task.- Returns:
- a data source that can be used to initialize a process task.
-
getDueDate
Gets the expression that determines the date on which this task should be ended.- Returns:
- Due date expression, can be null.
-
setDueDate
Sets the expression that determines the date on which this task should be ended.- Parameters:
dueDateExpression
- The expression to be set, can be null.
-
getReevaluationEvent
public com.aquima.interactions.process.impl.ReevaluationEvent getReevaluationEvent() -
setReevaluationEvent
public void setReevaluationEvent(com.aquima.interactions.process.impl.ReevaluationEvent reevaluationEvent) -
getCustomFields
-