python-rule-engine icon indicating copy to clipboard operation
python-rule-engine copied to clipboard

Not possible to write a rule to check a condition on parent and child node both

Open zakerzadeh opened this issue 5 months ago • 2 comments

t's not possile to write a rule which checks on a condition on a node and it's sub-node together dynamically. Here is the example. I want to write a rule which looks at all claims, check for the claims.claimantName == 'john' and claims.exposures.type='liability' and claims.exposure.xyv.type='gfd'.

In other words, all these 3 conditions should satisfy for a given claim.

It should check for all the claims and check their claimantName and exposure.type and exposure.xyv.type of that claim.

sample2.json

zakerzadeh avatar Aug 11 '25 00:08 zakerzadeh

Hey man! Thanks a lot for opening this. Could I ask you to format the JSON a little so I can understand it.

santalvarez avatar Aug 11 '25 14:08 santalvarez

Hey man! Thanks a lot for opening this. Could I ask you to format the JSON a little so I can understand it.

Thanks, I added the sample json document as an attachment

zakerzadeh avatar Aug 11 '25 15:08 zakerzadeh