Class EventTransformation.PredicateFromStep
java.lang.Object
io.axoniq.framework.messaging.transformation.events.EventTransformation.PredicateFromStep
- Enclosing interface:
EventTransformation
Continuation of
EventTransformation.from(Predicate); optionally restricts the predicate match to a set of declared
from type names before to(...) is supplied.-
Method Summary
Modifier and TypeMethodDescriptiondeclaringFromTypes(QualifiedName... declaredFromTypes) Restrict the predicate match to events whoseQualifiedNameis one of the given types.to(MessageType target) Declare thetoidentity, leaving the predicate match unrestricted.
-
Method Details
-
declaringFromTypes
Restrict the predicate match to events whoseQualifiedNameis 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
totype is not widened to the omitted ones and entities miss those events.- Parameters:
declaredFromTypes- thefromtype names to match; at least one is required- Returns:
- a builder awaiting
to(...) - Throws:
IllegalArgumentException- ifdeclaredFromTypesis empty
-
to
Declare thetoidentity, leaving the predicate match unrestricted.- Parameters:
target- thetoidentity- Returns:
- a builder awaiting
transform(...)
-