Package com.thortech.xl.vo.workflow
Class TaskAssignment
java.lang.Object
com.thortech.xl.vo.workflow.TaskAssignment
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the attachment status of the Task Assignment Adapter attachedReturns the name of the Task Assignment Adapter attachedReturns the Key of the Task Assignment AdapterReturns the list of Adapter Variable Mappings for the Task Assignment Adapter attached.Returns the name of the Email Template attachedReturns the Key of the Email Template used to generate the email sent to the assigneeReturns the time period after which the task should be escalatedReturns the Key of the Group defined as an assigneeReturns the name of the group defined as an assigneegetKey()
Returns the Key of the Assignment DefinitionReturns the priority sequence in which this assignment rule should be evaluatedReturns the Key of the Assignment Rule to be evaluatedReturns the name of the task assignment rule to evaluateReturns the Assignee Type for this assignment ruleReturns the Full Name of the User defined as the assigneeReturns the Key of the user defined as an assigneeReturns the Login ID of the User set up as an assigneeboolean
Returns whether an email should be sent to the assigneevoid
setAdapterStatus
(String adapterStatus) Sets the attachment status of the Task Assignment Adapter attachedvoid
setAssignmentAdapter
(String assignmentAdapter) Sets the name of the Task Assignment Adapter attachedvoid
setAssignmentAdapterKey
(String assignmentAdapterKey) Sets the Key of the Task Assignment Adaptervoid
setAssignmentAdapterMapping
(AdapterMapping assignmentAdapterMapping) Adds an Adapter Variable Mapping to the list of mappings for the attached Task Assignment Adaptervoid
setAssignmentAdapterMappings
(HashSet assignmentAdapterMappings) Sets the list of Adapter Variable Mappings for the Task Assignment Adapter attached.void
setEmailTemplate
(String emailTemplate) Sets the name of the Email Template attachedvoid
setEmailTemplateKey
(String emailTemplateKey) Sets the Key of the Email Template used to generate the email sent to the assigneevoid
setEscalationTime
(String escalationTime) Sets the time period after which the task should be escalatedvoid
setGroupKey
(String groupKey) Sets the Key of the Group defined as an assigneevoid
setGroupName
(String groupName) Sets the name of the group defined as an assigneevoid
Sets the Key of the Assignment Definitionvoid
setPriority
(String priority) Sets the priority sequence in which this assignment rule should be evaluatedvoid
setRuleKey
(String ruleKey) Sets the Key of the Assignment Rule to be evaluatedvoid
setRuleName
(String ruleName) Sets the name of the task assignment rule to evaluatevoid
setSendEmail
(boolean sendEmail) Sets whether an email should be sent to the assigneevoid
setTargetType
(String targetType) Sets the Assignee Type for this assignment rulevoid
setUserFullName
(String userFullName) Sets the Full Name of the User defined as the assigneevoid
setUserKey
(String userKey) Sets the Key of the User defined as an assigneevoid
setUserName
(String userName) Sets the Login ID of the User set up as an assignee
-
Constructor Details
-
TaskAssignment
public TaskAssignment()Constructor
-
-
Method Details
-
getAdapterStatus
Return the attachment status of the Task Assignment Adapter attached- Returns:
- The Adapter Status.
-
setAdapterStatus
Sets the attachment status of the Task Assignment Adapter attached- Parameters:
adapterStatus
- The Adapter Status to set.
-
getAssignmentAdapter
Returns the name of the Task Assignment Adapter attached- Returns:
- The name of the attached Task Assignment Adapter.
-
setAssignmentAdapter
Sets the name of the Task Assignment Adapter attached- Parameters:
assignmentAdapter
- The name of the Task Assignment Adapter.
-
getEmailTemplate
Returns the name of the Email Template attached- Returns:
- The name of the Email Template.
-
setEmailTemplate
Sets the name of the Email Template attached- Parameters:
emailTemplate
- The name of the Email Template.
-
getEscalationTime
Returns the time period after which the task should be escalated- Returns:
- The Escalation Time Period.
-
setEscalationTime
Sets the time period after which the task should be escalated- Parameters:
escalationTime
- The Escalation Time Period.
-
getGroupName
Returns the name of the group defined as an assignee- Returns:
- The Group Name.
-
setGroupName
Sets the name of the group defined as an assignee- Parameters:
groupName
- The Group Name.
-
getPriority
Returns the priority sequence in which this assignment rule should be evaluated- Returns:
- The priority sequence number.
-
setPriority
Sets the priority sequence in which this assignment rule should be evaluated- Parameters:
priority
- The priority sequence number.
-
getRuleName
Returns the name of the task assignment rule to evaluate- Returns:
- The Rule Name.
-
setRuleName
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
Returns the Assignee Type for this assignment rule- Returns:
- The Assignment Target Type.
-
setTargetType
Sets the Assignee Type for this assignment rule- Parameters:
targetType
- The Assignment Target Type.
-
getUserName
Returns the Login ID of the User set up as an assignee- Returns:
- The UserName.
-
setUserName
Sets the Login ID of the User set up as an assignee- Parameters:
userName
- The UserName.
-
getKey
Returns the Key of the Assignment Definition- Returns:
- The key.
-
setKey
Sets the Key of the Assignment Definition- Parameters:
key
- The key.
-
getAssignmentAdapterKey
Returns the Key of the Task Assignment Adapter- Returns:
- The Assignment Adapter Key.
-
setAssignmentAdapterKey
Sets the Key of the Task Assignment Adapter- Parameters:
assignmentAdapterKey
- The Assignment Adapter Key.
-
getEmailTemplateKey
Returns the Key of the Email Template used to generate the email sent to the assignee- Returns:
- The Email Template Key.
-
setEmailTemplateKey
Sets the Key of the Email Template used to generate the email sent to the assignee- Parameters:
emailTemplateKey
- The Email Template Key.
-
getGroupKey
Returns the Key of the Group defined as an assignee- Returns:
- The group Key.
-
setGroupKey
Sets the Key of the Group defined as an assignee- Parameters:
groupKey
- The Group Key.
-
getRuleKey
Returns the Key of the Assignment Rule to be evaluated- Returns:
- The Rule Key.
-
setRuleKey
Sets the Key of the Assignment Rule to be evaluated- Parameters:
ruleKey
- The Rule Key.
-
getUserFullName
Returns the Full Name of the User defined as the assignee- Returns:
- The Full Name of the User.
-
setUserFullName
Sets the Full Name of the User defined as the assignee- Parameters:
userFullName
- The Full Name of the User.
-
getUserKey
Returns the Key of the user defined as an assignee- Returns:
- The User Key.
-
setUserKey
Sets the Key of the User defined as an assignee- Parameters:
userKey
- The User Key.
-
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
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
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.
-