Class MetadataPropertyValueRetriever

java.lang.Object
io.axoniq.framework.workflow.runtime.association.MetadataPropertyValueRetriever
All Implemented Interfaces:
ValueRetriever

public class MetadataPropertyValueRetriever extends Object implements ValueRetriever
Retrieves the value based on a metadata property.
Since:
5.4.0
Author:
Simon Zambrovski
  • Field Details

  • Constructor Details

    • MetadataPropertyValueRetriever

      @Internal public MetadataPropertyValueRetriever(String metadataPropertyName)
      Constructs a new instance reading a specified metadata property.
      Parameters:
      metadataPropertyName - property to read from the message metadata.
  • Method Details

    • metadataProperty

      public static ValueRetriever metadataProperty(String metadataPropertyName)
      Creates a value retriever based on the given metadata property.
      Parameters:
      metadataPropertyName - property to read from the message metadata.
      Returns:
      value retriever.
    • apply

      public Object apply(EventMessage eventMessage, ProcessingContext processingContext)
      Description copied from interface: ValueRetriever
      Retrieves association value from the event message.
      Specified by:
      apply in interface ValueRetriever
      Parameters:
      eventMessage - event message to retrieve value from
      processingContext - processing context for retrieving addition resources
      Returns:
      retrieved value
    • qualifier

      public String qualifier()
      Description copied from interface: ValueRetriever
      Returns the qualifier used in the serialized association form.
      Specified by:
      qualifier in interface ValueRetriever
      Returns:
      qualifier, for example payload or metadata
    • path

      public String path()
      Description copied from interface: ValueRetriever
      Returns the source-specific path used in the serialized association form.
      Specified by:
      path in interface ValueRetriever
      Returns:
      source-specific path, such as a payload property or metadata key