public class Workflow extends Object
getConditions()
and setConditions(List)
are
now deprecated in favor of their getPreConditions()
and setPreConditions(List)
and getPostConditions()
and setPostConditions(List)
counterparts.
The existing condition only methods have been preserved for back compat, but will
go away in later versions of the class and API. Also over the next few releases,
we intend to change the inner APIs to use pre and post conditions.Constructor and Description |
---|
Workflow()
Default Constructor
|
Workflow(String name,
String id,
List<WorkflowTask> tasks,
List<WorkflowCondition> conditions)
Deprecated.
|
Workflow(String name,
String id,
List<WorkflowTask> tasks,
List<WorkflowCondition> preConditions,
List<WorkflowCondition> postConditions) |
Modifier and Type | Method and Description |
---|---|
List<WorkflowCondition> |
getConditions()
Deprecated.
|
String |
getId() |
String |
getName() |
List<WorkflowCondition> |
getPostConditions() |
List<WorkflowCondition> |
getPreConditions() |
List<WorkflowTask> |
getTasks() |
void |
setConditions(List<WorkflowCondition> conditions)
Deprecated.
|
void |
setId(String id) |
void |
setName(String name) |
void |
setPostConditions(List<WorkflowCondition> postConditions) |
void |
setPreConditions(List<WorkflowCondition> preConditions) |
void |
setTasks(List<WorkflowTask> tasks) |
public Workflow()
@Deprecated public Workflow(String name, String id, List<WorkflowTask> tasks, List<WorkflowCondition> conditions)
Workflow(String, String, List, List, List)
instead.name
- The name of this workflow.id
- The identifier for this workflow.tasks
- The List
of WorkflowTask
s associated with this
workflow.conditions
- The List
of WorkflowCondition
s associated with
this workflow.public Workflow(String name, String id, List<WorkflowTask> tasks, List<WorkflowCondition> preConditions, List<WorkflowCondition> postConditions)
name
- The name of the Workflow.id
- The identifier of the Workflow.tasks
- The associated List
of WorkflowTask
s.preConditions
- The associated List
of pre-WorkflowCondition
s.postConditions
- The associated List
of postWorkflowCondition
s.public String getId()
public void setId(String id)
id
- the id to setpublic String getName()
public void setName(String name)
name
- the name to set@Deprecated public List<WorkflowCondition> getConditions()
WorkflowCondition
s. The list
is mutable, and can change the inner portion of the
class.@Deprecated public void setConditions(List<WorkflowCondition> conditions)
setPreConditions(List)
or
setPostConditions(List)
instead.conditions
- the conditions to setpublic void setTasks(List<WorkflowTask> tasks)
tasks
- the tasks to setpublic List<WorkflowTask> getTasks()
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 setCopyright © 1999–2017 Apache OODT. All rights reserved.