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,Object> parameters,
List<org.mule.runtime.core.internal.exception.EnrichedErrorMapping> errorMappings,
org.mule.runtime.core.api.extension.ExtensionManager extensionManager,
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.EnrichedErrorMapping> |
getErrorMappings() |
protected List<org.mule.runtime.core.api.processor.Processor> |
getOwnedMessageProcessors() |
Map<String,String> |
getProperties(Map<String,Object> parameters) |
void |
initialise() |
org.mule.runtime.core.api.event.CoreEvent |
process(org.mule.runtime.core.api.event.CoreEvent event) |
void |
setFeatureFlaggingService(org.mule.runtime.api.config.FeatureFlaggingService featureFlaggingService) |
void |
setMessageProcessors(List<org.mule.runtime.core.api.processor.Processor> processors)
Configure the nested
Processor's of the XML SDK operation. |
void |
start() |
void |
stop() |
getOwnedObjectsgetMuleContext, setMuleContextgetAnnotation, getAnnotations, getDslSource, getIdentifier, getLocation, getRepresentation, getRootContainerLocation, initRootContainerName, setAnnotationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProcessingTypepublic ModuleOperationMessageProcessor(Map<String,Object> parameters, List<org.mule.runtime.core.internal.exception.EnrichedErrorMapping> errorMappings, org.mule.runtime.core.api.extension.ExtensionManager extensionManager, org.mule.runtime.api.meta.model.ExtensionModel extensionModel, org.mule.runtime.api.meta.model.operation.OperationModel operationModel)
public 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 of the XML SDK operation.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.EnrichedErrorMapping> getErrorMappings()
getErrorMappings in interface org.mule.runtime.core.internal.exception.ErrorMappingsAware@Inject public void setFeatureFlaggingService(org.mule.runtime.api.config.FeatureFlaggingService featureFlaggingService)
Copyright © 2003–2025 MuleSoft, Inc.. All rights reserved.