public class ModuleOperationMessageProcessor
extends org.mule.runtime.core.api.processor.AbstractMessageProcessorOwner
implements org.mule.runtime.core.api.processor.Processor, org.mule.runtime.core.internal.exception.ErrorMappingsAware
CoreEvent.
Both parameter and property could be simple literals or expressions that will be evaluated before passing the new
CoreEvent to the child processors.
Taking the following sample where the current event is processed using ModuleOperationProcessorChain#apply(Publisher),
has a variable under "person" with a value of "stranger!", the result of executing the above processor will be "howdy
stranger!":
locator, logger, muleContextANNOTATION_NAME, LOCATION_KEY, ROOT_CONTAINER_NAME_KEY| Constructor and Description |
|---|
ModuleOperationMessageProcessor(Map<String,String> properties,
Map<String,String> parameters,
org.mule.runtime.api.meta.model.ExtensionModel extensionModel,
org.mule.runtime.api.meta.model.operation.OperationModel operationModel) |
| Modifier and Type | Method and Description |
|---|---|
org.reactivestreams.Publisher<org.mule.runtime.core.api.event.CoreEvent> |
apply(org.reactivestreams.Publisher<org.mule.runtime.core.api.event.CoreEvent> publisher)
Given an
event, it will consume from it ONLY the defined properties and parameters that were set when initializing
this class to provide scoping for the inner list of processors. |
void |
dispose() |
List<org.mule.runtime.core.internal.exception.ErrorMapping> |
getErrorMappings() |
protected List<org.mule.runtime.core.api.processor.Processor> |
getOwnedMessageProcessors() |
void |
initialise() |
org.mule.runtime.core.api.event.CoreEvent |
process(org.mule.runtime.core.api.event.CoreEvent event) |
void |
setAnnotations(Map<QName,Object> newAnnotations) |
void |
setMessageProcessors(List<org.mule.runtime.core.api.processor.Processor> processors)
Configure the nested
Processor's that error handling and transactional behaviour should be applied to. |
void |
start() |
void |
stop() |
getOwnedObjectsgetMuleContext, setMuleContextgetAnnotation, getAnnotations, getDslSource, getIdentifier, getLocation, getRepresentation, getRootContainerLocation, initRootContainerNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProcessingTypepublic org.mule.runtime.core.api.event.CoreEvent process(org.mule.runtime.core.api.event.CoreEvent event)
throws org.mule.runtime.api.exception.MuleException
process in interface org.mule.runtime.core.api.processor.Processororg.mule.runtime.api.exception.MuleExceptionpublic org.reactivestreams.Publisher<org.mule.runtime.core.api.event.CoreEvent> apply(org.reactivestreams.Publisher<org.mule.runtime.core.api.event.CoreEvent> publisher)
event, it will consume from it ONLY the defined properties and parameters that were set when initializing
this class to provide scoping for the inner list of processors.public void setMessageProcessors(List<org.mule.runtime.core.api.processor.Processor> processors)
Processor's that error handling and transactional behaviour should be applied to.processors - public void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableinitialise in class org.mule.runtime.core.api.processor.AbstractMuleObjectOwner<org.mule.runtime.core.api.processor.Processor>org.mule.runtime.api.lifecycle.InitialisationExceptionpublic void dispose()
dispose in interface org.mule.runtime.api.lifecycle.Disposabledispose in class org.mule.runtime.core.api.processor.AbstractMuleObjectOwner<org.mule.runtime.core.api.processor.Processor>public void start()
throws org.mule.runtime.api.exception.MuleException
start in interface org.mule.runtime.api.lifecycle.Startablestart in class org.mule.runtime.core.api.processor.AbstractMuleObjectOwner<org.mule.runtime.core.api.processor.Processor>org.mule.runtime.api.exception.MuleExceptionpublic void stop()
throws org.mule.runtime.api.exception.MuleException
stop in interface org.mule.runtime.api.lifecycle.Stoppablestop in class org.mule.runtime.core.api.processor.AbstractMuleObjectOwner<org.mule.runtime.core.api.processor.Processor>org.mule.runtime.api.exception.MuleExceptionprotected List<org.mule.runtime.core.api.processor.Processor> getOwnedMessageProcessors()
getOwnedMessageProcessors in class org.mule.runtime.core.api.processor.AbstractMessageProcessorOwnerpublic List<org.mule.runtime.core.internal.exception.ErrorMapping> getErrorMappings()
getErrorMappings in interface org.mule.runtime.core.internal.exception.ErrorMappingsAwareCopyright © 2003–2020 MuleSoft, Inc.. All rights reserved.