public class JobPlan extends UC4Object implements WorkflowInterfaces.IUpdatable, LifecycleSaveAware
| Constructor and Description |
|---|
JobPlan() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTask(JobPlanTask task)
Adds a task to the
JobPlan. |
void |
afterSaveObject()
Called after an object is saved.
|
JobPlanAttributes |
attributes()
Returns attributes of this
JobPlan. |
void |
clear()
Removes all tasks.
|
void |
closeJobPlanTasks(TaskState when)
Connects tasks with the START task if they have to predecessor.
|
Deployment |
deployment()
This method provides access to the deployment tab of a ProcessFlow.
|
void |
format()
Calculates the position of all tasks in this
JobPlan. |
JobPlanTask |
getEndTask()
Returns the END-task of this
JobPlan. |
JobPlanTask |
getFirstTaskByName(String name)
Returns the first task in the JobPlan monitor which has the specified object name.
|
String |
getProcess()
Returns the content of the "Process" tab.
|
JobPlanTask |
getStartTask()
Returns the START-task of this
JobPlan. |
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
JobPlan. |
void |
replaceTask(JobPlanTask oldTask,
JobPlanTask newTask)
Replaces an existing
JobPlanTask. |
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> |
taskIterator()
Returns an iterator over
JobPlanTask. |
int |
taskSize()
Returns the number of tasks in this
JobPlan. |
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 Rollback rollback()
public Iterator<JobPlanTask> taskIterator()
JobPlanTask.JobPlanTaskpublic int taskSize()
JobPlan.public JobPlanTask getFirstTaskByName(String name)
name - Name of the UC4 objectnull if not foundpublic JobPlanTask getTaskByUserDefinedID(String id)
id - ID of the tasknull if not foundpublic void addTask(JobPlanTask task)
JobPlan.task - JobPlan taskpublic boolean removeTask(JobPlanTask task)
JobPlan.task - JobPlan task which should be removedpublic XHeader header()
public SyncList syncs()
SyncList object which contains sync conditions
of this object.public Runtime runtime()
public Deployment deployment()
public String getProcess()
public void setProcess(String script)
script - Scriptpublic JobPlanAttributes attributes()
JobPlan.public JobPlanTask getEndTask()
JobPlan.
A JobPlan always has an END taskpublic JobPlanTask getStartTask()
JobPlan.
A JobPlan always has an START taskpublic void format()
JobPlan.public void validate()
throws InvalidObjectException
UC4ObjectInvalidObjectException is thrown.validate in class UC4ObjectInvalidObjectException - If the object is not validpublic void replaceTask(JobPlanTask oldTask, JobPlanTask newTask)
JobPlanTask.oldTask - JobPlanTask which should be replacednewTask - JobPlanTask which replaces the old taskpublic void closeJobPlanTasks(TaskState when)
when - Statuspublic void clear()
public boolean isExecutable()
UC4Objecttrue if this Object can be executed.isExecutable in class UC4Objectpublic void update()
WorkflowInterfaces.IUpdatableupdate in interface WorkflowInterfaces.IUpdatablepublic void afterSaveObject()
LifecycleSaveAwareafterSaveObject in interface LifecycleSaveAwareCopyright © 2021. All rights reserved.