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.
|
protected com.uc4.api.objects.WorkflowTasks |
createWorkflowTasks(com.uc4.util.XMLDocument doc,
ConnectionAttributes info)
Creates a
WorkflowTasks object which holds the tasks of a workflow. |
java.util.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. |
java.lang.String |
getProcess()
Returns the content of the "Process" tab.
|
JobPlanTask |
getStartTask()
Returns the Start Task of an IF.
|
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. |
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(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. |
SyncList |
syncs()
Returns a
SyncList object which contains sync conditions of this object. |
java.util.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, store
protected void setTaskFactory(WorkFlowTaskFactory taskFactory)
JobPlanTask
which may contain additional features.taskFactory
- Task Factorypublic ObjectValues values()
public XHeader header()
public SyncList syncs()
SyncList
object which contains sync conditions of this object.public JobPlanTask getTaskByUserDefinedID(java.lang.String id)
id
- ID of the tasknull
if not foundpublic Runtime runtime()
public java.lang.String getProcess()
public void setProcess(java.lang.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 java.io.InvalidObjectException
WorkFLowIF
.task
- WorkFLowIF task which should be removedjava.io.InvalidObjectException
- 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.true
public int getNumberOfFalseTasks()
false
branch.false
public java.util.Iterator<JobPlanTask> trueTasksIterator()
true
branch.true
branch.public java.util.Iterator<JobPlanTask> falseTasksIterator()
false
branch.false
branch.public ConditionsSet condition()
public void clear()
true
and false
branches.public boolean isExecutable()
UC4Object
true
if this Object can be executed.isExecutable
in class UC4Object
protected com.uc4.api.objects.WorkflowTasks createWorkflowTasks(com.uc4.util.XMLDocument doc, ConnectionAttributes info)
WorkflowTasks
object which holds the tasks of a workflow.
Sub classes may override this method.doc
- XML Documentinfo
- Connection attributespublic void validate() throws java.io.InvalidObjectException
UC4Object
InvalidObjectException
is thrown.public void update()
WorkflowInterfaces.IUpdatable
update
in interface WorkflowInterfaces.IUpdatable
public void afterSaveObject()
LifecycleSaveAware
afterSaveObject
in interface LifecycleSaveAware