You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by sachin2008 <es...@gmail.com> on 2008/04/12 13:41:28 UTC

Problems while asserting objects into memory in drools

Hi , i have a simple drl file . In this file i am creating 2 java objects.

one contains boolean members to hold some flags status.
Another  is a helper which constrcuts a SOAP fault message and returned
back. While creating an object of this type i am passing a JBIHelper object.

When i try to assert tboth these objects programs execution is halted.
But when i try to assert an one of the objects then it is executing
correctly.

Control is not returning after calling assert() for seconf object. 

My rule is as follows:

rule "init"
salience 1
   when
        exchange : Exchange( status == Exchange.ACTIVE, in != null)
   
   then
      ValidationStatus status2 = new ValidationStatus();
      System.out.println("hi1");
      assert(status2);
      Helper faultHelper = new Helper(jbi);
      assert(faultHelper); 
      System.out.println("hi2");
  end
Here are the java files
http://www.nabble.com/file/p16648596/ValidationStatus.java
ValidationStatus.java 
http://www.nabble.com/file/p16648596/helper.java helper.java 

What could be the reason for this. Is ther any restrictions on the objects
to assert into the memory.
Thanks in advance.


-----
Cheers
Praveen Oruganti
"Think before you act and act on what you believe"
-- 
View this message in context: http://www.nabble.com/Problems-while-asserting-objects-into-memory-in-drools-tp16648596p16648596.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.