public class WorkflowLoop extends UC4Object implements java.lang.Iterable<JobPlanTask>, WorkflowInterfaces.IUpdatable, LifecycleSaveAware
Constructor and Description |
---|
WorkflowLoop() |
Modifier and Type | Method and Description |
---|---|
void |
addTask(JobPlanTask task)
Adds a task to this for each loop.
|
void |
addTask(JobPlanTask task,
int pos)
Adds a task to this ForEach loop at the specified position.
|
void |
addTaskAndCreateDependencies(JobPlanTask task)
Adds a task to this for each loop and Recreates the dependencies.
|
void |
addTaskAndCreateDependencies(JobPlanTask task,
int pos)
Adds a task to this ForEach loop at the specified position and recreates the dependencies.
|
void |
afterSaveObject()
Called after an object is saved.
|
JobPlanAttributes |
attributes()
Returns attributes of this
JobPlan . |
void |
clear()
Removes all tasks in this for each workflow.
|
LoopDataSource |
datasource()
Datasource of the loop.
|
JobPlanTask |
getEndTask()
Returns the END task of this FOR EACH workflow.
|
java.lang.String |
getProcess()
Returns the content of the "Process" tab.
|
JobPlanTask |
getStartTask()
Returns the Start Task of this FOR EACH workflow.
|
JobPlanTask |
getTaskByUserDefinedID(java.lang.String id)
Returns a worfkflow task with the specified ID.
|
XHeader |
header()
Returns the header data of this object.
|
boolean |
isExecutable()
Returns
true if this Object can be executed. |
java.util.Iterator<JobPlanTask> |
iterator() |
boolean |
removeTask(JobPlanTask task)
Removes the specified task from the
WorkFlowLoop . |
boolean |
removeTaskAndCreateDependencies(JobPlanTask task)
Removes the specified task from the
WorkFlowLoop and recreates the dependencies. |
Rollback |
rollback()
This method provides access to the rollback tab of an executable object.
|
Runtime |
runtime()
Returns runtime information of this job.
|
void |
setProcess(java.lang.String script)
Sets the content of the "Process" tab.
|
protected void |
setTaskFactory(WorkFlowTaskFactory taskFactory)
Sub classes may call this method in order to provide their own sub class of
JobPlanTask which may contain additional features. |
int |
size()
Number of tasks in the loop.
|
SyncList |
syncs()
Returns a
SyncList object which contains sync conditions of this object. |
void |
update()
Update the object (i.e.
|
void |
validate()
Validates the object.
|
ObjectValues |
values() |
docu, getAccess, getIdnr, getModCount, getName, getType, isOldVersion, load, store
protected void setTaskFactory(WorkFlowTaskFactory taskFactory)
JobPlanTask
which may contain additional features.taskFactory
- Task Factorypublic void addTask(JobPlanTask task)
task
- JobPlanTaskpublic void addTask(JobPlanTask task, int pos)
task
- JobPlanTaskpos
- Position where the task should be addedpublic void addTaskAndCreateDependencies(JobPlanTask task)
task
- JobPlanTaskpublic void addTaskAndCreateDependencies(JobPlanTask task, int pos)
task
- JobPlanTaskpos
- Position where the task should be addedpublic Rollback rollback()
public java.util.Iterator<JobPlanTask> iterator()
iterator
in interface java.lang.Iterable<JobPlanTask>
public void clear()
public int size()
public JobPlanTask getTaskByUserDefinedID(java.lang.String id)
id
- ID of the tasknull
if not foundpublic JobPlanTask getStartTask()
public JobPlanTask getEndTask()
public LoopDataSource datasource()
public ObjectValues values()
public XHeader header()
public SyncList syncs()
SyncList
object which contains sync conditions of this object.public Runtime runtime()
public java.lang.String getProcess()
public void setProcess(java.lang.String script)
script
- Scriptpublic JobPlanAttributes attributes()
JobPlan
.public boolean isExecutable()
UC4Object
true
if this Object can be executed.isExecutable
in class UC4Object
public void afterSaveObject()
LifecycleSaveAware
afterSaveObject
in interface LifecycleSaveAware
public void validate() throws java.io.InvalidObjectException
UC4Object
InvalidObjectException
is thrown.public boolean removeTask(JobPlanTask task)
WorkFlowLoop
.task
- WorkFlowLoop task which should be removedpublic boolean removeTaskAndCreateDependencies(JobPlanTask task)
WorkFlowLoop
and recreates the dependencies.task
- WorkFlowLoop task which should be removedpublic void update()
WorkflowInterfaces.IUpdatable
update
in interface WorkflowInterfaces.IUpdatable