You can upload a JAR containing a POJO model using "New->Upload POJO model"<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"><<a href="mailto:work@zguy.com">work@zguy.com</a>></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'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>
><br>
> The "declare" keyword is used to declaratively define a model rather than<br>
> use a JAR file containing the same.<br>
><br>
> It is documented in Experts' documentation "4.7 Type Declaration".<br>
><br>
> With kind regards,<br>
><br>
> Mike<br>
><br>
</div><div class="im">> On 29 April 2011 08:25, azahra &<a href="mailto:lt%3Bwork@zguy.com">lt;work@zguy.com</a>&gt; wrote:<br>
><br>
>> I am trying to use Guvnor with an existing model. I am having class<br>
>> dependency issues even though I have created a jar with dependencies.<br>
>><br>
>> I noticed that the demo package seems to have its model declared in some<br>
>> non-java way like so:<br>
>> declare LoanApplication<br>
>> amount: Integer<br>
>> approved: Boolean<br>
>> ...<br>
>> end<br>
>><br>
>> Is the use of this format discussed somewhere?<br>
>><br>
>> Are there any other alternatives to building a jar with full<br>
>> dependencies?--<br>
>> View this message in context:<br>
>> <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>
>> 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>
>><br>
><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>
><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>