Output - the expected output type from the flow execution.public class SourceExecutionResult<Output> extends Object
| Constructor and Description |
|---|
SourceExecutionResult(Output flowResult,
org.mule.runtime.extension.api.runtime.source.SourceCompletionCallback callback)
Constructor to be called in case the flow-execution is success.
|
SourceExecutionResult(Throwable error,
org.mule.runtime.extension.api.runtime.source.SourceCompletionCallback callback)
Constructor to be called in case the flow-execution ended with error.
|
| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.extension.api.runtime.source.SourceCompletionCallback |
getCompletionCallback()
Returns the completion callback to be called to signal the runtime if execution succeed or an error occurred.
|
org.mule.runtime.api.functional.Either<Output,Throwable> |
getFlowResult() |
public SourceExecutionResult(Output flowResult, org.mule.runtime.extension.api.runtime.source.SourceCompletionCallback callback)
flowResult - callback - public SourceExecutionResult(Throwable error, org.mule.runtime.extension.api.runtime.source.SourceCompletionCallback callback)
error - callback - public org.mule.runtime.api.functional.Either<Output,Throwable> getFlowResult()
Either.public org.mule.runtime.extension.api.runtime.source.SourceCompletionCallback getCompletionCallback()
The runtime will not finish the associated event until SourceCompletionCallback.success()
or SourceCompletionCallback.error(Throwable) are invoked.
Copyright © 2026 MuleSoft, Inc.. All rights reserved.