public class OperationPolicyProcessor extends Object implements Processor
Processor. Currently the only kind of
Processor supported is an operation from the SDK.
In order for this class to be able to execute a policy it requires an PolicyChain with the content of the policy. Such
policy may have an PolicyNextActionMessageProcessor which will be the one used to execute the provided
Processor.
This class enforces the scoping of variables between the actual behaviour and the policy that may be applied to it. To enforce
such scoping of variables it uses PolicyStateHandler so the last Event modified by the policy behaviour can be
stored and retrieve for later usages. It also uses PolicyEventConverter as a helper class to convert an Event
from the policy to the next operation Event or from the next operation result to the Event that must continue
the execution of the policy.
ReactiveProcessor.ProcessingType| Constructor and Description |
|---|
OperationPolicyProcessor(Policy policy,
PolicyStateHandler policyStateHandler,
Processor nextProcessor) |
| Modifier and Type | Method and Description |
|---|---|
Event |
process(Event operationEvent)
Process the policy chain of processors.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProcessingTypepublic OperationPolicyProcessor(Policy policy, PolicyStateHandler policyStateHandler, Processor nextProcessor)
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.