[rules-users] "Rule-Id" for a Drools Rule

Michael Anstis michael.anstis at gmail.com
Wed Apr 10 12:00:27 EDT 2013


There is no replacement.

In 6.0 your best approach would be to write a class that @Observes
ResourceRenamedEvent and bundle it into the WAR.

The event contains "old path" and "new path".





On 10 April 2013 16:04, abhinay_agarwal <abhinay_agarwal at infosys.com> wrote:

> hi mike,
>
> Here is a scenario,
>
> Lets say I have rules named "rule1", "rule2" inside guvnor. I am extracting
> the rule names using REST api, pointing to some url
> http://../package/packageName/assets. I need the rule names in my
> application, so I have kept the rule names in my DB.
>
> If tomorrow I need to change the rule name of "rule1" to "xyz", how does my
> application keep a track of which rule name has been changed out of the two
> and update the same in my DB.
>
> For the time being, I am using the UUID, and its doing the job very well.
> But, if it becomes obsolete in the future, is there a replacement to it ?
>
> Abhinay
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Rule-Id-for-a-Drools-Rule-tp2914385p4023306.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20130410/76e09896/attachment.html 


More information about the rules-users mailing list