how do I tell a rule to loop through a collection of objects that are maintained within an envelope object
I want the rule to extract the Context from the Request (maybe a function or variable) and then loop through the Context list doing a compare on the key and value. Any help would be greatly appreciated/
The tree mode feature in 11 sounds like it would most fit this. With this, you could write expressions like:
Request/Context.key == "foo" &&
Request/Context.value == "bar"
Where the / indicates a one-to-many relationship.
There are more examples of this in the OBR User's Guide.