public abstract class Task extends Element implements Attributable
Modifier and Type | Class and Description |
---|---|
static class |
Task.Complexity
Provides the complexity of the task.
|
static class |
Task.Priority
Provides the priority of the task.
|
static class |
Task.TaskStatus
Provides the status of the task.
|
Element.ElementType
Modifier and Type | Field and Description |
---|---|
static String |
OBJECT_TYPE |
Constructor and Description |
---|
Task(String identifier,
String elementId,
String name,
String description,
Element.ElementType activityType,
ProcessFlowDescriptor.FlowStatus flowStatus,
ProcessFlowDescriptor processFlow,
Date created,
Date started,
Task.TaskStatus taskStatus,
List<Attribute> attributes)
Initializing constructor which sets the values of all variables.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<Attribute> |
getAttributes()
Gets the extended attributes of this task
|
Date |
getStarted()
Gets the date this task was started
|
Task.TaskStatus |
getTaskStatus()
Gets the status of this task
|
int |
hashCode() |
void |
setAttributes(List<Attribute> attributes)
Sets the extended attributes for this task
|
String |
toString() |
getCreated, getDescription, getElementId, getFlowStatus, getName, getProcessFlow, getType, setDescription, setName
getIdentifier, getObjectType, setIdentifier, setObjectType
public static final String OBJECT_TYPE
public Task(String identifier, String elementId, String name, String description, Element.ElementType activityType, ProcessFlowDescriptor.FlowStatus flowStatus, ProcessFlowDescriptor processFlow, Date created, Date started, Task.TaskStatus taskStatus, List<Attribute> attributes)
It is not intended or recommended that the consumer of the API construct these objects. They should only be
retrieved from service calls such as
ProcessFlowService.getCurrentElementsByProcessFlow(String)
.
identifier
- The identifier of the taskelementId
- The id of the task as it appears in the process definitionname
- The name of the taskdescription
- The description of the taskactivityType
- The type of the taskflowStatus
- The status of the process flowprocessFlow
- The process flow that contains this taskcreated
- The date this task was createdstarted
- The date this task was startedtaskStatus
- The status of the taskattributes
- The extended attributes of the taskpublic List<Attribute> getAttributes()
getAttributes
in interface Attributable
public Task.TaskStatus getTaskStatus()
public Date getStarted()
public void setAttributes(List<Attribute> attributes)
setAttributes
in interface Attributable
attributes
- The extended attributes to set.Copyright (c) 2017, SAS Institute Inc., Cary, NC, USA