From: bbarani <bbarani@gmail.com>
To: rules-users@lists.jboss.org
Sent: Mon, July 19, 2010 2:40:41 PM
Subject: [rules-users] Dynamic attribute in Guvnor
Hi,
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 =
Denied.
Any one has implemented anything similar to this before??
Thanks,
BB
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Dynamic-attribute-in-Guvnor-tp979262p979262.htmlSent from the Drools - User mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/rules-users