[rules-users] How to use single Model in different rules across different packages

Esteban Aliverti esteban.aliverti at gmail.com
Fri Dec 9 11:32:21 EST 2011


The only way to do that in Guvnor is to add your model into the Global Area
and then import the model in each of your packages using the "import from
global area" option.

Best Regards,

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com


On Thu, Dec 8, 2011 at 6:40 AM, srinivasasanda <srinivasasanda at gmail.com>wrote:

> Hi All,
>
>   I'm using Drools 5.0.1.I've declared two packages in Drools Guvnor
> Package1 and Package2.I declared one Model named as TestModel in Package1.
>
> Now,I created a business rule named as testrule in Package2.Now,while
> adding
> conditions to this rule in when clause,I need to get the TestModel from
> Package1.How it is possible?
>
> It means I should use the same Model across different rules in different
> packages.How it is possible.Please help me.I'm struggling in this..
>
> Thanks
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/How-to-use-single-Model-in-different-rules-across-different-packages-tp3569485p3569485.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/20111209/b19ce8d8/attachment.html 


More information about the rules-users mailing list