1 Reply Latest reply on Jun 25, 2009 1:03 AM by 493308

    collections and 11g business rules

      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
          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.