public enum BatchJobInstanceStatus extends Enum<BatchJobInstanceStatus>
BatchJobInstance| Enum Constant and Description |
|---|
CANCELLED
The processed has been stopped and cannot be resumed.
|
EXECUTING
It means that records are flowing through the steps and are being processed
|
FAILED_INPUT
The input phase failed and execution cannot continue
|
FAILED_LOADING
The loading phase failed and execution cannot continue
|
FAILED_ON_COMPLETE
Process records phase completed but an exception was found in the on-complete section
|
FAILED_PROCESS_RECORDS
The process records phase failed
|
LOADING
This means that the input phase is being processed (if present) and that the persistent queues are being loaded
|
STOPPED
The process has been stopped and can be resumed.
|
SUCCESSFUL
The job was successfully executed form end to end
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isExecutable()
Whether this states denotes that the
BatchJobInstance is currently executable. |
boolean |
isFailure()
Whether or not a status is irrevocably associated with an error condition.
|
static BatchJobInstanceStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BatchJobInstanceStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BatchJobInstanceStatus LOADING
public static final BatchJobInstanceStatus FAILED_LOADING
public static final BatchJobInstanceStatus EXECUTING
public static final BatchJobInstanceStatus STOPPED
public static final BatchJobInstanceStatus FAILED_INPUT
public static final BatchJobInstanceStatus FAILED_ON_COMPLETE
public static final BatchJobInstanceStatus FAILED_PROCESS_RECORDS
public static final BatchJobInstanceStatus SUCCESSFUL
public static final BatchJobInstanceStatus CANCELLED
public static BatchJobInstanceStatus[] values()
for (BatchJobInstanceStatus c : BatchJobInstanceStatus.values()) System.out.println(c);
public static BatchJobInstanceStatus 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 boolean isFailure()
false then the job instance doesn't have failures. For example, imagine a job that allows up to 100 record
failures. If ten records fail, then the processing is still going because the upper bound hasn't been reached. However, the
EXECUTING status will return false but the BatchJobInstance has failures neverthelesspublic boolean isExecutable()
BatchJobInstance is currently executable.
Notice that there's a difference between being executable and actually being executedtrue if the owning BatchJobInstance is executable. false otherwiseCopyright © 2006–2024 MuleSoft, Inc.. All rights reserved.