public class TaskState extends AbstractEnum
If a new task is added to the task queue the task's state will be set to
NEW. If a task is fetched from the queue it's state will be set to
ACTIVE to indicate that the task is currently being processed. The
processor itself should set the task's state to DONE ifthe task was
processed sucessfully or ERROR if the task failed.
If an active task is added to ther queue an exception will be raised. It is
possible to add tasks that are done (have the DONE-state) to run
them once again.
Copyright 2004 SAP AG
| Modifier and Type | Field and Description |
|---|---|
static TaskState |
ACTIVE
A task fetched from the task queue is set to this state by the task queue
service.
|
static TaskState |
DONE
A processor that sucessfully finished the task sets this state.
|
static TaskState |
ERROR
A processor that failed to execute this tasks sets this state.
|
static TaskState |
NEW
A task added to the task queue is set to this state.
|
description, m_code| Modifier and Type | Method and Description |
|---|---|
static TaskState |
getTaskState(int state)
Converts a task state string representation to a task state object
|
int |
getValue()
Gets the value attribute of the TaskState object
|
String |
toString()
Overrides java.lan.Object.toString
|
compare, equals, hashCode, map2Old_Internalpublic static final TaskState NEW
public static final TaskState ACTIVE
ITaskQueueReader.get(),
ITaskQueue.get()public static final TaskState ERROR
public static final TaskState DONE
public int getValue()
getValue in class AbstractEnumpublic String toString()
toString in class AbstractEnumpublic static TaskState getTaskState(int state)
state - Description of the Parameternull if this state is unknown| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2021 SAP SE Complete Copyright Notice