public class JobPlanMonitor extends XMLRequest implements Iterable<JobPlanMonitor.Task>
Modifier and Type | Class and Description |
---|---|
static class |
JobPlanMonitor.JobPlanMonitorExternal
Deprecated.
Do not use it.
|
static class |
JobPlanMonitor.JobPlanMonitorRuntime
Deprecated.
Do not use it.
|
static class |
JobPlanMonitor.Task
Task in the ProcessFlow monitor.
|
Constructor and Description |
---|
JobPlanMonitor(int runID,
boolean active)
Constructs a new
JobPlanMonitor request. |
Modifier and Type | Method and Description |
---|---|
JobPlanMonitor.Task |
getEndTask()
Returns the end task.
|
int |
getEstimatedRunTime()
Returns the estimated runtime in seconds.
|
JobPlanMonitor.Task |
getFirstTaskByName(String name)
Returns the first task in the JobPlan monitor which has the specified object name.
|
int |
getRunID()
returns the RunID of the ProcessFlow.
|
JobPlanMonitor.Task |
getStartTask()
Returns the start task.
|
String |
getSubType()
Returns the SubType of the Workflow.
|
JobPlanMonitor.Task |
getTaskByLnr(String lnr)
Returns the task with the specified activation number.
|
JobPlanMonitor.Task |
getTaskByRunID(int runID)
Returns the task with the specified runID.
|
JobPlanMonitor.Task |
getTaskByRunIDWithType(int runID,
String objectType)
Returns the task with the specified runID and Type.
|
boolean |
isActive()
Returns
true if the monitor was read form the activity window. |
boolean |
isModificationMode()
Returns
true if this instance of the JobPlanMonitor class represents a ProcessFlow which has been opened for modification. |
boolean |
isWrongMonitor()
Returns
true if no workflow monitor data was returned. |
Iterator<JobPlanMonitor.Task> |
iterator() |
void |
setEstimatedRunTime(int ert)
Sets the estimated runtime in seconds for the entry.
|
void |
setIncludeTaskProperties(boolean includeTaskProperties)
If this method is set to true, the properties of task are also returned in the monitor.
|
int |
size()
Returns the number of tasks in the ProcessFlow.
|
Iterator<JobPlanMonitor.Task> |
taskIterator()
Deprecated.
use iterator() instead
|
getAllMessageBoxes, getMessageBox, getRequestID, handleResponse, send, showQuarantineNotification
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public JobPlanMonitor(int runID, boolean active)
JobPlanMonitor
request.runID
- RunIDactive
- true if the monitor should be read from the activity window, false if the statistics should be queriedpublic void setIncludeTaskProperties(boolean includeTaskProperties)
includeTaskProperties
- true to include properties of each task in the response.public boolean isWrongMonitor()
true
if no workflow monitor data was returned.
This can happen for example if the RunID of a Schedule was used.public int size()
public JobPlanMonitor.Task getTaskByRunID(int runID)
runID
- runID of the tasknull
if not foundpublic JobPlanMonitor.Task getTaskByRunIDWithType(int runID, String objectType)
runID
- runID of the taskobjectType
- objectType of the tasknull
if not foundpublic JobPlanMonitor.Task getFirstTaskByName(String name)
name
- Name of the UC4 objectnull
if not foundpublic JobPlanMonitor.Task getTaskByLnr(String lnr)
lnr
- Activation numbernull
if not foundpublic boolean isModificationMode()
true
if this instance of the JobPlanMonitor class represents a ProcessFlow which has been opened for modification.@Deprecated public Iterator<JobPlanMonitor.Task> taskIterator()
JobPlanMonitor.Task
public Iterator<JobPlanMonitor.Task> iterator()
iterator
in interface Iterable<JobPlanMonitor.Task>
public int getRunID()
public JobPlanMonitor.Task getStartTask()
public JobPlanMonitor.Task getEndTask()
public String getSubType()
public int getEstimatedRunTime()
public void setEstimatedRunTime(int ert)
ert
- The estimated runtime.public boolean isActive()
true
if the monitor was read form the activity window.Copyright © 2021. All rights reserved.