[jboss-user] [jBPM] - Re: Drools Simple rule evaluation

ous2k do-not-reply at jboss.com
Tue Mar 27 15:53:14 EDT 2012


ous2k [https://community.jboss.org/people/ous2k] created the discussion

"Re: Drools Simple rule evaluation"

To view the discussion, visit: https://community.jboss.org/message/726726#726726

--------------------------------------------------------------
-"i get not thing in the console view" :means no nothing writen in the console
-i tryied to debug the project the run process is not failing

-i have already imported the Ticket,  the DLR file syntaxicly correct as shown 
-do you mean  the *same session* StatefulKnowledgeSession ksession variable??

- 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);

#list any import classes here.
import org.drools.runtime.process.WorkflowProcessInstance;
import org.drools.runtime.process.ProcessContext
import org.drools.event.process.ProcessStartedEvent;
import com.ocana.workflow.dabviewticketing.server.model.Ticket;
import java.util.Date
import java.util.List
#declare any global variables here
#declare Ticket 
#          @role(event)
#end


declare Server
   idTicket : int
   status : int
   openingDate : Date // percentage
   content: Date 
end


dialect "mvel" 
          rule "Check 5mn condition"
          when
                                 $ticket:Ticket(status=="open");
          then 
                  System.out.println("New Ticket is opened");
                              #$server.getVirtualizations().add($request.getVirtualization()); 
          end
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/726726#726726]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120327/0323bd90/attachment.html 


More information about the jboss-user mailing list