public interface ChildContextChain
extends org.mule.runtime.extension.api.runtime.route.Chain
DefaultEventContext.child(org.mule.runtime.core.privileged.event.BaseEventContext, java.util.Optional<org.mule.runtime.api.component.location.ComponentLocation>))| Modifier and Type | Method and Description |
|---|---|
void |
process(String correlationId,
Consumer<org.mule.runtime.extension.api.runtime.operation.Result> onSuccess,
BiConsumer<Throwable,org.mule.runtime.extension.api.runtime.operation.Result> onError)
Same as
Chain.process(Consumer, BiConsumer), setting the correlation id within the execution as the the one passed. |
void process(String correlationId, Consumer<org.mule.runtime.extension.api.runtime.operation.Result> onSuccess, BiConsumer<Throwable,org.mule.runtime.extension.api.runtime.operation.Result> onError)
Chain.process(Consumer, BiConsumer), setting the correlation id within the execution as the the one passed.
The correlation id will return to the previous values for the components following the chain execution.
correlationId - the correlation id to be used in the event within the execution of the chainonSuccess - the callback to be executed when a successful execution is completed by the ChainonError - the callback to be executed when an error occurs during the execution of the Chain componentsCopyright © 2003–2022 MuleSoft, Inc.. All rights reserved.