Class EventConditions
java.lang.Object
io.axoniq.framework.workflow.dsl.api.EventConditions
Helper for construction of
EventCondition.- Since:
- 5.4.0
- Author:
- Simon Zambrovski
-
Method Summary
Modifier and TypeMethodDescriptionstatic EventConditionfromQualifiedName(QualifiedName qualifiedName) Constructs an event condition without **message predicate** from the qualified name which matches all messages with the given qualified name.static EventConditionfromQualifiedName(QualifiedName qualifiedName, Associations associations) Constructs an event condition from the qualified name and serialized associations.static ComponentBuilder<EventCondition> Constructs an event condition without **message predicate** for the qualified name represented by the given type.static ComponentBuilder<EventCondition> fromType(Class<?> clazz, Associations associations) Constructs an event condition with serialized associations for the qualified name represented by the given type.static EventConditionnever()Returns event condition which can't be fulfilled ever.static EventConditionnever(QualifiedName qualifiedName) Creates a condition for an event with the given qualified name, which will never match.
-
Method Details
-
fromType
Constructs an event condition without **message predicate** for the qualified name represented by the given type. The resulting event condition will always trigger if the qualified name is matching.- Parameters:
clazz- type of message (message type resolve will use this type to deduce the message type).- Returns:
- condition component builder.
-
fromType
Constructs an event condition with serialized associations for the qualified name represented by the given type.- Parameters:
clazz- type of messageassociations- association constraints in canonical serial form- Returns:
- event condition builder
-
fromQualifiedName
Constructs an event condition without **message predicate** from the qualified name which matches all messages with the given qualified name.- Parameters:
qualifiedName- qualified name.- Returns:
- event condition.
-
fromQualifiedName
public static EventCondition fromQualifiedName(QualifiedName qualifiedName, Associations associations) Constructs an event condition from the qualified name and serialized associations.- Parameters:
qualifiedName- qualified nameassociations- serialized association constraints- Returns:
- event condition
-
never
Returns event condition which can't be fulfilled ever.- Returns:
- a never-condition.
-
never
Creates a condition for an event with the given qualified name, which will never match. (This one is for testing).- Parameters:
qualifiedName- event qualified name.- Returns:
- event condition.
-