Package com.priint.pubserver.bpm.model
Class CustomTask
- java.lang.Object
-
- com.priint.pubserver.bpm.model.CustomTask
-
public class CustomTask extends java.lang.ObjectObject represents Task returned from BPM.
-
-
Constructor Summary
Constructors Constructor Description CustomTask()Object represents Task returned from BPM.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetAssignee()java.util.List<java.lang.String>getCandidateGroups()java.util.List<java.lang.String>getCandidateUsers()java.lang.StringgetCaseDefinitionId()java.lang.StringgetCaseExecutionId()java.lang.StringgetCaseInstanceId()java.util.DategetCreated()java.lang.StringgetDelegationState()java.lang.StringgetDescription()java.util.DategetDue()java.lang.StringgetExecutionId()java.util.DategetFollowUp()java.lang.StringgetFormKey()java.lang.StringgetId()java.lang.StringgetName()java.lang.StringgetOwner()java.lang.StringgetParentTaskId()intgetPriority()java.lang.StringgetProcessDefinitionId()java.lang.StringgetProcessDefinitionKey()java.lang.StringgetProcessDefinitionName()java.lang.StringgetProcessDefinitionVersion()java.lang.StringgetProcessInstanceBusinessKey()java.lang.StringgetProcessInstanceId()java.lang.StringgetTaskDefinitionKey()java.lang.StringgetTenantId()inthashCode()booleanisSuspended()voidsetAssignee(java.lang.String assignee)voidsetCandidateGroups(java.util.List<java.lang.String> candidateGroups)voidsetCandidateUsers(java.util.List<java.lang.String> candidateUsers)voidsetCaseDefinitionId(java.lang.String caseDefinitionId)voidsetCaseExecutionId(java.lang.String caseExecutionId)voidsetCaseInstanceId(java.lang.String caseInstanceId)voidsetCreated(java.util.Date created)voidsetDelegationState(java.lang.String delegationState)voidsetDescription(java.lang.String description)voidsetDue(java.util.Date due)voidsetExecutionId(java.lang.String executionId)voidsetFollowUp(java.util.Date followUp)voidsetFormKey(java.lang.String formKey)voidsetId(java.lang.String id)voidsetName(java.lang.String name)voidsetOwner(java.lang.String owner)voidsetParentTaskId(java.lang.String parentTaskId)voidsetPriority(int priority)voidsetProcessDefinitionId(java.lang.String processDefinitionId)voidsetProcessDefinitionKey(java.lang.String processDefinitionKey)voidsetProcessDefinitionName(java.lang.String processDefinitionName)voidsetProcessDefinitionVersion(java.lang.String processDefinitionVersion)voidsetProcessInstanceBusinessKey(java.lang.String processInstanceBusinessKey)voidsetProcessInstanceId(java.lang.String processInstanceId)voidsetSuspended(boolean suspended)voidsetTaskDefinitionKey(java.lang.String taskDefinitionKey)voidsetTenantId(java.lang.String tenantId)java.lang.StringtoString()
-
-
-
Method Detail
-
getId
public java.lang.String getId()
- Returns:
String- The task id.
-
getName
public java.lang.String getName()
- Returns:
String- The task name.
-
getAssignee
public java.lang.String getAssignee()
- Returns:
String- The assignee's id.
-
getCreated
public java.util.Date getCreated()
- Returns:
Date- The date the task was created on. Default format* yyyy-MM-dd'T'HH:mm:ss.SSSZ.
-
getDue
public java.util.Date getDue()
- Returns:
Date- The task's due date. Default format* yyyy-MM-dd'T'HH:mm:ss.SSSZ.
-
getFollowUp
public java.util.Date getFollowUp()
- Returns:
Date- The follow-up date for the task. Default format* yyyy-MM-dd'T'HH:mm:ss.SSSZ.
-
getDelegationState
public java.lang.String getDelegationState()
- Returns:
String- The task's delegation state. Possible values are PENDING and RESOLVED
-
getDescription
public java.lang.String getDescription()
- Returns:
String- The task's description.
-
getExecutionId
public java.lang.String getExecutionId()
- Returns:
String- The id of the execution the task belongs to.
-
getOwner
public java.lang.String getOwner()
- Returns:
String- The owner's id.
-
getParentTaskId
public java.lang.String 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
public java.lang.String getProcessDefinitionId()
- Returns:
String- The id of the process definition the task belongs to.
-
getProcessInstanceId
public java.lang.String getProcessInstanceId()
- Returns:
String- The id of the process instance the task belongs to.
-
getTaskDefinitionKey
public java.lang.String getTaskDefinitionKey()
- Returns:
String- The task's key.
-
getCaseExecutionId
public java.lang.String getCaseExecutionId()
- Returns:
String- The id of the case execution the task belongs to.
-
getCaseInstanceId
public java.lang.String getCaseInstanceId()
- Returns:
String- The id of the case instance the task belongs to.
-
getCaseDefinitionId
public java.lang.String 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
public java.lang.String getFormKey()
- Returns:
String- If not null, the form key for the task.
-
getTenantId
public java.lang.String getTenantId()
- Returns:
String- If not null, the tenant id for the task.
-
getProcessInstanceBusinessKey
public java.lang.String getProcessInstanceBusinessKey()
- Returns:
String- The key of the process instance the task belongs to.
-
getProcessDefinitionKey
public java.lang.String getProcessDefinitionKey()
- Returns:
String- The id of the process definition the task belongs to.
-
getProcessDefinitionName
public java.lang.String getProcessDefinitionName()
- Returns:
String- The name of the process definition the task belongs to.
-
getCandidateUsers
public java.util.List<java.lang.String> getCandidateUsers()
- Returns:
- {link List} of
String- list of candidate users.
-
getCandidateGroups
public java.util.List<java.lang.String> getCandidateGroups()
- Returns:
- {link List} of
String- list of candidate groups.
-
setId
public void setId(java.lang.String id)
- Parameters:
id- - The task id.
-
setName
public void setName(java.lang.String name)
- Parameters:
name- - The task name.
-
setAssignee
public void setAssignee(java.lang.String assignee)
- Parameters:
assignee- - The assignee's id.
-
setCreated
public void setCreated(java.util.Date created)
- Parameters:
created- - The date the task was created on. Default format* yyyy-MM-dd'T'HH:mm:ss.SSSZ.
-
setDue
public void setDue(java.util.Date due)
- Parameters:
due- - The task's due date. Default format* yyyy-MM-dd'T'HH:mm:ss.SSSZ.
-
setFollowUp
public void setFollowUp(java.util.Date followUp)
- Parameters:
followUp- - The follow-up date for the task. Default format* yyyy-MM-dd'T'HH:mm:ss.SSSZ.
-
setDelegationState
public void setDelegationState(java.lang.String delegationState)
- Parameters:
delegationState- - The task's delegation state. Possible values are PENDING and RESOLVED
-
setDescription
public void setDescription(java.lang.String description)
- Parameters:
description- - The task's description.
-
setExecutionId
public void setExecutionId(java.lang.String executionId)
- Parameters:
executionId- - The id of the execution the task belongs to.
-
setOwner
public void setOwner(java.lang.String owner)
- Parameters:
owner- - The owner's id.
-
setParentTaskId
public void setParentTaskId(java.lang.String parentTaskId)
- 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
public void setProcessDefinitionId(java.lang.String processDefinitionId)
- Parameters:
processDefinitionId- - The id of the process definition the task belongs to.
-
setProcessInstanceId
public void setProcessInstanceId(java.lang.String processInstanceId)
- Parameters:
processInstanceId- - The id of the process instance the task belongs to.
-
setTaskDefinitionKey
public void setTaskDefinitionKey(java.lang.String taskDefinitionKey)
- Parameters:
taskDefinitionKey- - The task's key.
-
setCaseExecutionId
public void setCaseExecutionId(java.lang.String caseExecutionId)
- Parameters:
caseExecutionId- - The id of the case execution the task belongs to.
-
setCaseInstanceId
public void setCaseInstanceId(java.lang.String caseInstanceId)
- Parameters:
caseInstanceId- - The id of the case instance the task belongs to.
-
setCaseDefinitionId
public void setCaseDefinitionId(java.lang.String caseDefinitionId)
- 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
public void setFormKey(java.lang.String formKey)
- Parameters:
formKey- - If not null, the form key for the task.
-
setTenantId
public void setTenantId(java.lang.String tenantId)
- Parameters:
tenantId- - If not null, the tenant id for the task.
-
setProcessInstanceBusinessKey
public void setProcessInstanceBusinessKey(java.lang.String processInstanceBusinessKey)
- Parameters:
processInstanceBusinessKey- - The key of the process instance the task belongs to.
-
setProcessDefinitionKey
public void setProcessDefinitionKey(java.lang.String processDefinitionKey)
- Parameters:
processDefinitionKey- - The key of the process definition the task belongs to.
-
setProcessDefinitionName
public void setProcessDefinitionName(java.lang.String processDefinitionName)
- Parameters:
processDefinitionName- - The name of the process definition the task belongs to.
-
setCandidateUsers
public void setCandidateUsers(java.util.List<java.lang.String> candidateUsers)
- Parameters:
candidateUsers- - list of candidate users.
-
setCandidateGroups
public void setCandidateGroups(java.util.List<java.lang.String> candidateGroups)
- Parameters:
candidateGroups- - list of candidate groups.
-
getProcessDefinitionVersion
public java.lang.String getProcessDefinitionVersion()
-
setProcessDefinitionVersion
public void setProcessDefinitionVersion(java.lang.String processDefinitionVersion)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-