Class TaskEvent
- java.lang.Object
-
- org.camunda.bpm.spring.boot.starter.event.TaskEvent
-
public class TaskEvent extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringassigneeprotected java.lang.StringcaseDefinitionIdprotected java.lang.StringcaseExecutionIdprotected java.lang.StringcaseInstanceIdprotected java.util.DatecreateTimeprotected java.lang.StringdeleteReasonprotected java.lang.Stringdescriptionprotected java.util.DatedueDateprotected java.lang.StringeventNameprotected java.lang.StringexecutionIdprotected java.util.DatefollowUpDateprotected java.lang.Stringidprotected java.util.DatelastUpdatedprotected java.lang.Stringnameprotected java.lang.Stringownerprotected intpriorityprotected java.lang.StringprocessDefinitionIdprotected java.lang.StringprocessInstanceIdprotected java.lang.StringtaskDefinitionKeyprotected java.lang.StringtenantId
-
Constructor Summary
Constructors Constructor Description TaskEvent(DelegateTask delegateTask)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAssignee()The {@link User.getId() userId} of the person to which this task is delegated.java.lang.StringgetCaseDefinitionId()Reference to the case definition or null if it is not related to a case.java.lang.StringgetCaseExecutionId()Reference to the case execution or null if it is not related to a case instance.java.lang.StringgetCaseInstanceId()Reference to the case instance or null if it is not related to a case instance.java.util.DategetCreateTime()The date/time when this task was createdjava.lang.StringgetDeleteReason()Get delete reason of the task.java.lang.StringgetDescription()Free text description of the task.java.util.DategetDueDate()Due date of the task.java.lang.StringgetEventName()Returns the event name which triggered the task listener to fire for this task.java.lang.StringgetExecutionId()Reference to the path of execution or null if it is not related to a process instance.java.util.DategetFollowUpDate()Follow-up date of the task.java.lang.StringgetId()DB id of the task.java.util.DategetLastUpdated()The date/time when this task was last updated.java.lang.StringgetName()Name or title of the task.java.lang.StringgetOwner()The {@link User.getId() userId} of the person responsible for this task.intgetPriority()indication of how important/urgent this task is with a number between 0 and 100 where higher values mean a higher priority and lower values mean lower priority: [0..19] lowest, [20..39] low, [40..59] normal, [60..79] high [80..100] highestjava.lang.StringgetProcessDefinitionId()Reference to the process definition or null if it is not related to a process.java.lang.StringgetProcessInstanceId()Reference to the process instance or null if it is not related to a process instance.java.lang.StringgetTaskDefinitionKey()The id of the activity in the process defining this task or null if this is not related to a processjava.lang.StringgetTenantId()Return the id of the tenant this task belongs to.java.lang.StringtoString()
-
-
-
Field Detail
-
assignee
protected java.lang.String assignee
-
caseDefinitionId
protected java.lang.String caseDefinitionId
-
caseExecutionId
protected java.lang.String caseExecutionId
-
caseInstanceId
protected java.lang.String caseInstanceId
-
createTime
protected java.util.Date createTime
-
deleteReason
protected java.lang.String deleteReason
-
description
protected java.lang.String description
-
dueDate
protected java.util.Date dueDate
-
eventName
protected java.lang.String eventName
-
executionId
protected java.lang.String executionId
-
followUpDate
protected java.util.Date followUpDate
-
id
protected java.lang.String id
-
lastUpdated
protected java.util.Date lastUpdated
-
name
protected java.lang.String name
-
owner
protected java.lang.String owner
-
priority
protected int priority
-
processDefinitionId
protected java.lang.String processDefinitionId
-
processInstanceId
protected java.lang.String processInstanceId
-
taskDefinitionKey
protected java.lang.String taskDefinitionKey
-
tenantId
protected java.lang.String tenantId
-
-
Constructor Detail
-
TaskEvent
public TaskEvent(DelegateTask delegateTask)
-
-
Method Detail
-
getAssignee
public java.lang.String getAssignee()
The {@link User.getId() userId} of the person to which this task is delegated.
-
getCaseDefinitionId
public java.lang.String getCaseDefinitionId()
Reference to the case definition or null if it is not related to a case.
-
getCaseExecutionId
public java.lang.String getCaseExecutionId()
Reference to the case execution or null if it is not related to a case instance.
-
getCaseInstanceId
public java.lang.String getCaseInstanceId()
Reference to the case instance or null if it is not related to a case instance.
-
getCreateTime
public java.util.Date getCreateTime()
The date/time when this task was created
-
getDeleteReason
public java.lang.String getDeleteReason()
Get delete reason of the task.
-
getDescription
public java.lang.String getDescription()
Free text description of the task.
-
getDueDate
public java.util.Date getDueDate()
Due date of the task.
-
getEventName
public java.lang.String getEventName()
Returns the event name which triggered the task listener to fire for this task.
-
getExecutionId
public java.lang.String getExecutionId()
Reference to the path of execution or null if it is not related to a process instance.
-
getFollowUpDate
public java.util.Date getFollowUpDate()
Follow-up date of the task.
-
getId
public java.lang.String getId()
DB id of the task.
-
getLastUpdated
public java.util.Date getLastUpdated()
The date/time when this task was last updated. All operations that fireTaskListener.EVENTNAME_UPDATEcount as an update to the task. Returns null if the task was never updated before (i.e. it was only created).
-
getName
public java.lang.String getName()
Name or title of the task.
-
getOwner
public java.lang.String getOwner()
The {@link User.getId() userId} of the person responsible for this task.
-
getPriority
public int getPriority()
indication of how important/urgent this task is with a number between 0 and 100 where higher values mean a higher priority and lower values mean lower priority: [0..19] lowest, [20..39] low, [40..59] normal, [60..79] high [80..100] highest
-
getProcessDefinitionId
public java.lang.String getProcessDefinitionId()
Reference to the process definition or null if it is not related to a process.
-
getProcessInstanceId
public java.lang.String getProcessInstanceId()
Reference to the process instance or null if it is not related to a process instance.
-
getTaskDefinitionKey
public java.lang.String getTaskDefinitionKey()
The id of the activity in the process defining this task or null if this is not related to a process
-
getTenantId
public java.lang.String getTenantId()
Return the id of the tenant this task belongs to. Can benullif the task belongs to no single tenant.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-