Interface ITaskModel
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
IGenericTaskModel
This interface defines the properties of a task from database.
- Since:
- 7.1
- Author:
- O. Kerpershoek
-
Method Summary
Modifier and TypeMethodDescriptionThis method returns the assignee info to whom the task is assigned.long
This method returns the database ID of the case the task belongs to.String[]
This method returns the names of all the custom fields that have a value for this taskgetCustomFieldValue
(String name) This method returns the value of a custom fieldgetDisplayName
(String languageCode) Returns the IDisplayNameModel for the specified language code.This method returns the time(stamp) at which this task should be completedThis method returns the name of the event on which this task is waiting.This method returns the user who executed the taskThis method returns the exit state from when the task completed.long
getId()
this method returns the database ID of the task.This method returns when the last priority check is done.getName()
This method returns the name or description of the task.This method returns the ID of the node from the process that defines this task.This method returns the database ID of the parent task (group or process).This method returns the priority of this task.This method returns the date when the task should become available.This method returns the status of the task.This method returns the time(stamp) at which a timeout will occur for this task.getType()
This method returns the type of the task.String[]
Returns the ids of the user unauthorized to execute the task.boolean
This method returns a boolean indicating if the task is conditional or not.boolean
This method returns a boolean indicating if the task is volatile or not.boolean
Converts ITaskModel implementation to DTO which is used for tracing
-
Method Details
-
getId
long getId()this method returns the database ID of the task.- Returns:
- the database ID of the task.
-
getCaseId
long getCaseId()This method returns the database ID of the case the task belongs to.- Returns:
- the database ID of the case the task belongs to.
-
getParentId
Long getParentId()This method returns the database ID of the parent task (group or process).- Returns:
- the database ID of the parent task.
-
getName
String getName()This method returns the name or description of the task.- Returns:
- The name or description of the task, never null.
-
getType
TaskType getType()This method returns the type of the task.- Returns:
- The type of the task, never null.
-
getStatus
TaskStatusType getStatus()This method returns the status of the task.- Returns:
- the status of the task, never null.
-
getAssigneeInfo
IAssigneeInfo getAssigneeInfo()This method returns the assignee info to whom the task is assigned.- Returns:
- the assignee info to whom the task is assigned.
-
getExecutedBy
String getExecutedBy()This method returns the user who executed the task- Returns:
- the user who executed the task, can be null if the task has not been executed yet
-
getNodeId
GUID getNodeId()This method returns the ID of the node from the process that defines this task.- Returns:
- the ID of the node from the process that defines this task.
-
getStartDate
DateTimeValue getStartDate()This method returns the date when the task should become available.- Returns:
- the date when the task should become available.
-
getTimeoutDate
DateTimeValue getTimeoutDate()This method returns the time(stamp) at which a timeout will occur for this task.- Returns:
- the time(stamp) at which a timeout will occur for this task.
-
getDueDate
DateTimeValue getDueDate()This method returns the time(stamp) at which this task should be completed- Returns:
- the time(stamp) at which this task should be completed
-
getExitState
String getExitState()This method returns the exit state from when the task completed.- Returns:
- the name of the exit state of the task.
-
getEventName
String getEventName()This method returns the name of the event on which this task is waiting.- Returns:
- the name of the task on which this event is waiting.
-
isConditional
boolean isConditional()This method returns a boolean indicating if the task is conditional or not. Conditional tasks are usually not part of a process, and may be removed by the process engine whenever the condition of the task no longer satisfies.- Returns:
- a boolean indicating if the task is conditional or not.
-
isRequired
boolean isRequired()This method returns a boolean indicating if the task is volatile or not. A volatile task may be removed quietly once it's (non volatile) parent task has completed. A task that is non volatile must be completed before the process may continue.- Returns:
- boolean indicating if the task is volatile or not.
-
getCustomFields
String[] getCustomFields()This method returns the names of all the custom fields that have a value for this task- Returns:
- String[] containing the field names
-
getCustomFieldValue
This method returns the value of a custom field- Parameters:
name
- the custom field name- Returns:
- null if the field does not exist or has no value for this task
-
getPriority
Integer getPriority()This method returns the priority of this task.- Returns:
- the priority of this task.
-
getLastPriorityCheck
DateTimeValue getLastPriorityCheck()This method returns when the last priority check is done.- Returns:
- the last time checked.
-
getUnauthorizedUserIds
String[] getUnauthorizedUserIds()Returns the ids of the user unauthorized to execute the task.- Returns:
- the ids of the user unauthorized to execute the task.
-
getDisplayName
Returns the IDisplayNameModel for the specified language code. If none is set, then it will return null- Parameters:
languageCode
- the code of the language for which the display name needs to be retrieved- Returns:
- the display name model if it exists
-
getDisplayName
IMultilingualText getDisplayName()- Returns:
- The multi-lingual of the display name.
-
isUserSet
boolean isUserSet()- Returns:
- whether the assignee of the task is set manually by an user or by routing algorithm
-
toTraceTaskDTO
TraceTaskDto toTraceTaskDTO()Converts ITaskModel implementation to DTO which is used for tracing- Returns:
- TraceTaskDto
-