Class ProcessNodeTemplate

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

public class ProcessNodeTemplate extends AbstractReportingTemplate
Template class that may be used to provide the information needed during initialization.
Since:
7.1
Author:
O. Kerpershoek
  • 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

      public ProcessTemplate 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

      public ProcessEdgeTemplate addNextNode(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.
      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

      public ProcessEdgeTemplate addNextNode(String exitState, ProcessNodeTemplate node)
      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

      public void setProcessName(String name)
      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

      protected String getProcessName()
    • setTaskName

      public void setTaskName(String name)
      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

      protected String getTaskName()
    • setMessageEventName

      public IntermediateMessageEventMappingTemplate setMessageEventName(String messageEvent)
      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

      protected IntermediateMessageEventMappingTemplate getMessageEventTemplate()
    • setTimerExpression

      public void setTimerExpression(String expr)
      This method may be used to specify the timer expression.
      Parameters:
      expr - The timer expression.
    • getTimerExpression

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

      public void setRequired(String isRequired)
      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

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

      public void setCondition(String condition)
      This method may be used to set a condition for the task.
      Parameters:
      condition - The condition that should be set.
    • getCondition

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