The name of the process action. Should be unique within a given process instance.
Performs the bulk of the action's business logic. The value returned from
this method (or the resolved value of the Promise returned by this method)
will be assigned to the results
map automatically.
If you return a Promise, dependent actions will not be run until the Promise has resolved. If the Promise rejects or if the execute method throws an Error, the action's retry method will be run. If that method throws or rejects, the entire process will be aborted.
Value (or a Promise that resolves to a value) that will be stored in the results collection passed to other actions through context, and provided as the overall process Promise resolve value.
This method runs if any action of the process fails (even if this action was not previous executed). It provides a cross-cutting way to respond to errors caused by other actions.
The Error that failed the process.
Runs once per process invocation. Can be used to initialize local variables or set up starting conditions.
This method is invoked if the execute method throws or returns a rejected Promise. If this method also throws or rejects (which is the default behavior) then the entire process will be aborted.
The Error raised by the execute method or returned as the rejection reason of that method's Promise.
Rejected promise to abort the process (default behavior). Any other return value will cause the action's execute method to re-run. If a Promise is returned, execute will not run until and unless the promise resolves.
This method is invoked if the action ran but the process was aborted. You can use this opportunity to undo any behaviors performed in the execute method.
This method runs if and when the entire process resolves. It provides a cross-cutting way to respond to the overall success of a complex process.
Encapsulates the business logic for a single action within a multi-step asynchronous process.
action factory method