public class AnyOperationExecutor extends Object
any operation.
The reason why we have this custom executor is that unlike regular scopes, the any operation requires
that all processors are executed regardless of their failures, since what we really want is to aggregate
all the validation errors.
However, if one of the nested processors fail with a non validation error, then the execution is aborted and the unexpected error is raised.
If only validation errors are found, a VALIDATION:MULTIPLE error is raised.
| Constructor and Description |
|---|
AnyOperationExecutor() |
| Modifier and Type | Method and Description |
|---|---|
org.reactivestreams.Publisher<Object> |
execute(org.mule.runtime.extension.api.runtime.operation.ExecutionContext<org.mule.runtime.api.meta.model.operation.OperationModel> executionContext) |
protected org.reactivestreams.Publisher<Object> |
handleValidationErrors(org.mule.runtime.core.privileged.processor.chain.HasMessageProcessors chain,
List<org.mule.runtime.api.message.Error> errors) |
protected org.reactivestreams.Publisher<Object> handleValidationErrors(org.mule.runtime.core.privileged.processor.chain.HasMessageProcessors chain, List<org.mule.runtime.api.message.Error> errors)
public org.reactivestreams.Publisher<Object> execute(org.mule.runtime.extension.api.runtime.operation.ExecutionContext<org.mule.runtime.api.meta.model.operation.OperationModel> executionContext)
execute in interface org.mule.runtime.extension.api.runtime.operation.ComponentExecutor<org.mule.runtime.api.meta.model.operation.OperationModel>Copyright © 2023 MuleSoft, Inc.. All rights reserved.