JBoss Community

Re: Drools Simple rule evaluation

created by Mauricio Salatino in jBPM - View the full discussion

I'm not sure what do you mean with this:

- are you sure that you are inserting the fact in the session?

normaly in artificial intelligence the fact are objects that we will apply rules on them i have inserted it using   ksession.insert(ticket);

 

but.. yes.. that's not for artifitial inteligence in general.. this behavior is related with rules engines only.

 

Some notes about your rule:

    $ticket:Ticket(status=="open"); -> please remove the semicolon you don't need it

 

Can you attach a KnowledgeRuntimeLoggerFactory.newConsoleLogger(ksession); -> to the session that was created with the kbase which contains the rules?

and share the output?

Cheers

Reply to this message by going to Community

Start a new discussion in jBPM at Community