You can upload a JAR containing a POJO model using &quot;New-&gt;Upload POJO model&quot;<br><br>You are unable to use the declarative approach to define classes from Java (although you can instantiate and consume declared classes through Java).<br>
<br>You can obviously use DRL to declare your model and build a KnowledgeBase from Java, but you cannot upload DRL into Guvnor containing a declarative model.<br><br>In summary, your options for Guvnor are (a) upload a JAR containing your model, (b) define it declaratively, (c) a combination of both.<br>
<br><div class="gmail_quote">On 2 May 2011 06:17, azahra <span dir="ltr">&lt;<a href="mailto:work@zguy.com">work@zguy.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Thanks for that. I have had some success with this approach.<br>
<br>
Is it possible to actually upload a file to Guvnor with these declarations?<br>
I can&#39;t see any way to do this.<br>
<br>
It would be impractical to enter each model entity one at a time through the<br>
Guvnor GUI.<br>
<div class="im"><br>
<br>
manstis wrote:<br>
&gt;<br>
&gt; The &quot;declare&quot; keyword is used to declaratively define a model rather than<br>
&gt; use a JAR file containing the same.<br>
&gt;<br>
&gt; It is documented in Experts&#39; documentation &quot;4.7 Type Declaration&quot;.<br>
&gt;<br>
&gt; With kind regards,<br>
&gt;<br>
&gt; Mike<br>
&gt;<br>
</div><div class="im">&gt; On 29 April 2011 08:25, azahra &amp;<a href="mailto:lt%3Bwork@zguy.com">lt;work@zguy.com</a>&amp;gt; wrote:<br>
&gt;<br>
&gt;&gt; I am trying to use Guvnor with an existing model. I am having class<br>
&gt;&gt; dependency issues even though I have created a jar with dependencies.<br>
&gt;&gt;<br>
&gt;&gt; I noticed that the demo package seems to have its model declared in some<br>
&gt;&gt; non-java way like so:<br>
&gt;&gt; declare LoanApplication<br>
&gt;&gt; amount: Integer<br>
&gt;&gt; approved: Boolean<br>
&gt;&gt; ...<br>
&gt;&gt; end<br>
&gt;&gt;<br>
&gt;&gt; Is the use of this format discussed somewhere?<br>
&gt;&gt;<br>
&gt;&gt; Are there any other alternatives to building a jar with full<br>
&gt;&gt; dependencies?--<br>
&gt;&gt; View this message in context:<br>
&gt;&gt; <a href="http://drools.46999.n3.nabble.com/Format-of-model-for-guvnor-tp2878374p2878374.html" target="_blank">http://drools.46999.n3.nabble.com/Format-of-model-for-guvnor-tp2878374p2878374.html</a><br>
&gt;&gt; Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; rules-users mailing list<br>
&gt;&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;<br>
<br>
<br>
--<br>
</div>View this message in context: <a href="http://drools.46999.n3.nabble.com/Format-of-model-for-guvnor-tp2878374p2888867.html" target="_blank">http://drools.46999.n3.nabble.com/Format-of-model-for-guvnor-tp2878374p2888867.html</a><br>

<div><div></div><div class="h5">Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a 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></blockquote></div><br>