Class PayloadPropertyValueRetriever
java.lang.Object
io.axoniq.framework.workflow.runtime.association.PayloadPropertyValueRetriever
- All Implemented Interfaces:
ValueRetriever
Retrieves the value based on a payload property.
- Since:
- 5.4.0
- Author:
- Simon Zambrovski
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPayloadPropertyValueRetriever(String payloadPropertyName) Constructs a new instance reading a specified payload property. -
Method Summary
Modifier and TypeMethodDescriptionapply(EventMessage eventMessage, ProcessingContext processingContext) Retrieves association value from the event message.path()Returns the source-specific path used in the serialized association form.static ValueRetrieverpayloadProperty(String payloadPropertyName) Creates a value retriever based on the given payload property.Returns the qualifier used in the serialized association form.
-
Field Details
-
Constructor Details
-
PayloadPropertyValueRetriever
Constructs a new instance reading a specified payload property.- Parameters:
payloadPropertyName- property to read from the message payload.
-
-
Method Details
-
payloadProperty
Creates a value retriever based on the given payload property.- Parameters:
payloadPropertyName- property to read from the message payload.- Returns:
- value retriever.
-
apply
Description copied from interface:ValueRetrieverRetrieves association value from the event message.- Specified by:
applyin interfaceValueRetriever- Parameters:
eventMessage- event message to retrieve value fromprocessingContext- processing context for retrieving addition resources- Returns:
- retrieved value
-
qualifier
Description copied from interface:ValueRetrieverReturns the qualifier used in the serialized association form.- Specified by:
qualifierin interfaceValueRetriever- Returns:
- qualifier, for example
payloadormetadata
-
path
Description copied from interface:ValueRetrieverReturns the source-specific path used in the serialized association form.- Specified by:
pathin interfaceValueRetriever- Returns:
- source-specific path, such as a payload property or metadata key
-