Package com.uc4.api
Class Task
- java.lang.Object
-
- com.uc4.api.AbstractTask
-
- com.uc4.api.Task
-
- All Implemented Interfaces:
HasAlias
public class Task extends AbstractTask
This class contains a description of a single task in theActivityList.
-
-
Field Summary
Fields Modifier and Type Field Description protected intconsumptionprotected floatcpuTimeprotected DateTimeestimatedEndTimeprotected inthirarchicalParentprotected java.lang.StringmodificationFlagprotected intpriorityprotected java.lang.StringprocessIdprotected intprocessorRunIDprotected booleanprocessorTaskprotected booleanstatisticsprotected java.lang.StringzduVersion-
Fields inherited from class com.uc4.api.AbstractTask
activationTime, alias, archiveKey1, archiveKey2, cauVersion, comment, endTime, host, intAccount, monitoredTask, name, objectName, parentRunID, periodDescription, platform, queue, remoteStatus, returnCode, rollback, runID, runtime, startTime, startType, state, stateIcon, stateWithinParent, statusCode, statusText, type, typeIcon, userId, version
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedTask(ConnectionAttributes session)Task(org.w3c.dom.Element row, ConnectionAttributes session)Constructs a newTaskusing the specified element.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(java.lang.Object other)Two tasks are equal if their RunID is equal.intgetCompareValue()Value to compare at file events console event: eventcounter job/ft: status counter, also indicates which client is deletedintgetConsumption()floatgetCpuTime()Returns the consumed CPU time in seconds.DateTimegetEstimatedEndTime()Returns the Estimated End TimeintgetHirarchicalParent()Returns the RunID of the of hirarchical parent.java.lang.StringgetModificationFlag()Returns the value of the modification flag column.intgetPriority()Returns the priority of the task.java.lang.StringgetProcessId()Returns the process identification on OS level during execution.intgetProcessorRunID()Returns the processor RunID.java.lang.StringgetStatusWithinParentText()Returns the state of the task within his parent task which can be a Workflow of any type: Standard, IF or ForEach.java.lang.StringgetUser()Deprecated.use getUserName() insteadjava.lang.StringgetZDUVersion()inthashCode()The RunID of a task is used as hash code.booleanisProcessorTask()Returnstrueif this task is a processor task.booleanisStatistics()Returns the source of the task if it has been created with the TaskList request.java.lang.StringtoString()Returns a string which contains the name and the RunID of this task.-
Methods inherited from class com.uc4.api.AbstractTask
getActivationTime, getAlias, getArchive1, getArchive2, getArchiveKey1, getArchiveKey2, getCauVersion, getClient, getEndTime, getHost, getIntAccount, getName, getObjectName, getParentRunID, getPeriodDescription, getPlatform, getQueue, getRemoteStatus, getReturnCode, getRunID, getRuntime, getRuntimeInMillis, getStart, getStartTime, getStartType, getStateIcon, getStatus, getStatusCode, getStatusIcon, getStatusText, getTaskClient, getType, getTypeIcon, getUserId, getUserName, getVersion, hasComment, initObjectNameAndAlias, isMonitoredTask, isRollback, setUserInfo
-
-
-
-
Field Detail
-
priority
protected int priority
-
processId
protected java.lang.String processId
-
cpuTime
protected float cpuTime
-
consumption
protected int consumption
-
processorRunID
protected int processorRunID
-
hirarchicalParent
protected int hirarchicalParent
-
modificationFlag
protected java.lang.String modificationFlag
-
processorTask
protected boolean processorTask
-
zduVersion
protected java.lang.String zduVersion
-
statistics
protected boolean statistics
-
estimatedEndTime
protected DateTime estimatedEndTime
-
-
Constructor Detail
-
Task
protected Task(ConnectionAttributes session)
-
Task
public Task(org.w3c.dom.Element row, ConnectionAttributes session)Constructs a newTaskusing the specified element.- Parameters:
row- Elementsession- Session
-
-
Method Detail
-
isProcessorTask
public boolean isProcessorTask()
Returnstrueif this task is a processor task.- Returns:
- Is processor?
-
getModificationFlag
public java.lang.String getModificationFlag()
Returns the value of the modification flag column.- Returns:
- Name of the user who modified a workflow or an empty String.
-
getConsumption
public int getConsumption()
- Returns:
- Consumption which is set for this task
-
getHirarchicalParent
public int getHirarchicalParent()
Returns the RunID of the of hirarchical parent.- Returns:
- Parent RunID
-
getCpuTime
public float getCpuTime()
Returns the consumed CPU time in seconds.- Returns:
- CPU time
-
getPriority
public int getPriority()
Returns the priority of the task.- Returns:
- priority
-
getProcessorRunID
public int getProcessorRunID()
Returns the processor RunID.- Returns:
- processor RunID
-
getProcessId
public java.lang.String getProcessId()
Returns the process identification on OS level during execution.- Returns:
- Process ID
-
getStatusWithinParentText
public final java.lang.String getStatusWithinParentText()
Returns the state of the task within his parent task which can be a Workflow of any type: Standard, IF or ForEach.- Returns:
- A readable translated state as String
-
getZDUVersion
public java.lang.String getZDUVersion()
- Returns:
- Target or Base version
-
isStatistics
public boolean isStatistics()
Returns the source of the task if it has been created with the TaskList request. This request returns a combined view on activities and statistics.- Returns:
- true if the source is from statistics, false if the source of the task is the activity list.
-
getEstimatedEndTime
public DateTime getEstimatedEndTime()
Returns the Estimated End Time- Returns:
- Estimated End Time, a DateTime
-
getUser
@Deprecated public java.lang.String getUser()
Deprecated.use getUserName() insteadReturns the name of the User object of the person who has started the task.- Returns:
- UC4 User
-
equals
public boolean equals(java.lang.Object other)
Two tasks are equal if their RunID is equal.- Overrides:
equalsin classjava.lang.Object- Parameters:
other- Task- Returns:
trueif two tasks have the same RundID,falseotherwise
-
hashCode
public int hashCode()
The RunID of a task is used as hash code.- Overrides:
hashCodein classjava.lang.Object- Returns:
- RunID
-
toString
public java.lang.String toString()
Returns a string which contains the name and the RunID of this task.- Overrides:
toStringin classAbstractTask- Returns:
- Name and RunID of the task.
-
getCompareValue
public int getCompareValue()
Value to compare at file events console event: eventcounter job/ft: status counter, also indicates which client is deleted- Returns:
- compare value
-
-