public static enum WaitTaskResumeResult.ErrorReason extends Enum<WaitTaskResumeResult.ErrorReason>
| Enum Constant and Description |
|---|
EVENT_ALREADY_RECEIVED |
PROCESS_INSTANCE_NOT_FOUND |
| Modifier and Type | Method and Description |
|---|---|
String |
getCode()
Returns the error code associated with the error reason.
|
boolean |
isEventAlreadyReceived()
Returns
true if the error reason is EVENT_ALREADY_RECEIVED |
boolean |
isProcessInstanceNotFound()
Returns
true if the error reason is PROCESS_INSTANCE_NOT_FOUND |
static WaitTaskResumeResult.ErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WaitTaskResumeResult.ErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WaitTaskResumeResult.ErrorReason PROCESS_INSTANCE_NOT_FOUND
public static final WaitTaskResumeResult.ErrorReason EVENT_ALREADY_RECEIVED
public static WaitTaskResumeResult.ErrorReason[] values()
for (WaitTaskResumeResult.ErrorReason c : WaitTaskResumeResult.ErrorReason.values()) System.out.println(c);
public static WaitTaskResumeResult.ErrorReason valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final boolean isProcessInstanceNotFound()
true if the error reason is PROCESS_INSTANCE_NOT_FOUNDpublic final boolean isEventAlreadyReceived()
true if the error reason is EVENT_ALREADY_RECEIVEDpublic final String getCode()
This code is returned in the web service of the wait task resumption.