Can we be sure that the rule fires? (println on the RHS?)
-W
On 09/12/2013, anjana.ackroyd wrote:
>
> Thanks. Now when I do a get on Message I get a null value. I was under the
> assumption that the drl n.setMessage is setting the value for message
>
> FactType factType =
> runner.buildFactType
Thanks. Now when I do a get on Message I get a null value. I was under the
assumption that the drl n.setMessage is setting the value for message
FactType factType =
runner.buildFactType("org.drools.test","NumberCompare") ;
Object nc = factType.newInstance();
factType.set( nc,
Thanks. Now when I do a get on Message I get a null value. I was under the
assumption that the drl n.setMessage is setting the value for message
FactType factType =
runner.buildFactType("org.drools.test","NumberCompare") ;
Object nc = factType.newInstance();
factType.set( nc, "nu
You'll have to something like
FactType factType = kieContainer.getKieBase().getFactType(
packagename, "NumberCompare" );
Now you may
Object nc = factType.newInstance();
factType.set( nc, "numberone", Integer.valueOf( 42 ) );
...
kieSession.insert( nc );
Of course, declaring and in
You need to use kiesession.insert( object ).
Sent on the move
On 8 Dec 2013 20:52, "anjana.ackroyd" wrote:
> Hi,
> I am new to drools and trying to figure out how to get this simple example
> working.
> I have intellij IDE .
> I am trying to compare two numbers using drools 6.x and dont know how