public interface Action<T extends BusinessProcessModel>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ERROR_RETURN_CODE
Special return code to be interpreted by the Process Engine.
|
static java.lang.String |
RETRY_RETURN_CODE
Special return code to be interpreted by the Process Engine.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
execute(T process)
Executes this
Action's business logic working on the given BusinessProcessModel. |
default ActionDefinitionContext |
getCurrentActionDefinitionContext()
Retrieves additional information about the executed action
|
java.util.Set<java.lang.String> |
getTransitions()
Accesses all possible return codes of this
Action. |
static final java.lang.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 java.lang.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.java.lang.String execute(T process) throws RetryLaterException, java.lang.Exception
Action's business logic working on the given BusinessProcessModel.process - The process context to work on.java.lang.ExceptionRetryLaterExceptiondefault ActionDefinitionContext getCurrentActionDefinitionContext()
java.util.Set<java.lang.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 © 2018 SAP SE. All Rights Reserved.