This discussion is archived
1 Reply Latest reply: Jun 24, 2009 6:03 PM by 493308 RSS

collections and 11g business rules

689609 Newbie
Currently Being Moderated
how do I tell a rule to loop through a collection of objects that are maintained within an envelope object

String ID;
List Context;

Context {
string key
string value

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/
  • 1. Re: collections and 11g business rules
    493308 Newbie
    Currently Being Moderated
    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.


  • Correct Answers - 10 points
  • Helpful Answers - 5 points