UTIL_AsyncChain.StepResult
Class
apex
global inherited sharing class UTIL_AsyncChain.StepResultImmutable result object returned by each ChainStep to indicate success or failure. Use the static factory methods to create instances.
Since: 1.0
Example:
apex
UTIL_AsyncChain.StepResult result = UTIL_AsyncChain.succeeded('All records processed');
UTIL_AsyncChain.StepResult failure = UTIL_AsyncChain.failed('Missing required field');Properties
| Property | Description |
|---|---|
| global Object data | Optional payload data returned by the step. |
| global Exception error | The exception that caused the step to fail, if applicable. |
| global String message | Optional human-readable message describing the outcome. |
| global Boolean success | Whether the step completed successfully. |
Property Details
data
apex
global Object dataType: Object
Optional payload data returned by the step.
Since:
error
apex
global Exception errorType: Exception
The exception that caused the step to fail, if applicable.
Since:
message
apex
global String messageType: String
Optional human-readable message describing the outcome.
Since:
success
apex
global Boolean successType: Boolean
Whether the step completed successfully.
Since: