public interface SourcePolicy
Processor that executes logic before and after it. It allows to modify the content of the response (if
any) to be sent by a MessageSource| Modifier and Type | Method and Description |
|---|---|
Either<FailureSourcePolicyResult,SuccessSourcePolicyResult> |
process(Event sourceEvent)
Process the source policy chain of processors.
|
Either<FailureSourcePolicyResult,SuccessSourcePolicyResult> process(Event sourceEvent) throws Exception
nextOperation function has the behaviour to be executed
by the next-operation of the chain which may be the next policy in the chain or the flow execution.sourceEvent - the event with the data created from the source message that must be used to execute the source policy.
execute the successful or failure response function of the source.event through the policy chain.ExceptionCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.