droolsfiddle / drools-fiddle

The fiddle for Drools
Apache License 2.0
30 stars 25 forks source link

[BUG] Fire before Submit at least once #14

Open AmielPouzat opened 6 years ago

AmielPouzat commented 6 years ago

When you fire before submit at least one fact, then the arrow to describe the step aren't working. Example :

//
// copy paste your drl
// Drools version : 7.10.0.Final

import org.droolsfiddle.utilities.WSLogger;

global WSLogger LOGGER;

declare Fact
    value : int
end

rule "Rule"
    when
        f : Fact(value == 42)
    then
        modify( f ) {setValue( 41 )}
        LOGGER.debug("This is a debug log");
        LOGGER.info("This is an info log");
        LOGGER.warn("This is a warn log");
        LOGGER.error("This is an error log");
    end

Then Build , Fire ( 0 rule should be fired, and the server return this info.), Submit a new Fact(42). You will encounter the bug.