<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:tahoma,new york,times,serif;font-size:10pt"><div>What triggers the change in DynamicAttribute? How does the rule know to use AssetID versus AssetOwner for instance?<br><br>Earnie!<br></div><div style="font-family: tahoma,new york,times,serif; font-size: 10pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> bbarani <bbarani@gmail.com><br><b><span style="font-weight: bold;">To:</span></b> rules-users@lists.jboss.org<br><b><span style="font-weight: bold;">Sent:</span></b> Mon, July 19, 2010 2:40:41 PM<br><b><span style="font-weight: bold;">Subject:</span></b> [rules-users] Dynamic attribute in Guvnor<br></font><br>
<br>Hi,<br><br>We have a scenario as below, <br><br>Here is what we want to achieve. Let’s say we want to have following rule:<br><br>When AssetType = DSTR Then Decision = Granted. <br><br>I can have AssetType as static class or attribute in the model. But this may<br>limit our ability to handle new information. Let’s say now I have rule to<br>restrict access to a specific metadata asset like:<br><br>When AssetID = 8-XXX-1234 and Group<>’HR’ then Decision = Denied.<br><br>If we don’t have AssetID, then no one can define that rule until we change<br>the code. What we really want is if Drools can do something like this:<br><br>When DynamicAttribute(“AssetID”) = 8-xxx-1234and Group<>’HR’ then Decision =<br>Denied.<br><br>Any one has implemented anything similar to this before??<br><br>Thanks,<br>BB<br><br>-- <br><span>View this message in context: <a target="_blank"
href="http://drools-java-rules-engine.46999.n3.nabble.com/Dynamic-attribute-in-Guvnor-tp979262p979262.html">http://drools-java-rules-engine.46999.n3.nabble.com/Dynamic-attribute-in-Guvnor-tp979262p979262.html</a></span><br>Sent from the Drools - User mailing list archive at <a target="_blank" href="http://Nabble.com">Nabble.com</a>.<br><br>_______________________________________________<br>rules-users mailing list<br><a ymailto="mailto:rules-users@lists.jboss.org" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></div></div>
</div></body></html>