public interface Action<T extends BusinessProcessModel>
| Modifier and Type | Field and Description |
|---|---|
static String |
ERROR_RETURN_CODE
Special return code to be interpreted by the Process Engine.
|
static String |
RETRY_RETURN_CODE
Special return code to be interpreted by the Process Engine.
|
| Modifier and Type | Method and Description |
|---|---|
String |
execute(T process)
Executes this
Action's business logic working on the given BusinessProcessModel. |
Set<String> |
getTransitions()
Accesses all possible return codes of this
Action. |
static final String RETRY_RETURN_CODE
Action's execute method
returns RETRY_RETURN_CODE it tells the process engine, that it currently is unable to fulfill it's
logic and that execution should be scheduled for a later time. The retry return code can not be overridden
by any transition mapping.static final String ERROR_RETURN_CODE
Action's execute method
returns ERROR_RETURN_CODE it tells the process engine, that an internal error occurred. The process
will be marked accordingly. The default behavior (ending process with error), can be overridden on process
definition level by specifying an onError node to continue with and/or on action level by
specifying a transition for return code error.String execute(T process) throws RetryLaterException, Exception
Action's business logic working on the given BusinessProcessModel.process - The process context to work on.ExceptionRetryLaterExceptionSet<String> getTransitions()
Action. This method is used by the process engine to validate a
process definition. Furthermore it can be used by (graphical) editors to access all return codes which have to
mapped in transitions.ActionCopyright © 2017 SAP SE. All Rights Reserved.