[rules-users] Drools - is dynamic change possible ?

pns77 pnsrapuram at gmail.com
Thu Aug 16 08:17:54 EDT 2007


Have been able to execute/run a sample Drools file

import com.sample.Message;
 
rule "Hello World"
    when
        m : Message( status == Message.HELLO, message : message,
testStringExternal : testStringExternal )
    then
        System.out.println( message );
        m.setMessage( "Goodbye cruel world" );
        System.out.println( testStringExternal + "Message.HELLO" );
        m.setStatus( Message.GOODBYE );
        update( m );
end

Now, is it possible to change the logic dynamically at runtime ? Or is the
drl file used only to externalize the business logic? I tried changing the
message in drl file and it didnt get reflected

Environment - RAD 6.0/jdk 1.4

Used the following set of jar files
C:\Drools\libraries\drools-core.jar;
C:\Drools\libraries\drools-compiler.jar;
C:\Drools\libraries\mvel14.jar;
C:\Drools\libraries\antlr-runtime.jar;
C:\Drools\libraries\xstream.jar;
C:\Drools\lib\core-3.2.3.v_686_R32x.jar; 
-- 
View this message in context: http://www.nabble.com/Drools---is-dynamic-change-possible---tf4277622.html#a12175583
Sent from the drools - user mailing list archive at Nabble.com.




More information about the rules-users mailing list