<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<STYLE>.hmmessage P {
        PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; PADDING-TOP: 0px
}
BODY.hmmessage {
        FONT-FAMILY: Verdana; FONT-SIZE: 10pt
}
</STYLE>
<META name=GENERATOR content="MSHTML 8.00.6001.18904"></HEAD>
<BODY class=hmmessage bgColor=#ffffff>
<DIV><FONT face=Arial>Ansgar,</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>If you are constructing a guided rule, you should define
your imports etc. in a separate file, called drools.package in the same
directory. When you used the wizard to create the guided rule, it should
be there already. Add your imports there. If you then open the
guided editor, the dropdown should contain the imported classes for you to
use.</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>Kris</FONT></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B>
<A title=shaileshhedaoo@hotmail.com
href="mailto:shaileshhedaoo@hotmail.com">Shailesh Hedaoo</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=rules-users@lists.jboss.org
href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, April 02, 2010 11:13
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [rules-users] Importing Fact
model in Eclipse</DIV>
<DIV><BR></DIV>i have the JAR in classpath. i also added the java
domain project in the "project references".<BR>but when i create a
"guided rule", in the when condition of "guidedl rule" - it gives me a 'choose
fact model' dropdown which is empty.<BR>i read somewhere that i need to
specify all globals or imports. But i wanst able to figure that out
exactly.<BR>looking forward to some more help :).<BR><BR> <BR>
<HR id=stopSpelling>
Date: Fri, 2 Apr 2010 22:59:18 +0200<BR>From:
ansgar.konermann@googlemail.com<BR>To: rules-users@lists.jboss.org<BR>Subject:
Re: [rules-users] Importing Fact model in Eclipse<BR><BR>On 02.04.2010 22:48,
Shailesh Hedaoo wrote:
<BLOCKQUOTE cite=mid:BAY145-w376B7BA9E179C92C9D6A0EC61C0@phx.gbl>
<STYLE>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Verdana;}
</STYLE>
Hi<BR> I have created a Drools project and trying to create a
guided rule in Eclipse 3.5 and Drools 5.0.x. <BR>I have my own domain
objects in another java project to be used by Drools project.<BR>I want
to use the java domain model as the "fact model" in my Drools project.
<BR>How is that done ? Do i have to go thru the web based "guvnor" first ?
<BR>All I m planing to have is a simple java project which has java classes
of my domain model of POJOs and in my Drools project i want to use them as
"fact model". How do i do it in eclipse IDE ?<BR></BLOCKQUOTE><BR>Should
suffice to add the fact model jar to the classpath of the project containing
your rules source code. That's how we did it when still working with Eclipse
(now switched to IDEA).<BR><BR>If you don't want to compile the jar
beforehand, on the rules project's root folder, right-click "build path" ->
"configure build path", select "Projects" tab, click "Add", check your fact
model project and confirm everything.<BR><BR>Kind regards<BR><BR>Ansgar<BR>
<P>
<HR>
<P></P>_______________________________________________<BR>rules-users mailing
list<BR>rules-users@lists.jboss.org<BR>https://lists.jboss.org/mailman/listinfo/rules-users<BR></BLOCKQUOTE><br>
<FONT FACE=3D"Helvetica" SIZE=3D2>Disclaimer: <A HREF="http://www.kuleuven.be/cwis/email_disclaimer.htm">http://www.kuleuven.be/cwis/email_disclaimer.htm</A> for more information.</FONT>
<BR>
</BODY></HTML>