Package com.priint.pubserver.bpm.model
Class CustomTask
java.lang.Object
com.priint.pubserver.bpm.model.CustomTask
Object represents Task returned from BPM.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetDue()getId()getName()getOwner()intinthashCode()booleanvoidsetAssignee(String assignee) voidsetCandidateGroups(List<String> candidateGroups) voidsetCandidateUsers(List<String> candidateUsers) voidsetCaseDefinitionId(String caseDefinitionId) voidsetCaseExecutionId(String caseExecutionId) voidsetCaseInstanceId(String caseInstanceId) voidsetCreated(Date created) voidsetDelegationState(String delegationState) voidsetDescription(String description) voidvoidsetExecutionId(String executionId) voidsetFollowUp(Date followUp) voidsetFormKey(String formKey) voidvoidvoidvoidsetParentTaskId(String parentTaskId) voidsetPriority(int priority) voidsetProcessDefinitionId(String processDefinitionId) voidsetProcessDefinitionKey(String processDefinitionKey) voidsetProcessDefinitionName(String processDefinitionName) voidsetProcessDefinitionVersion(String processDefinitionVersion) voidsetProcessInstanceBusinessKey(String processInstanceBusinessKey) voidsetProcessInstanceId(String processInstanceId) voidsetSuspended(boolean suspended) voidsetTaskDefinitionKey(String taskDefinitionKey) voidsetTenantId(String tenantId) toString()
-
Constructor Details
-
CustomTask
public CustomTask()Object represents Task returned from BPM.
-
-
Method Details
-
getId
- Returns:
String- The task id.
-
getName
- Returns:
String- The task name.
-
getAssignee
- Returns:
String- The assignee's id.
-
getCreated
- Returns:
Date- The date the task was created on. Default format* yyyy-MM-dd'T'HH:mm:ss.SSSZ.
-
getDue
- Returns:
Date- The task's due date. Default format* yyyy-MM-dd'T'HH:mm:ss.SSSZ.
-
getFollowUp
- Returns:
Date- The follow-up date for the task. Default format* yyyy-MM-dd'T'HH:mm:ss.SSSZ.
-
getDelegationState
- Returns:
String- The task's delegation state. Possible values are PENDING and RESOLVED
-
getDescription
- Returns:
String- The task's description.
-
getExecutionId
- Returns:
String- The id of the execution the task belongs to.
-
getOwner
- Returns:
String- The owner's id.
-
getParentTaskId
- Returns:
String- he id the parent task, if this task is a subtask.
-
getPriority
public int getPriority()- Returns:
- int - The task's priority.
-
getProcessDefinitionId
- Returns:
String- The id of the process definition the task belongs to.
-
getProcessInstanceId
- Returns:
String- The id of the process instance the task belongs to.
-
getTaskDefinitionKey
- Returns:
String- The task's key.
-
getCaseExecutionId
- Returns:
String- The id of the case execution the task belongs to.
-
getCaseInstanceId
- Returns:
String- The id of the case instance the task belongs to.
-
getCaseDefinitionId
- Returns:
String- The id of the case definition the task belongs to.
-
isSuspended
public boolean isSuspended()- Returns:
Boolean- Whether the task belongs to a process instance that is suspended.
-
getFormKey
- Returns:
String- If not null, the form key for the task.
-
getTenantId
- Returns:
String- If not null, the tenant id for the task.
-
getProcessInstanceBusinessKey
- Returns:
String- The key of the process instance the task belongs to.
-
getProcessDefinitionKey
- Returns:
String- The id of the process definition the task belongs to.
-
getProcessDefinitionName
- Returns:
String- The name of the process definition the task belongs to.
-
getCandidateUsers
- Returns:
- {link List} of
String- list of candidate users.
-
getCandidateGroups
- Returns:
- {link List} of
String- list of candidate groups.
-
setId
- Parameters:
id- - The task id.
-
setName
- Parameters:
name- - The task name.
-
setAssignee
- Parameters:
assignee- - The assignee's id.
-
setCreated
- Parameters:
created- - The date the task was created on. Default format* yyyy-MM-dd'T'HH:mm:ss.SSSZ.
-
setDue
- Parameters:
due- - The task's due date. Default format* yyyy-MM-dd'T'HH:mm:ss.SSSZ.
-
setFollowUp
- Parameters:
followUp- - The follow-up date for the task. Default format* yyyy-MM-dd'T'HH:mm:ss.SSSZ.
-
setDelegationState
- Parameters:
delegationState- - The task's delegation state. Possible values are PENDING and RESOLVED
-
setDescription
- Parameters:
description- - The task's description.
-
setExecutionId
- Parameters:
executionId- - The id of the execution the task belongs to.
-
setOwner
- Parameters:
owner- - The owner's id.
-
setParentTaskId
- Parameters:
parentTaskId- - The id the parent task, if this task is a subtask.
-
setPriority
public void setPriority(int priority) - Parameters:
priority- - The task's priority.
-
setProcessDefinitionId
- Parameters:
processDefinitionId- - The id of the process definition the task belongs to.
-
setProcessInstanceId
- Parameters:
processInstanceId- - The id of the process instance the task belongs to.
-
setTaskDefinitionKey
- Parameters:
taskDefinitionKey- - The task's key.
-
setCaseExecutionId
- Parameters:
caseExecutionId- - The id of the case execution the task belongs to.
-
setCaseInstanceId
- Parameters:
caseInstanceId- - The id of the case instance the task belongs to.
-
setCaseDefinitionId
- Parameters:
caseDefinitionId- - The id of the case definition the task belongs to.
-
setSuspended
public void setSuspended(boolean suspended) - Parameters:
suspended- - Whether the task belongs to a process instance that is suspended.
-
setFormKey
- Parameters:
formKey- - If not null, the form key for the task.
-
setTenantId
- Parameters:
tenantId- - If not null, the tenant id for the task.
-
setProcessInstanceBusinessKey
- Parameters:
processInstanceBusinessKey- - The key of the process instance the task belongs to.
-
setProcessDefinitionKey
- Parameters:
processDefinitionKey- - The key of the process definition the task belongs to.
-
setProcessDefinitionName
- Parameters:
processDefinitionName- - The name of the process definition the task belongs to.
-
setCandidateUsers
- Parameters:
candidateUsers- - list of candidate users.
-
setCandidateGroups
- Parameters:
candidateGroups- - list of candidate groups.
-
getProcessDefinitionVersion
-
setProcessDefinitionVersion
-
equals
-
hashCode
public int hashCode() -
toString
-