public static class JobPlanMonitor.Task extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DELETED_LINE_STATE
Constant for lines that have been deleted.
|
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.
|
String |
getAlias()
Returns the Alias of the task.
|
String |
getCaption()
Returns the caption of the task.
|
String |
getComponentName()
Returns the Component Name of the task.
|
int |
getEstimatedRunTime()
Returns the estimated runtime in seconds.
|
UC4ObjectName |
getExternalParent()
Returns the name of the external parent or an empty UC4ObjectName.
|
String |
getLnr()
Returns the activation order number of this task.
|
String |
getName() |
String |
getObjectSubType()
Returns the SubType of the Object.
|
String |
getObjectType()
Returns the type of the Object.
|
String |
getParentVariable(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() |
String |
getStatus()
Returns the 1st status value of this task as String which is independent on the logon language.
|
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.
|
String |
getStatusText()
Returns a description of the status.
|
String |
getTaskID()
Returns a unique ID of a task.
|
String |
getTaskMonitorType()
Method to fetch the task Monitor type.
|
String |
getTrafficLight() |
String |
getVariable(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. |
Iterator<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.
|
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.
|
String |
toString() |
Iterator<String> |
variableNameIterator()
Returns an iterator over variable names.
|
public static final int DELETED_LINE_STATE
public String getLnr()
public UC4ObjectName getExternalParent()
public String getObjectType()
public Time getStartTime()
public DateTime getStartTimestamp()
public String getName()
public int getRunID()
-1
if not available.public String getTaskID()
public String getStatus()
AbstractTask.getStatusCode()
public 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 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 String getObjectSubType()
public String getTrafficLight()
public String getStatusText()
AbstractTask.getStatusCode()
public int getStatusCode()
-1
in case of an error. Possible return values are described in the status: AbstractTask.getStatusCode()
public String getCaption()
public String getAlias()
public String getComponentName()
public Iterator<String> variableNameIterator()
java.lang.String
public String getVariable(String variableName)
null
if the variable name does not exist.variableName
- variable namenull
if the variable does not existpublic Iterator<String> parentVariableNameIterator()
java.lang.String
public String getParentVariable(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 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()
Copyright © 2021. All rights reserved.