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(java.lang.String name)
Returns the first task in the JobPlan monitor which has the specified object name.
|
java.lang.String |
getProcess()
Returns the content of the "Process" tab.
|
JobPlanTask |
getStartTask()
Returns the START-task of this
JobPlan . |
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. |
protected void |
loadContent(com.uc4.util.XMLDocument doc,
ConnectionAttributes info) |
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(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. |
protected void |
storeContent(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element objectElement,
ConnectionAttributes sessionInfo)
Stores the object specific data under the
objectElement element. |
SyncList |
syncs()
Returns a
SyncList object which contains sync conditions
of this object. |
java.util.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, store
protected void loadContent(com.uc4.util.XMLDocument doc, ConnectionAttributes info)
public ObjectValues values()
protected void setTaskFactory(WorkFlowTaskFactory taskFactory)
JobPlanTask
which may contain additional features.taskFactory
- Task Factorypublic Rollback rollback()
public java.util.Iterator<JobPlanTask> taskIterator()
JobPlanTask
.JobPlanTask
public int taskSize()
JobPlan
.public JobPlanTask getFirstTaskByName(java.lang.String name)
name
- Name of the UC4 objectnull
if not foundpublic JobPlanTask getTaskByUserDefinedID(java.lang.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 java.lang.String getProcess()
public void setProcess(java.lang.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 taskprotected void storeContent(com.uc4.util.XMLDocument doc, org.w3c.dom.Element objectElement, ConnectionAttributes sessionInfo)
UC4Object
objectElement
element.doc
- XML Document, used to create subelementsobjectElement
- the newly created elements are children of the objectElement
elementsessionInfo
- Information about the current sessionpublic void format()
JobPlan
.public void validate() throws java.io.InvalidObjectException
UC4Object
InvalidObjectException
is thrown.public 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()
UC4Object
true
if this Object can be executed.isExecutable
in class UC4Object
public void update()
WorkflowInterfaces.IUpdatable
update
in interface WorkflowInterfaces.IUpdatable
public void afterSaveObject()
LifecycleSaveAware
afterSaveObject
in interface LifecycleSaveAware