public class Status extends Object
| Modifier and Type | Field and Description |
|---|---|
static Status |
ABORT
Abort the operation
|
protected Message |
message
The emitted message
|
static Status |
PROCEED
Proceed with the operation
|
static String |
STATUS_ABORTED
The aborted status keyword
|
static String |
STATUS_FORWARD
The send message status keyword
|
static String |
STATUS_PROCEED
The proceed status keyword
|
protected String |
statusName
The Status name.
|
protected boolean |
valid
The validity flag
|
| Modifier | Constructor and Description |
|---|---|
protected |
Status(String statusName,
Message message,
boolean validity)
Constructor with name, message and validity.
|
| Modifier and Type | Method and Description |
|---|---|
static Status |
forward(Message message)
Creates an status to request the emission of a new
message.
|
boolean |
isRedirect()
Verify if the status informs of a
redirection (forward status and message is present)
|
public static final String STATUS_ABORTED
public static final String STATUS_PROCEED
public static final String STATUS_FORWARD
public static final Status ABORT
public static final Status PROCEED
protected String statusName
protected Message message
protected boolean valid
public static Status forward(Message message)
message - the messagepublic boolean isRedirect()
Copyright © 2019 state-machine. All rights reserved.