public class WorkflowIF extends UC4Object implements WorkflowInterfaces.IUpdatable, LifecycleSaveAware
| Constructor and Description |
|---|
WorkflowIF() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFalse(JobPlanTask task)
Adds a task to the
false branch of this IF workflow. |
void |
addFalse(JobPlanTask task,
int pos)
Adds a task to the
false branch of this IF workflow at the specified position. |
void |
addTrue(JobPlanTask task)
Adds a task to the
true branch of this IF workflow. |
void |
addTrue(JobPlanTask task,
int pos)
Adds a task to the
true branch of this IF workflow at the specified position. |
void |
afterSaveObject()
Called after an object is saved.
|
JobPlanAttributes |
attributes()
Returns attributes of this
JobPlan. |
void |
clear()
Removes all tasks from the
true and false branches. |
ConditionsSet |
condition()
Returns the condition of the IF.
|
Iterator<JobPlanTask> |
falseTasksIterator()
Returns an iterator over tasks in the
false branch. |
JobPlanTask |
getEndTask()
Returns the END task of an IF.
|
int |
getNumberOfFalseTasks()
Returns the number of tasks in the
false branch. |
int |
getNumberOfTrueTasks()
Returns the number of tasks in the
true branch. |
String |
getProcess()
Returns the content of the "Process" tab.
|
JobPlanTask |
getStartTask()
Returns the Start Task of an IF.
|
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. |
boolean |
removeTask(JobPlanTask task)
Removes the specified task from the
WorkFLowIF. |
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.
|
SyncList |
syncs()
Returns a
SyncList object which contains sync conditions of this object. |
Iterator<JobPlanTask> |
trueTasksIterator()
Returns an iterator over tasks in the
true branch. |
void |
update()
Update the object (i.e.
|
void |
validate()
Validates the object.
|
ObjectValues |
values() |
docu, getAccess, getIdnr, getModCount, getName, getType, isOldVersion, load, storepublic ObjectValues values()
public XHeader header()
public SyncList syncs()
SyncList object which contains sync conditions of this object.public JobPlanTask getTaskByUserDefinedID(String id)
id - ID of the tasknull if not foundpublic Runtime runtime()
public String getProcess()
public void setProcess(String script)
script - Scriptpublic JobPlanAttributes attributes()
JobPlan.public void addTrue(JobPlanTask task)
true branch of this IF workflow.task - JobPlanTask to addpublic void addTrue(JobPlanTask task, int pos)
true branch of this IF workflow at the specified position.task - JobPlanTask to addpos - Position where the task should be addedpublic boolean removeTask(JobPlanTask task) throws InvalidObjectException
WorkFLowIF.task - WorkFLowIF task which should be removedInvalidObjectException - If the object is not validpublic JobPlanTask getStartTask()
public JobPlanTask getEndTask()
public Rollback rollback()
public void addFalse(JobPlanTask task)
false branch of this IF workflow.task - JobPlanTask to addpublic void addFalse(JobPlanTask task, int pos)
false branch of this IF workflow at the specified position.task - JobPlanTask to addpos - Position where the task should be addedpublic int getNumberOfTrueTasks()
true branch.truepublic int getNumberOfFalseTasks()
false branch.falsepublic Iterator<JobPlanTask> trueTasksIterator()
true branch.true branch.public Iterator<JobPlanTask> falseTasksIterator()
false branch.false branch.public ConditionsSet condition()
public void clear()
true and false branches.public boolean isExecutable()
UC4Objecttrue if this Object can be executed.isExecutable in class UC4Objectpublic void validate()
throws InvalidObjectException
UC4ObjectInvalidObjectException is thrown.validate in class UC4ObjectInvalidObjectException - If the object is not validpublic void update()
WorkflowInterfaces.IUpdatableupdate in interface WorkflowInterfaces.IUpdatablepublic void afterSaveObject()
LifecycleSaveAwareafterSaveObject in interface LifecycleSaveAwareCopyright © 2021. All rights reserved.