Class ProcessTemplate

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

public class ProcessTemplate extends AbstractReportingTemplate
Template class that may be used to provide the information needed during initialization.
Since:
7.1
Author:
O. Kerpershoek
  • Constructor Details

    • ProcessTemplate

      protected ProcessTemplate(com.aquima.interactions.foundation.report.IInitializationReport report, String name, String type)
    • ProcessTemplate

      protected ProcessTemplate(com.aquima.interactions.foundation.report.IInitializationReport report, String name, String type, com.aquima.interactions.foundation.GUID id)
  • Method Details

    • setRoutingAlgorithm

      public void setRoutingAlgorithm(String routingAlgorithmName)
      This method may be used to set an routing algorithm to the process
      Parameters:
      routingAlgorithmName -
    • setAuthorizationAlgorithm

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

      public com.aquima.interactions.foundation.text.MultilingualText getDisplayName()
    • setDisplayName

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

      public void addRequiredRole(String name)
      This method may be used to add a required role to the process.
      Parameters:
      name - The name of the role that is required for the process.
    • addNode

      public ProcessNodeTemplate addNode(com.aquima.interactions.process.ds.ProcessNodeType type)
      This method may be used to add a (unconnected) node to the process.
      Parameters:
      type - The type of the node that should be added.
      Returns:
      Template for the newly added node.
    • addNode

      public ProcessNodeTemplate addNode(com.aquima.interactions.process.ds.ProcessNodeType type, com.aquima.interactions.foundation.GUID id)
      This method may be used to add a (unconnected) node to the process.
      Parameters:
      type - The type of the node that should be added.
      id - The id of the new node
      Returns:
      Template for the newly added node.
    • addStartNode

      public ProcessNodeTemplate addStartNode(com.aquima.interactions.process.ds.ProcessNodeType type)
      This method may be used to add a node to the process, and also mark it as the start node.
      Parameters:
      type - The type of the node that should be added.
      Returns:
      Template for the newly added node.
    • addEventStart

      public ProcessEventStartTemplate addEventStart(String messageEventName, com.aquima.interactions.process.ds.ProcessNodeType type)
    • addEventStart

      public ProcessEventStartTemplate addEventStart(String messageEventName, com.aquima.interactions.process.ds.ProcessNodeType type, com.aquima.interactions.foundation.GUID id)
    • addEventStart

      public ProcessEventStartTemplate addEventStart(String messageEventName, ProcessNodeTemplate node)
    • addEdge

      public ProcessEdgeTemplate addEdge(com.aquima.interactions.foundation.GUID sourceId, com.aquima.interactions.foundation.GUID targetId)
      This method may be used to add an edge to the process.
      Parameters:
      sourceId - The ID of the source node.
      targetId - The ID of the target node.
      Returns:
      Template for the newly added edge.
    • toDataSource

      public com.aquima.interactions.process.ds.IProcessFlowDS 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.