Package com.uc4.api

Class Task

All Implemented Interfaces:
HasAlias

public class Task extends AbstractTask
This class contains a description of a single task in the ActivityList.
  • Field Details

    • priority

      protected int priority
    • processId

      protected String processId
    • cpuTime

      protected float cpuTime
    • consumption

      protected int consumption
    • processorRunID

      protected int processorRunID
    • hirarchicalParent

      protected int hirarchicalParent
    • modificationFlag

      protected String modificationFlag
    • processorTask

      protected boolean processorTask
    • zduVersion

      protected String zduVersion
    • statistics

      protected boolean statistics
    • estimatedEndTime

      protected DateTime estimatedEndTime
  • Constructor Details

  • Method Details

    • isProcessorTask

      public boolean isProcessorTask()
      Returns true if this task is a processor task.
      Returns:
      Is processor?
    • getModificationFlag

      public 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 String getProcessId()
      Returns the process identification on OS level during execution.
      Returns:
      Process ID
    • getStatusWithinParentText

      public final 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 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 String getUser()
      Deprecated.
      use getUserName() instead
      Returns the name of the User object of the person who has started the task.
      Returns:
      UC4 User
    • equals

      public boolean equals(Object other)
      Two tasks are equal if their RunID is equal.
      Overrides:
      equals in class Object
      Parameters:
      other - Task
      Returns:
      true if two tasks have the same RundID, false otherwise
    • hashCode

      public int hashCode()
      The RunID of a task is used as hash code.
      Overrides:
      hashCode in class Object
      Returns:
      RunID
    • toString

      public String toString()
      Returns a string which contains the name and the RunID of this task.
      Overrides:
      toString in class AbstractTask
      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