You can upload a JAR containing a POJO model using "New->Upload POJO model"

You are unable to use the declarative approach to define classes from Java (although you can instantiate and consume declared classes through Java).

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.

In summary, your options for Guvnor are (a) upload a JAR containing your model, (b) define it declaratively, (c) a combination of both.

On 2 May 2011 06:17, azahra <work@zguy.com> wrote:
Thanks for that. I have had some success with this approach.

Is it possible to actually upload a file to Guvnor with these declarations?
I can't see any way to do this.

It would be impractical to enter each model entity one at a time through the
Guvnor GUI.


manstis wrote:
>
> The "declare" keyword is used to declaratively define a model rather than
> use a JAR file containing the same.
>
> It is documented in Experts' documentation "4.7 Type Declaration".
>
> With kind regards,
>
> Mike
>
> On 29 April 2011 08:25, azahra &lt;work@zguy.com&gt; wrote:
>
>> I am trying to use Guvnor with an existing model. I am having class
>> dependency issues even though I have created a jar with dependencies.
>>
>> I noticed that the demo package seems to have its model declared in some
>> non-java way like so:
>> declare LoanApplication
>> amount: Integer
>> approved: Boolean
>> ...
>> end
>>
>> Is the use of this format discussed somewhere?
>>
>> Are there any other alternatives to building a jar with full
>> dependencies?--
>> View this message in context:
>> http://drools.46999.n3.nabble.com/Format-of-model-for-guvnor-tp2878374p2878374.html
>> Sent from the Drools: User forum mailing list archive at Nabble.com.
>> _______________________________________________
>> rules-users mailing list
>> rules-users@lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>
> _______________________________________________
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>


--
View this message in context: http://drools.46999.n3.nabble.com/Format-of-model-for-guvnor-tp2878374p2888867.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users