Re: [rules-users] Format of model for guvnor

2011-05-02 Thread Michael Anstis
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 KnowledgeBas

Re: [rules-users] Format of model for guvnor

2011-05-01 Thread azahra
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" key

Re: [rules-users] Format of model for guvnor

2011-04-29 Thread Michael Anstis
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 wrote: > I am trying to use Guvnor with an existing model. I

[rules-users] Format of model for guvnor

2011-04-29 Thread azahra
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