Class ResponseDefinition

java.lang.Object
com.thortech.xl.vo.workflow.ResponseDefinition
All Implemented Interfaces:
Serializable

public class ResponseDefinition extends Object implements Serializable
Author:
nkaushik Represents each response defined for the task. It includes the response code, description and also the list of all generated tasks
See Also:
  • Constructor Details

    • ResponseDefinition

      public ResponseDefinition()
      Constructor
  • Method Details

    • getGeneratedTasks

      public String[] getGeneratedTasks()
      Returns the list of tasks that are generated by the response. The returned string array contains the names of the tasks
      Returns:
      The names of the Generated Tasks.
    • setGeneratedTasks

      public void setGeneratedTasks(HashSet generatedTasks)
      Sets the list of tasks that are generated by the response. The provided hashset should contain the names of the tasks
      Parameters:
      generatedTasks - The names of the Generated Tasks.
    • setGeneratedTask

      public void setGeneratedTask(String generatedTask)
      Add a task to the list of Tasks generated by this response
      Parameters:
      generatedTask - The name of the task to add.
    • removeGeneratedTask

      public void removeGeneratedTask(String generatedTask)
      Remove a task from the list of Tasks generated by this response
      Parameters:
      generatedTask - The name of the task to remove.
    • getResponse

      public String getResponse()
      Returns the Response Code
      Returns:
      The response code.
    • setResponse

      public void setResponse(String response)
      Sets the Response Code
      Parameters:
      response - The response code to set.
    • getStatus

      public String getStatus()
      Returns the Status that the Response will set on the Task
      Returns:
      The status.
    • setStatus

      public void setStatus(String status)
      Sets the Status that the Response will set on the Task
      Parameters:
      status - The status to set.
    • getKey

      public String getKey()
      Returns the Key of the Response Definition
      Returns:
      The key.
    • setKey

      public void setKey(String key)
      Sets the Key of the Response Definition
      Parameters:
      key - The key.
    • getResponseDescription

      public String getResponseDescription()
      Returns the Response Description
      Returns:
      The Response Description.
    • setResponseDescription

      public void setResponseDescription(String responseDescription)
      Sets the Response Description
      Parameters:
      responseDescription - The Response Description to set.
    • getStatusKey

      public String getStatusKey()
      Returns the Key of the Status that the Response will set on the Task
      Returns:
      The Status Key.
    • setStatusKey

      public void setStatusKey(String statusKey)
      Sets the Key of the Status that the Response will set on the Task
      Parameters:
      statusKey - The Status Key to set.
    • getResponseProperties

      public ResponseProperties getResponseProperties()
    • setResponseProperties

      public void setResponseProperties(ResponseProperties responseProperties)