Class EventTransformation.PredicateFromStep

java.lang.Object
io.axoniq.framework.messaging.transformation.events.EventTransformation.PredicateFromStep
Enclosing interface:
EventTransformation

public static final class EventTransformation.PredicateFromStep extends Object
Continuation of EventTransformation.from(Predicate); optionally restricts the predicate match to a set of declared from type names before to(...) is supplied.
  • Method Details

    • declaringFromTypes

      public EventTransformation.ToStep declaringFromTypes(QualifiedName... declaredFromTypes)
      Restrict the predicate match to events whose QualifiedName is one of the given types. The predicate is then evaluated only against those types, never against any other event.

      The declared names double as the source types that widen read criteria when sourcing entities (see the class-level documentation): list every type this transformation rewrites, otherwise a read for the to type is not widened to the omitted ones and entities miss those events.

      Parameters:
      declaredFromTypes - the from type names to match; at least one is required
      Returns:
      a builder awaiting to(...)
      Throws:
      IllegalArgumentException - if declaredFromTypes is empty
    • to

      Declare the to identity, leaving the predicate match unrestricted.
      Parameters:
      target - the to identity
      Returns:
      a builder awaiting transform(...)