I am trying to find a way to somehow capture events that do not match any rule in any given event bus. No luck so far.
So I thought I should try creating explict rules to achieve the same.
I have the below pattern which works if all 3 values branchPlant, marketCode & sourceInstance do not match.
{
"detail-type": ["ShipConfirmation"],
"detail": {
"Header": {
"branchPlant": [{
"anything-but": ["6480999"]
}],
"marketCode": [{
"anything-but": ["PHL"]
}],
"sourceInstance": [{
"anything-but": ["ShipConfirmation"]
}]
}
}
}
However, I want the rule to be triggered if any one of them don't match. Is there a way to implement an OR condition like solution here?