public class WorkflowLoop extends UC4Object implements 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.
|
String |
getProcess()
Returns the content of the "Process" tab.
|
JobPlanTask |
getStartTask()
Returns the Start Task of this FOR EACH workflow.
|
JobPlanTask |
getTaskByUserDefinedID(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. |
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(String script)
Sets the content of the "Process" tab.
|
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, storeequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic 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 Iterator<JobPlanTask> iterator()
iterator in interface Iterable<JobPlanTask>public void clear()
public int size()
public JobPlanTask getTaskByUserDefinedID(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 String getProcess()
public void setProcess(String script)
script - Scriptpublic JobPlanAttributes attributes()
JobPlan.public boolean isExecutable()
UC4Objecttrue if this Object can be executed.isExecutable in class UC4Objectpublic void afterSaveObject()
LifecycleSaveAwareafterSaveObject in interface LifecycleSaveAwarepublic void validate()
throws InvalidObjectException
UC4ObjectInvalidObjectException is thrown.validate in class UC4ObjectInvalidObjectException - If the object is not validpublic 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.IUpdatableupdate in interface WorkflowInterfaces.IUpdatableCopyright © 2021. All rights reserved.