Package com.uc4.api.objects
Class JobPlanTask
java.lang.Object
com.uc4.api.objects.JobPlanTask
- All Implemented Interfaces:
ITaskItem
Task in the JobPlan.
-
Constructor Summary
ConstructorsConstructorDescriptionJobPlanTask
(com.uc4.util.XMLDocument doc, Element task, ConnectionAttributes session) Constructs aJobPlanTask
from the specified XML document. -
Method Summary
Modifier and TypeMethodDescriptioncalendar()
Gets the calendar condition of this JobPlan task.Deprecated.use the method general() insteadvoid
cloneProperties
(JobPlanTask toClone) Creates a deep copy of all task properties of the given task for this task, except the task values (prompts and variables).void
clonePropertiesAndTaskValues
(JobPlanTask toClone) Creates a deep copy of all task properties of the given task for this task, including the task values (prompts and variables).copy()
Creates a copy of this task with only the properties set.Creates a copy of this task, inclusive of TaskValues (Variables and PromptSets).Gets the dependencies of this JobPlan task.earliest()
Gets the earliest start time settings of this JobPlan task.external()
Gets properties for external dependencies.general()
This methdo provides access to the "General" tab of a ProcessFlow task.Returns the hostName for the JobPlan task if exist otherwise will return nullgetIdnr()
Returns the ID of thisor ScheduleTask
task.int
getLnr()
Returns number containing the order of activation.Returns the Job type of this RA task.Gets the object Subtype of this RA task.Gets the object Subtype of this task.Return the Task IconGets the name of this JobPlan task.Return the Title of the TaskReturn the Task Title if available else the name of the task objectgetType()
Returns the object type of this task.Returns the user defined ID of this task ornull
if not set.int
getX()
Returns the column number of this JobPlan task.int
getY()
Returns the row number of this JobPlan task.boolean
boolean
protected boolean
isAdded()
boolean
Returnstrue
if this task is an external dependency.boolean
Return the status of the taskThis method provides access to the "Post-Conditions" of a JobPlan task.This method provides access to the "Pre-Conditions" of a JobPlan task.raPanel()
If this task is an RA solution and the Workflow has been saved and reopened this method can be used to override RA panel values.runtime()
Gets the runtime settings of this JobPlan task.protected void
setAdded
(boolean added) void
Do not use - only for testing! Sets this task to type EXTERNALprotected void
protected void
setLnr
(int lnr) protected void
setTaskName
(String taskName) protected void
void
setUserDefinedID
(String userDefinedID) Sets the user defined task ID.void
setX
(int x) Sets the column number of this task.void
setY
(int y) Sets the row number of this task.toString()
values()
Provides access to the values and PromptSets of a Schedule or Workflow task.
-
Constructor Details
-
JobPlanTask
Constructs aJobPlanTask
from the specified XML document. Internal use only.- Parameters:
doc
- XML documenttask
- Task elementsession
- Session info
-
-
Method Details
-
store
- Parameters:
doc
- XMLDocumentjobpStruct
- Jobplan structure- Returns:
- Element
-
getIdnr
Description copied from interface:ITaskItem
Returns the ID of thisor ScheduleTask
task. -
setIdnr
-
checkpoint
Deprecated.use the method general() insteadGets the checkpoint settings of this JobPlan task. If this method is called on the START task anIllegalStateException
is thrown.- Returns:
- Checkpoint settings
-
getUserDefinedID
Returns the user defined ID of this task ornull
if not set.- Returns:
- User defined task ID
-
setUserDefinedID
Sets the user defined task ID. This value can later be used to identify this task using the JobPlan.getTaskByUserID() method- Parameters:
userDefinedID
- Any String with should be used to identify the task later
-
general
This methdo provides access to the "General" tab of a ProcessFlow task. If this method is called on the START task anIllegalStateException
is thrown.- Returns:
- General settings
-
values
Description copied from interface:ITaskItem
Provides access to the values and PromptSets of a Schedule or Workflow task. -
raPanel
If this task is an RA solution and the Workflow has been saved and reopened this method can be used to override RA panel values.- Returns:
- Read and Write access to the XML names of the RA panel.
-
preConditions
This method provides access to the "Pre-Conditions" of a JobPlan task.- Returns:
- ConditionSet which contains all Pre-Conditions
-
postConditions
This method provides access to the "Post-Conditions" of a JobPlan task.- Returns:
- ConditionSet which contains all Post-Conditions
-
earliest
Gets the earliest start time settings of this JobPlan task.- Returns:
- Earliest start time settings
-
hasCalendarCondition
public boolean hasCalendarCondition()- Specified by:
hasCalendarCondition
in interfaceITaskItem
- Returns:
- true if this task has a calendar condition.
-
hasRuntimeCondition
public boolean hasRuntimeCondition()- Specified by:
hasRuntimeCondition
in interfaceITaskItem
- Returns:
- true if this task has a runtime condition.
-
calendar
Gets the calendar condition of this JobPlan task. If this method is called on the START or END task anIllegalStateException
is thrown. -
runtime
Gets the runtime settings of this JobPlan task. If this method is called on the START or END task anIllegalStateException
is thrown. -
dependencies
Gets the dependencies of this JobPlan task.- Returns:
- Dependencies
-
getTaskName
Gets the name of this JobPlan task.- Specified by:
getTaskName
in interfaceITaskItem
- Returns:
- Name of the task
-
getType
Description copied from interface:ITaskItem
Returns the object type of this task. -
getSubType
Gets the object Subtype of this task.- Returns:
- Object Subtype
-
getRASubJobType
Gets the object Subtype of this RA task.- Returns:
- Object RaSubtype
-
getRAJobType
Returns the Job type of this RA task.- Returns:
- Object RaJobtype
-
getRaAgentName
- Returns:
- the raAgentName
-
getX
public int getX()Returns the column number of this JobPlan task. The first column starts with 1.- Returns:
- Column number
-
getY
public int getY()Returns the row number of this JobPlan task. The first row starts with 1.- Returns:
- Row number
-
getLnr
public int getLnr()Description copied from interface:ITaskItem
Returns number containing the order of activation. A task with Lnr = 1 is executed first. -
setLnr
protected void setLnr(int lnr) -
setX
public void setX(int x) Sets the column number of this task. The first column starts with 1. When the JobPlan is saved the position of all tasks is checked.- Parameters:
x
- Column number
-
setY
public void setY(int y) Sets the row number of this task. The first row starts with 1. When the JobPlan is saved the position of all tasks is checked.- Parameters:
y
- Row number
-
setTaskName
-
setType
-
setExternal
public void setExternal()Do not use - only for testing! Sets this task to type EXTERNAL -
external
Gets properties for external dependencies. If this method is called and the JobPlan task is not an external dependency anIllegalStateException
is thrown.- Returns:
- Settings for external dependency
-
toString
-
isAdded
protected boolean isAdded() -
setAdded
protected void setAdded(boolean added) -
isExternal
public boolean isExternal()Returnstrue
if this task is an external dependency.- Returns:
- True if this task is an external dependency
-
getHostName
Returns the hostName for the JobPlan task if exist otherwise will return null- Returns:
- UC4HostName if exist for the JobPlanTask
-
getTitleOrName
Return the Task Title if available else the name of the task object- Returns:
- A string representing the title or name
-
getTaskIcon
Return the Task Icon- Returns:
- String representing the taskIcon
-
getTaskTitle
Return the Title of the Task- Returns:
- String representing the job Title
-
isInactive
public boolean isInactive()Return the status of the task- Returns:
- boolean representing the status
-
copy
Creates a copy of this task with only the properties set.- Returns:
- A new task with the properties duplicated from this task.
-
copyWithTaskValues
Creates a copy of this task, inclusive of TaskValues (Variables and PromptSets).- Returns:
- A new task with the properties duplicated from this task.
-
cloneProperties
Creates a deep copy of all task properties of the given task for this task, except the task values (prompts and variables).- Parameters:
toClone
- The task whose properties to clone.
-
clonePropertiesAndTaskValues
Creates a deep copy of all task properties of the given task for this task, including the task values (prompts and variables).- Parameters:
toClone
- The task whose properties and task values to clone.
-