public static class JobPlanMonitor.Task
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DELETED_LINE_STATE
Constant for lines that have been deleted.
|
Modifier | Constructor and Description |
---|---|
protected |
Task(org.w3c.dom.Element task,
ConnectionAttributes session,
JobPlanMonitor parent) |
protected |
Task(org.w3c.dom.Element task,
ConnectionAttributes session,
JobPlanMonitor parent,
com.uc4.util.XMLDocument doc) |
Modifier and Type | Method and Description |
---|---|
void |
addPredecessor(JobPlanMonitor.Task pre,
TaskState state)
Adds a dependency to this monitor task.
|
TaskCalendar |
calendar()
Gets the calendar condition of this JobPlan task.
|
JobPlanExternal |
external()
Gets properties for external dependencies.
|
com.uc4.communication.requests.JobPlanMonitor.JobPlanMonitorForEach |
forEach()
Gets LoopDataSource property of this JobPlanMonitor task.
|
java.lang.String |
getAlias()
Returns the Alias of the task.
|
java.lang.String |
getCaption()
Returns the caption of the task.
|
java.lang.String |
getComponentName()
Returns the Component Name of the task.
|
int |
getEstimatedRunTime()
Returns the estimated runtime in seconds.
|
java.lang.Long |
getEstimatedStartTime()
Gets the estimated start time in millis for when the entry
is supposed to be executed.
|
UC4ObjectName |
getExternalParent()
Returns the name of the external parent or an empty UC4ObjectName.
|
java.lang.String |
getLnr()
Returns the activation order number of this task.
|
java.lang.String |
getName() |
java.lang.String |
getObjectSubType()
Returns the SubType of the Object.
|
java.lang.String |
getObjectType()
Returns the type of the Object.
|
protected JobPlanMonitor |
getParent()
Return the
JobPlanMonitor instance |
java.lang.String |
getParentVariable(java.lang.String variableName)
Returns the value of a given parent variable.
|
TaskState |
getPredecessorState(JobPlanMonitor.Task t)
Returns the status of the predecessor.
|
int |
getRunID() |
Time |
getStartTime() |
DateTime |
getStartTimestamp() |
java.lang.String |
getStatus()
Returns the 1st status value of this task as String which is independent on the logon language.
|
java.lang.String |
getStatus2()
Returns the 2nd status value (nullable) of this task as String which is independent on the logon language.
|
int |
getStatusCode()
Returns the status of the task as integer.
|
java.lang.String |
getStatusText()
Returns a description of the status.
|
java.lang.String |
getTaskID()
Returns a unique ID of a task.
|
java.lang.String |
getTaskMonitorType()
Method to fetch the task Monitor type.
|
java.lang.String |
getTrafficLight() |
java.lang.String |
getVariable(java.lang.String variableName)
Returns the value of a given variable.
|
int |
getX()
Returns the position of this task.
|
int |
getY()
Returns the position of this task.
|
boolean |
hasComment() |
boolean |
isExternal()
Returns
true if this task is an external dependency. |
java.util.Iterator<java.lang.String> |
parentVariableNameIterator()
Returns an iterator over parent variable names.
|
ConditionsSet |
postConditions()
Gets postconditions of this JobPlanMonitor task.
|
ConditionsSet |
preConditions()
Gets preconditions of this JobPlanMonitor task.
|
java.util.Iterator<JobPlanMonitor.Task> |
predecessors() |
int |
predecessorsWithDottedLines() |
JobPlanMonitor.JobPlanMonitorRuntime |
runtime()
Gets the runtime settings of this JobPlanMonitor task.
|
void |
setEstimatedRunTime(int ert)
Sets the estimated runtime in seconds for the entry.
|
void |
setEstimatedStartTime(java.lang.Long estimatedStartTime)
Sets the estimated start time in millis for when the entry
is supposed to be executed.
|
java.lang.String |
toString() |
java.util.Iterator<java.lang.String> |
variableNameIterator()
Returns an iterator over variable names.
|
public static final int DELETED_LINE_STATE
protected Task(org.w3c.dom.Element task, ConnectionAttributes session, JobPlanMonitor parent, com.uc4.util.XMLDocument doc)
protected Task(org.w3c.dom.Element task, ConnectionAttributes session, JobPlanMonitor parent)
protected JobPlanMonitor getParent()
JobPlanMonitor
instancepublic java.lang.String getLnr()
public UC4ObjectName getExternalParent()
public java.lang.String getObjectType()
public Time getStartTime()
public DateTime getStartTimestamp()
public java.lang.String getName()
public int getRunID()
-1
if not available.public java.lang.String getTaskID()
public java.lang.String getStatus()
AbstractTask.getStatusCode()
public java.lang.String getStatus2()
AbstractTask.getStatusCode()
public int predecessorsWithDottedLines()
public void addPredecessor(JobPlanMonitor.Task pre, TaskState state)
pre
- Predecessor taskstate
- When or null
if no status should be setpublic java.util.Iterator<JobPlanMonitor.Task> predecessors()
public TaskState getPredecessorState(JobPlanMonitor.Task t)
t
- predecessor taskpublic int getX()
public int getY()
public int getEstimatedRunTime()
public void setEstimatedRunTime(int ert)
ert
- The new estimated runtime in seconds.public java.lang.Long getEstimatedStartTime()
public void setEstimatedStartTime(java.lang.Long estimatedStartTime)
estimatedStartTime
- The estimated start time in UTC millis.public java.lang.String getObjectSubType()
public java.lang.String getTrafficLight()
public java.lang.String getStatusText()
AbstractTask.getStatusCode()
public int getStatusCode()
-1
in case of an error. Possible return values are described in the status: AbstractTask.getStatusCode()
public java.lang.String getCaption()
public java.lang.String getAlias()
public java.lang.String getComponentName()
public java.util.Iterator<java.lang.String> variableNameIterator()
java.lang.String
public java.lang.String getVariable(java.lang.String variableName)
null
if the variable name does not exist.variableName
- variable namenull
if the variable does not existpublic java.util.Iterator<java.lang.String> parentVariableNameIterator()
java.lang.String
public java.lang.String getParentVariable(java.lang.String variableName)
null
if the variable name does not exist.variableName
- parent variable namenull
if the variable does not existpublic boolean hasComment()
true
if this task item has an attached comment.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getTaskMonitorType()
public boolean isExternal()
true
if this task is an external dependency.public TaskCalendar calendar()
IllegalStateException
is
thrown.public JobPlanExternal external()
IllegalStateException
is thrown.public JobPlanMonitor.JobPlanMonitorRuntime runtime()
IllegalStateException
is thrown.public ConditionsSet preConditions()
public ConditionsSet postConditions()
public com.uc4.communication.requests.JobPlanMonitor.JobPlanMonitorForEach forEach()