com.sap.caf.eu.gp.process.api

Class GPWorkItemStatus

java.lang.Object
  extended by com.sap.caf.eu.gp.process.api.GPWorkItemStatus

public class GPWorkItemStatus
extends Object


Field Summary
static GPWorkItemStatus WORKITEM_STATUS_CANCELLED
          Workitem status.
static GPWorkItemStatus WORKITEM_STATUS_COMPLETED
          Workitem status.
static GPWorkItemStatus WORKITEM_STATUS_COMPLETED_BY_SYSTEM
          Workitem status.
static GPWorkItemStatus WORKITEM_STATUS_DEPRECATED
          Status of the workitem when another use is currently processing it.
static GPWorkItemStatus WORKITEM_STATUS_IN_PROCESS
          Workitem status.
static GPWorkItemStatus WORKITEM_STATUS_INVALID
          Workitem status.
static GPWorkItemStatus WORKITEM_STATUS_OPEN
          Workitem status.
 
Method Summary
 int getCode()
          Get the integer code of this workitem status.
static GPWorkItemStatus getTypeForCode(int code)
          Get the GPWorkItemStatus instance corresponding to a given code.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WORKITEM_STATUS_INVALID

public static final GPWorkItemStatus WORKITEM_STATUS_INVALID
Workitem status.


WORKITEM_STATUS_OPEN

public static final GPWorkItemStatus WORKITEM_STATUS_OPEN
Workitem status.


WORKITEM_STATUS_IN_PROCESS

public static final GPWorkItemStatus WORKITEM_STATUS_IN_PROCESS
Workitem status.


WORKITEM_STATUS_COMPLETED

public static final GPWorkItemStatus WORKITEM_STATUS_COMPLETED
Workitem status.


WORKITEM_STATUS_CANCELLED

public static final GPWorkItemStatus WORKITEM_STATUS_CANCELLED
Workitem status.


WORKITEM_STATUS_COMPLETED_BY_SYSTEM

public static final GPWorkItemStatus WORKITEM_STATUS_COMPLETED_BY_SYSTEM
Workitem status.


WORKITEM_STATUS_DEPRECATED

public static final GPWorkItemStatus WORKITEM_STATUS_DEPRECATED
Status of the workitem when another use is currently processing it.

Method Detail

getCode

public int getCode()
Get the integer code of this workitem status.

Returns:
the code

getTypeForCode

public static GPWorkItemStatus getTypeForCode(int code)
                                       throws IllegalArgumentException
Get the GPWorkItemStatus instance corresponding to a given code.

Parameters:
code - the integer code of a workitem status
Returns:
the GPWorkItemStatus instance
Throws:
IllegalArgumentException - if the given code is not valid


Copyright 2009 SAP AG Complete Copyright Notice