Using a global variable to reference the resultset
When we configure a decision service, we specify one or more facts that we want the decision service to watch (that is, AuctionItem
in the previous example); these are often referred to as the resultset.
Many of our rules within the ruleset will require us to update the resultset. For example, every time we evaluate a bid, we will need to update the AuctionItem
fact accordingly, either to record a bid as the new winning bid or add it to the bid history as a failed bid.
When a rule is fired, the action block is only able to operate on those facts contained within its local scope, which are those facts contained in the fact set row for that activation. Or put more simply, the rule can only execute ...
Get Oracle SOA Suite 11g R1 Developer's Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.