What triggers the change in DynamicAttribute? How does the rule know to use
AssetID versus AssetOwner for instance?
From: bbarani <bbarani(a)gmail.com>
Sent: Mon, July 19, 2010 2:40:41 PM
Subject: [rules-users] Dynamic attribute in Guvnor
We have a scenario as below,
Here is what we want to achieve. Let’s say we want to have following rule:
When AssetType = DSTR Then Decision = Granted.
I can have AssetType as static class or attribute in the model. But this may
limit our ability to handle new information. Let’s say now I have rule to
restrict access to a specific metadata asset like:
When AssetID = 8-XXX-1234 and Group<>’HR’ then Decision = Denied.
If we don’t have AssetID, then no one can define that rule until we change
the code. What we really want is if Drools can do something like this:
When DynamicAttribute(“AssetID”) = 8-xxx-1234and Group<>’HR’ then Decision =
Any one has implemented anything similar to this before??
View this message in context:
Sent from the Drools - User mailing list archive at Nabble.com
rules-users mailing list