Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Fire before Submit at least once #14

Open
AmielPouzat opened this issue Aug 23, 2018 · 0 comments
Open

[BUG] Fire before Submit at least once #14

AmielPouzat opened this issue Aug 23, 2018 · 0 comments

Comments

@AmielPouzat
Copy link

AmielPouzat commented Aug 23, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant