Class TaskAssignment

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

public class TaskAssignment extends Object implements Serializable
Author:
nkaushik Represents the assignment rules for the task. This includes priority and all associated elements of the rule like the assignee, etc
See Also:
  • Constructor Details

    • TaskAssignment

      public TaskAssignment()
      Constructor
  • Method Details

    • getAdapterStatus

      public String getAdapterStatus()
      Return the attachment status of the Task Assignment Adapter attached
      Returns:
      The Adapter Status.
    • setAdapterStatus

      public void setAdapterStatus(String adapterStatus)
      Sets the attachment status of the Task Assignment Adapter attached
      Parameters:
      adapterStatus - The Adapter Status to set.
    • getAssignmentAdapter

      public String getAssignmentAdapter()
      Returns the name of the Task Assignment Adapter attached
      Returns:
      The name of the attached Task Assignment Adapter.
    • setAssignmentAdapter

      public void setAssignmentAdapter(String assignmentAdapter)
      Sets the name of the Task Assignment Adapter attached
      Parameters:
      assignmentAdapter - The name of the Task Assignment Adapter.
    • getEmailTemplate

      public String getEmailTemplate()
      Returns the name of the Email Template attached
      Returns:
      The name of the Email Template.
    • setEmailTemplate

      public void setEmailTemplate(String emailTemplate)
      Sets the name of the Email Template attached
      Parameters:
      emailTemplate - The name of the Email Template.
    • getEscalationTime

      public String getEscalationTime()
      Returns the time period after which the task should be escalated
      Returns:
      The Escalation Time Period.
    • setEscalationTime

      public void setEscalationTime(String escalationTime)
      Sets the time period after which the task should be escalated
      Parameters:
      escalationTime - The Escalation Time Period.
    • getGroupName

      public String getGroupName()
      Returns the name of the group defined as an assignee
      Returns:
      The Group Name.
    • setGroupName

      public void setGroupName(String groupName)
      Sets the name of the group defined as an assignee
      Parameters:
      groupName - The Group Name.
    • getPriority

      public String getPriority()
      Returns the priority sequence in which this assignment rule should be evaluated
      Returns:
      The priority sequence number.
    • setPriority

      public void setPriority(String priority)
      Sets the priority sequence in which this assignment rule should be evaluated
      Parameters:
      priority - The priority sequence number.
    • getRuleName

      public String getRuleName()
      Returns the name of the task assignment rule to evaluate
      Returns:
      The Rule Name.
    • setRuleName

      public void setRuleName(String ruleName)
      Sets the name of the task assignment rule to evaluate
      Parameters:
      ruleName - The Rule Name.
    • isSendEmail

      public boolean isSendEmail()
      Returns whether an email should be sent to the assignee
      Returns:
      True if it should be sent, False if not.
    • setSendEmail

      public void setSendEmail(boolean sendEmail)
      Sets whether an email should be sent to the assignee
      Parameters:
      sendEmail - True if it should be sent, False if not.
    • getTargetType

      public String getTargetType()
      Returns the Assignee Type for this assignment rule
      Returns:
      The Assignment Target Type.
    • setTargetType

      public void setTargetType(String targetType)
      Sets the Assignee Type for this assignment rule
      Parameters:
      targetType - The Assignment Target Type.
    • getUserName

      public String getUserName()
      Returns the Login ID of the User set up as an assignee
      Returns:
      The UserName.
    • setUserName

      public void setUserName(String userName)
      Sets the Login ID of the User set up as an assignee
      Parameters:
      userName - The UserName.
    • getKey

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

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

      public String getAssignmentAdapterKey()
      Returns the Key of the Task Assignment Adapter
      Returns:
      The Assignment Adapter Key.
    • setAssignmentAdapterKey

      public void setAssignmentAdapterKey(String assignmentAdapterKey)
      Sets the Key of the Task Assignment Adapter
      Parameters:
      assignmentAdapterKey - The Assignment Adapter Key.
    • getEmailTemplateKey

      public String getEmailTemplateKey()
      Returns the Key of the Email Template used to generate the email sent to the assignee
      Returns:
      The Email Template Key.
    • setEmailTemplateKey

      public void setEmailTemplateKey(String emailTemplateKey)
      Sets the Key of the Email Template used to generate the email sent to the assignee
      Parameters:
      emailTemplateKey - The Email Template Key.
    • getGroupKey

      public String getGroupKey()
      Returns the Key of the Group defined as an assignee
      Returns:
      The group Key.
    • setGroupKey

      public void setGroupKey(String groupKey)
      Sets the Key of the Group defined as an assignee
      Parameters:
      groupKey - The Group Key.
    • getRuleKey

      public String getRuleKey()
      Returns the Key of the Assignment Rule to be evaluated
      Returns:
      The Rule Key.
    • setRuleKey

      public void setRuleKey(String ruleKey)
      Sets the Key of the Assignment Rule to be evaluated
      Parameters:
      ruleKey - The Rule Key.
    • getUserFullName

      public String getUserFullName()
      Returns the Full Name of the User defined as the assignee
      Returns:
      The Full Name of the User.
    • setUserFullName

      public void setUserFullName(String userFullName)
      Sets the Full Name of the User defined as the assignee
      Parameters:
      userFullName - The Full Name of the User.
    • getUserKey

      public String getUserKey()
      Returns the Key of the user defined as an assignee
      Returns:
      The User Key.
    • setUserKey

      public void setUserKey(String userKey)
      Sets the Key of the User defined as an assignee
      Parameters:
      userKey - The User Key.
    • getAssignmentAdapterMappings

      public HashSet getAssignmentAdapterMappings()
      Returns the list of Adapter Variable Mappings for the Task Assignment Adapter attached. The HashSet returned contains a list of @see AdapterMapping objects
      Returns:
      The list of Task Assignment Adapter Mappings.
    • setAssignmentAdapterMappings

      public void setAssignmentAdapterMappings(HashSet assignmentAdapterMappings)
      Sets the list of Adapter Variable Mappings for the Task Assignment Adapter attached. The HashSet should contain a list of @see AdapterMapping objects
      Parameters:
      assignmentAdapterMappings - The list of Task Assignment Adapter Mappings.
    • setAssignmentAdapterMapping

      public void setAssignmentAdapterMapping(AdapterMapping assignmentAdapterMapping)
      Adds an Adapter Variable Mapping to the list of mappings for the attached Task Assignment Adapter
      Parameters:
      assignmentAdapterMapping - The Task Assignment Adapter Mapping to add to the set.