[rules-users] Instantiate fact class declared only in drl

Esteban Aliverti esteban.aliverti at gmail.com
Mon Jan 9 10:33:24 EST 2012


There is a full api that let you instantiate and manipulate declared types
in Java code:
http://docs.jboss.org/drools/release/5.4.0.Beta1/drools-expert-docs/html_single/index.html#d0e3750

Best Regards,

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

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


On Mon, Jan 9, 2012 at 4:20 PM, MarcoMojana <marco.mojana at exmachina.ch>wrote:

> Ok laune, but I would like to create this objects inside a junit test (so
> in
> a method defined in a *.java file), not from the drl itself. Were you
> suggesting a workaround?
>
> --
> MM
>
>
> laune wrote
> >
> > I've found that creating objects and facts from DRL-declared classes is
> > easily done in DRL, in RHS code.
> > -W
> >
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Instantiate-fact-class-declared-only-in-drl-tp3644780p3644822.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/20120109/62dec748/attachment.html 


More information about the rules-users mailing list