Class MetadataPropertyValueRetriever
java.lang.Object
io.axoniq.framework.workflow.runtime.association.MetadataPropertyValueRetriever
- All Implemented Interfaces:
ValueRetriever
Retrieves the value based on a metadata property.
- Since:
- 5.4.0
- Author:
- Simon Zambrovski
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMetadataPropertyValueRetriever(String metadataPropertyName) Constructs a new instance reading a specified metadata property. -
Method Summary
Modifier and TypeMethodDescriptionapply(EventMessage eventMessage, ProcessingContext processingContext) Retrieves association value from the event message.static ValueRetrievermetadataProperty(String metadataPropertyName) Creates a value retriever based on the given metadata property.path()Returns the source-specific path used in the serialized association form.Returns the qualifier used in the serialized association form.
-
Field Details
-
QUALIFIER
Qualifier for the association schema.- See Also:
-
-
Constructor Details
-
MetadataPropertyValueRetriever
Constructs a new instance reading a specified metadata property.- Parameters:
metadataPropertyName- property to read from the message metadata.
-
-
Method Details
-
metadataProperty
Creates a value retriever based on the given metadata property.- Parameters:
metadataPropertyName- property to read from the message metadata.- 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
-