Class CustomTask

java.lang.Object
com.priint.pubserver.bpm.model.CustomTask

public class CustomTask extends Object
Object represents Task returned from BPM.
  • Constructor Details

    • CustomTask

      public CustomTask()
      Object represents Task returned from BPM.
  • Method Details

    • getId

      public String getId()
      Returns:
      String - The task id.
    • getName

      public String getName()
      Returns:
      String - The task name.
    • getAssignee

      public String getAssignee()
      Returns:
      String - The assignee's id.
    • getCreated

      public Date getCreated()
      Returns:
      Date - The date the task was created on. Default format* yyyy-MM-dd'T'HH:mm:ss.SSSZ.
    • getDue

      public Date getDue()
      Returns:
      Date - The task's due date. Default format* yyyy-MM-dd'T'HH:mm:ss.SSSZ.
    • getFollowUp

      public Date getFollowUp()
      Returns:
      Date - The follow-up date for the task. Default format* yyyy-MM-dd'T'HH:mm:ss.SSSZ.
    • getDelegationState

      public String getDelegationState()
      Returns:
      String - The task's delegation state. Possible values are PENDING and RESOLVED
    • getDescription

      public String getDescription()
      Returns:
      String - The task's description.
    • getExecutionId

      public String getExecutionId()
      Returns:
      String - The id of the execution the task belongs to.
    • getOwner

      public String getOwner()
      Returns:
      String - The owner's id.
    • getParentTaskId

      public 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 String getProcessDefinitionId()
      Returns:
      String - The id of the process definition the task belongs to.
    • getProcessInstanceId

      public String getProcessInstanceId()
      Returns:
      String - The id of the process instance the task belongs to.
    • getTaskDefinitionKey

      public String getTaskDefinitionKey()
      Returns:
      String - The task's key.
    • getCaseExecutionId

      public String getCaseExecutionId()
      Returns:
      String - The id of the case execution the task belongs to.
    • getCaseInstanceId

      public String getCaseInstanceId()
      Returns:
      String - The id of the case instance the task belongs to.
    • getCaseDefinitionId

      public 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 String getFormKey()
      Returns:
      String - If not null, the form key for the task.
    • getTenantId

      public String getTenantId()
      Returns:
      String - If not null, the tenant id for the task.
    • getProcessInstanceBusinessKey

      public String getProcessInstanceBusinessKey()
      Returns:
      String - The key of the process instance the task belongs to.
    • getProcessDefinitionKey

      public String getProcessDefinitionKey()
      Returns:
      String - The id of the process definition the task belongs to.
    • getProcessDefinitionName

      public String getProcessDefinitionName()
      Returns:
      String - The name of the process definition the task belongs to.
    • getCandidateUsers

      public List<String> getCandidateUsers()
      Returns:
      {link List} of String - list of candidate users.
    • getCandidateGroups

      public List<String> getCandidateGroups()
      Returns:
      {link List} of String - list of candidate groups.
    • setId

      public void setId(String id)
      Parameters:
      id - - The task id.
    • setName

      public void setName(String name)
      Parameters:
      name - - The task name.
    • setAssignee

      public void setAssignee(String assignee)
      Parameters:
      assignee - - The assignee's id.
    • setCreated

      public void setCreated(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(Date due)
      Parameters:
      due - - The task's due date. Default format* yyyy-MM-dd'T'HH:mm:ss.SSSZ.
    • setFollowUp

      public void setFollowUp(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(String delegationState)
      Parameters:
      delegationState - - The task's delegation state. Possible values are PENDING and RESOLVED
    • setDescription

      public void setDescription(String description)
      Parameters:
      description - - The task's description.
    • setExecutionId

      public void setExecutionId(String executionId)
      Parameters:
      executionId - - The id of the execution the task belongs to.
    • setOwner

      public void setOwner(String owner)
      Parameters:
      owner - - The owner's id.
    • setParentTaskId

      public void setParentTaskId(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(String processDefinitionId)
      Parameters:
      processDefinitionId - - The id of the process definition the task belongs to.
    • setProcessInstanceId

      public void setProcessInstanceId(String processInstanceId)
      Parameters:
      processInstanceId - - The id of the process instance the task belongs to.
    • setTaskDefinitionKey

      public void setTaskDefinitionKey(String taskDefinitionKey)
      Parameters:
      taskDefinitionKey - - The task's key.
    • setCaseExecutionId

      public void setCaseExecutionId(String caseExecutionId)
      Parameters:
      caseExecutionId - - The id of the case execution the task belongs to.
    • setCaseInstanceId

      public void setCaseInstanceId(String caseInstanceId)
      Parameters:
      caseInstanceId - - The id of the case instance the task belongs to.
    • setCaseDefinitionId

      public void setCaseDefinitionId(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(String formKey)
      Parameters:
      formKey - - If not null, the form key for the task.
    • setTenantId

      public void setTenantId(String tenantId)
      Parameters:
      tenantId - - If not null, the tenant id for the task.
    • setProcessInstanceBusinessKey

      public void setProcessInstanceBusinessKey(String processInstanceBusinessKey)
      Parameters:
      processInstanceBusinessKey - - The key of the process instance the task belongs to.
    • setProcessDefinitionKey

      public void setProcessDefinitionKey(String processDefinitionKey)
      Parameters:
      processDefinitionKey - - The key of the process definition the task belongs to.
    • setProcessDefinitionName

      public void setProcessDefinitionName(String processDefinitionName)
      Parameters:
      processDefinitionName - - The name of the process definition the task belongs to.
    • setCandidateUsers

      public void setCandidateUsers(List<String> candidateUsers)
      Parameters:
      candidateUsers - - list of candidate users.
    • setCandidateGroups

      public void setCandidateGroups(List<String> candidateGroups)
      Parameters:
      candidateGroups - - list of candidate groups.
    • getProcessDefinitionVersion

      public String getProcessDefinitionVersion()
    • setProcessDefinitionVersion

      public void setProcessDefinitionVersion(String processDefinitionVersion)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object