public class AllOperationExecutor extends Object
all operation.
The reason why we have this custom executor is that unlike regular scopes, the all 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 |
|---|
AllOperationExecutor() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(org.mule.runtime.extension.api.runtime.operation.ExecutionContext<org.mule.runtime.api.meta.model.operation.OperationModel> executionContext,
org.mule.runtime.extension.api.runtime.operation.CompletableComponentExecutor.ExecutorCallback callback) |
protected void |
handleValidationErrors(org.mule.runtime.extension.api.runtime.operation.CompletableComponentExecutor.ExecutorCallback callback,
org.mule.runtime.core.privileged.processor.chain.HasMessageProcessors chain,
List<org.mule.runtime.api.message.Error> errors) |
protected void handleValidationErrors(org.mule.runtime.extension.api.runtime.operation.CompletableComponentExecutor.ExecutorCallback callback,
org.mule.runtime.core.privileged.processor.chain.HasMessageProcessors chain,
List<org.mule.runtime.api.message.Error> errors)
public void execute(org.mule.runtime.extension.api.runtime.operation.ExecutionContext<org.mule.runtime.api.meta.model.operation.OperationModel> executionContext,
org.mule.runtime.extension.api.runtime.operation.CompletableComponentExecutor.ExecutorCallback callback)
execute in interface org.mule.runtime.extension.api.runtime.operation.CompletableComponentExecutor<org.mule.runtime.api.meta.model.operation.OperationModel>Copyright © 2023 MuleSoft, Inc.. All rights reserved.