com.evolveum.midpoint.task.api
Enum TaskExecutionStatus

java.lang.Object
  extended by java.lang.Enum<TaskExecutionStatus>
      extended by com.evolveum.midpoint.task.api.TaskExecutionStatus
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TaskExecutionStatus>

public enum TaskExecutionStatus
extends java.lang.Enum<TaskExecutionStatus>

Task execution status. Execution status provides information about the task overall high-level execution state. It tells whether the task is running/runnable, waits for something or is done.

Author:
Radovan Semancik

Enum Constant Summary
CLOSED
          The task is done.
RUNNING
          The task is running or is ready to be executed.
WAITING
          The IDM system is waiting while the task is being executed on an external node (e.g.
 
Method Summary
static TaskExecutionStatus fromTaskType(TaskExecutionStatusType executionStatus)
           
 TaskExecutionStatusType toTaskType()
           
static TaskExecutionStatus valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TaskExecutionStatus[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

RUNNING

public static final TaskExecutionStatus RUNNING
The task is running or is ready to be executed. This state implies that the task is being actively executed by IDM nodes, e.g. there is a thread on one of the IDM nodes that executes the task or the system needs to allocate such thread.


WAITING

public static final TaskExecutionStatus WAITING
The IDM system is waiting while the task is being executed on an external node (e.g. external workflow engine) or is waiting for some kind of external signal (e.g. approval in internal workflow). The task may be running on external node or blocked on IDM node. One way or another, there is no point in allocating a thread to run this task. Other task properties provide more information about the actual "business" state of the task.


CLOSED

public static final TaskExecutionStatus CLOSED
The task is done. No other changes or progress will happen. The task in this state is considered immutable and the only things that can happen to it is a delete by a cleanup code.

Method Detail

values

public static TaskExecutionStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (TaskExecutionStatus c : TaskExecutionStatus.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TaskExecutionStatus valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

fromTaskType

public static TaskExecutionStatus fromTaskType(TaskExecutionStatusType executionStatus)

toTaskType

public TaskExecutionStatusType toTaskType()


Copyright © 2011 evolveum. All Rights Reserved.