Class ProcessTaskTemplate

java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.process.ProcessTaskTemplate

public class ProcessTaskTemplate extends AbstractReportingTemplate
Template that may be used to initialize a process task.
Since:
7.1
Author:
O. Kerpershoek
  • 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

      public String getName()
    • setAuthorizationAlgoritm

      public void setAuthorizationAlgoritm(String name)
    • getDescription

      protected String getDescription()
    • setDescription

      public void setDescription(String description)
      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

      public void setDisplayName(String displayName)
      This method may be used to specify the display name of the task.
      Parameters:
      displayName - The display name that should be used.
    • addRole

      public void addRole(String role)
      This method may be used to add a role to the task.
      Parameters:
      role - The role that should be added.
    • getRoles

      protected List<String> getRoles()
    • getAuthorizationAlgorithm

      protected String getAuthorizationAlgorithm()
    • setAuthorizationAlgorithm

      public void setAuthorizationAlgorithm(String authorizationAlgorithmName)
      This method may be used to set the authorization algorithm
      Parameters:
      authorizationAlgorithmName - The name of the authorization algorithm
    • getRoutingAlgorithm

      protected String getRoutingAlgorithm()
    • setRoutingAlgorithm

      public void setRoutingAlgorithm(String routingAlgorithmName)
      This method may be used to add a routing algorithm to the task.
      Parameters:
      routingAlgorithmName - The routing algorithm that should be added.
    • getPriorityAlgorithm

      protected String getPriorityAlgorithm()
    • setPriorityAlgorithm

      public void setPriorityAlgorithm(String priorityAlgorithmName)
      This method may be used to add a priority algorithm to the task.
      Parameters:
      priorityAlgorithmName - The priority algorithm that should be added.
    • addExitState

      public void addExitState(String exitState, boolean isContinue)
      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

      public void addCustomField(String name, String expression)
      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

      protected List<com.aquima.interactions.process.TaskExit> getExitStates()
    • getRetryExpr

      protected String 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

      public String getDueDate()
      Gets the expression that determines the date on which this task should be ended.
      Returns:
      Due date expression, can be null.
    • setDueDate

      public void setDueDate(String dueDateExpression)
      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

      public List<com.aquima.interactions.process.ds.IProcessTaskCustomFieldDS> getCustomFields()