Class CustomTask


  • public class CustomTask
    extends java.lang.Object
    Object represents Task returned from BPM.
    • Constructor Detail

      • CustomTask

        public CustomTask()
        Object represents Task returned from BPM.
    • 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:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object