public class WorkflowTask extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
order |
protected List<WorkflowCondition> |
postConditions |
protected List<WorkflowCondition> |
preConditions |
protected List |
requiredMetFields |
protected WorkflowTaskConfiguration |
taskConfig |
protected String |
taskId |
protected String |
taskInstanceClassName |
protected String |
taskName |
Constructor and Description |
---|
WorkflowTask()
Default Constructor.
|
WorkflowTask(String taskId,
String taskName,
WorkflowTaskConfiguration taskConfig,
List<WorkflowCondition> preConditions,
List<WorkflowCondition> postConditions,
List<String> requiredMetFields,
String taskInstanceClassName,
Date startDate,
Date endDate,
int order)
Constructs a new WorkflowTask.
|
WorkflowTask(String taskId,
String taskName,
WorkflowTaskConfiguration taskConfig,
List conditions,
String taskInstanceClassName,
int order)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
List |
getConditions()
Deprecated.
|
Date |
getEndDate() |
int |
getOrder()
Deprecated.
|
List<WorkflowCondition> |
getPostConditions() |
List<WorkflowCondition> |
getPreConditions() |
List |
getRequiredMetFields() |
Date |
getStartDate() |
WorkflowTaskConfiguration |
getTaskConfig() |
String |
getTaskId() |
String |
getTaskInstanceClassName() |
String |
getTaskName() |
void |
setConditions(List conditions)
Deprecated.
|
void |
setEndDate(Date endDate) |
void |
setOrder(int order)
Deprecated.
|
void |
setPostConditions(List<WorkflowCondition> postConditions) |
void |
setPreConditions(List<WorkflowCondition> preConditions) |
void |
setRequiredMetFields(List requiredMetFields) |
void |
setStartDate(Date startDate) |
void |
setTaskConfig(WorkflowTaskConfiguration taskConfig) |
void |
setTaskId(String taskId) |
void |
setTaskInstanceClassName(String taskInstanceClassName) |
void |
setTaskName(String taskName) |
protected String taskId
protected String taskName
protected WorkflowTaskConfiguration taskConfig
protected List<WorkflowCondition> preConditions
protected List<WorkflowCondition> postConditions
protected String taskInstanceClassName
protected int order
protected List requiredMetFields
public WorkflowTask()
Default Constructor.
@Deprecated public WorkflowTask(String taskId, String taskName, WorkflowTaskConfiguration taskConfig, List conditions, String taskInstanceClassName, int order)
WorkflowCondition
s. As
used, this method will set the pre-conditions via the passed in
List
of WorkflowCondition
s only.taskId
- The unique ID for this WorkflowTask.taskName
- The display name for this WorkflowTask.taskConfig
- The static configuration parameters for this WorkflowTask.conditions
- The List of conditions attached to this WorkflowTask (if any).taskInstanceClassName
- The instance class name for this WorkflowTask.order
- The order in which this WorkflowTask is executed within a
Workflow.public WorkflowTask(String taskId, String taskName, WorkflowTaskConfiguration taskConfig, List<WorkflowCondition> preConditions, List<WorkflowCondition> postConditions, List<String> requiredMetFields, String taskInstanceClassName, Date startDate, Date endDate, int order)
taskId
- The identifier for this task.taskName
- The name for this task.taskConfig
- The associated WorkflowTaskConfiguration
.requiredMetFields
- A List
of String met field names that this task requires.preConditions
- The List
of pre-WorkflowCondition
s.postConditions
- The List
of post-WorkflowCondition
s.taskInstanceClassName
- The implementing class name of this WorkflowTask.startDate
- The time that this task started executing.endDate
- The time that this task stopped executing.order
- The order in which this task should be run.public WorkflowTaskConfiguration getTaskConfig()
public List<WorkflowCondition> getPreConditions()
public void setPreConditions(List<WorkflowCondition> preConditions)
preConditions
- the preConditions to setpublic List<WorkflowCondition> getPostConditions()
public void setPostConditions(List<WorkflowCondition> postConditions)
postConditions
- the postConditions to setpublic void setTaskConfig(WorkflowTaskConfiguration taskConfig)
taskConfig
- The taskConfig to set.public String getTaskId()
public void setTaskId(String taskId)
taskId
- The taskId to set.public String getTaskInstanceClassName()
public void setTaskInstanceClassName(String taskInstanceClassName)
taskInstanceClassName
- The taskInstanceClassName to set.public String getTaskName()
public void setTaskName(String taskName)
taskName
- The taskName to set.@Deprecated public List getConditions()
getPreConditions()
or
getPostConditions()
. As called, will return a union of the Tasks's
pre- and post- WorkflowCondition
s.List
of WorkflowCondition
s associated with this
task.@Deprecated public void setConditions(List conditions)
setPostConditions(List)
and
setPreConditions(List)
, for explicitly setting the pre or post
conditions of this WorkflowTask.
To keep back compat, this method in its deprecated form will set the
WorkflowTask pre-conditions, as was the case before.
Sets the List
of WorkflowCondition
s associated with this
task.conditions
- The condition List
.@Deprecated public int getOrder()
@Deprecated public void setOrder(int order)
order
- The order to set.public List getRequiredMetFields()
public void setRequiredMetFields(List requiredMetFields)
requiredMetFields
- the requiredMetFields to setpublic Date getStartDate()
public void setStartDate(Date startDate)
startDate
- the startDate to setpublic Date getEndDate()
public void setEndDate(Date endDate)
endDate
- the endDate to setCopyright © 1999–2017 Apache OODT. All rights reserved.