Hello, I cannot make this rule work, I don't know if I making something wrong.
_.when(" #{ ['userTraitService_lifecycle'].?[ id == ['currentCycleGBP'].id ].size() > 0 }")
If I remove the ['currentCycle_GBP'].id and hardcode it with a valid id, it work, also ['currentCycle_GBP'].id is used in another rule with out problems.
But the general idea is:
userTraitService_lifecycle is a list of objects
currentCycle_GBP is a simple object
The general idea for the rule is that, there is at least 1 element with the currentCycle_GBP.id return true
All facts element can be accessed individually but when I put them in one rule it evaluation fails
Hello, I cannot make this rule work, I don't know if I making something wrong.
_.when(" #{ ['userTraitService_lifecycle'].?[ id == ['currentCycleGBP'].id ].size() > 0 }")
If I remove the ['currentCycle_GBP'].id and hardcode it with a valid id, it work, also ['currentCycle_GBP'].id is used in another rule with out problems.
But the general idea is: