With Clause

In the with clause of a pattern, you specify a property for each event in the using clause. You cannot use the event payload. Each event type can have one such property defined. The property or properties are used for correlations and subscriptions.

Optionally you can specify an exact match with a property value on the second or subsequent events listed in this clause. The specified property value must not match the value of any other property value in the pattern. Use and to separate each property.

The match is successful only if each event instance that arrives in the Pattern Matcher service occurs in the order specified in the starts with clause.

The first term in the with clause must use correlation. For details on this topic, see With Clause and the Correlation Property for details.

Examples

with a.id and b.id
with a.id and b.id = "some string"