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