HI
I don’t know if this is possible to achieve or even if it understandable, I have tried a great number of different solutions, but I fell entirely lost in this case. I have tried with if nodes etc which i have attached but most of it is faulty
I am trying to make a quite complex routing by having an incoming that should get validated against another json and then be routed via the if node
“Example1”
I want the incoming json that contains an array of a number of subitems get validated as following
Example 1
“inEvent”.“topic”.“Id”= “[policynode].[topic.id]”
and
“inEvent”.“location”.“Id”= “[policynode].[location.id]”
and
“contextData”.“euqipment"id”=" “[policynode].[equipment.id]”
and
“count” “contextData”.“euqipment"id” >= “[policynode].[instances]”
If all conditions are met then it is “true”
“Example2”
I want to validate if a number value in the inEvent is eqaul or grater than the “policyData”
“inEvent”.“topic”.“Id”= “[policynode].[topic.id]”
and
“inEvent”.“location”.“Id”= “[policynode].[location.id]”
and
“contextData”.“enviroment”.“winds”.“speed”>= “[policynode].[wind"speed]”
“Example3”
Same as exmaple 2 but with other proporties
“inEvent”.“topic”.“Id”= “[policynode].[topic.id]”
and
“inEvent”.“location”.“Id”= “[policynode].[location.id]”
and
“contextData”.“enviroment”.“current”.“speed”>= "[policynode].(value2)
“exmaple” 4
“inEvent”.“topic”.“Id”= “[policynode].[topic.id]”
and
“inEvent”.“location”.“Id”= “[policynode].[location.id]”
and
“contextData”.“euqipment”.“id”=" “[policynode].[equipment.id]”
and
[
where instance with 1 id 1 is eual to the instance with id 1 in the policy
]