[jboss-jira] [JBoss JIRA] (DROOLS-945) Rule propagation

Davide Sottara (JIRA) issues at jboss.org
Mon Oct 12 16:25:00 EDT 2015


    [ https://issues.jboss.org/browse/DROOLS-945?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13117566#comment-13117566 ] 

Davide Sottara commented on DROOLS-945:
---------------------------------------

I tried the correct rule.drl + RuleTester + WdtbOrdr.java in a test case.

{code}
String drl = "..."; 
WdtbOrdr r = new WdtbOrdr();
        r.setCodMart("111");
        r.setCodCol("900");
        r.setCodTagl("aa");
        r.setRapConv(1d);
        r.setQtaOrd(1d);
        r.setSconto5(0d);
        r.setSconto6(0d);
        r.setSconto7(0d);
        r.setSconto8(0d);
        r.setValUnt(null);
        r.setImportoRiga(null);

        StatelessKieSession ksession = new KieHelper().addContent(drl, ResourceType.DRL)
                .build().newStatelessKieSession();
        ksession.execute( r );
{code}

Both rules fire once. Am I missing something?

> Rule propagation
> ----------------
>
>                 Key: DROOLS-945
>                 URL: https://issues.jboss.org/browse/DROOLS-945
>             Project: Drools
>          Issue Type: Bug
>          Components: core engine
>    Affects Versions: 6.3.0.Final
>            Reporter: Sante Stanisci
>            Assignee: Mario Fusco
>            Priority: Critical
>         Attachments: correct rule.drl, rule.drl, RuleTester.java, WdtbOrdr.java, WdtbOrdt.java
>
>
> I have annotate class with @propertyreactive. If i set a property that fire another rule, it no fire.
> i use this StatelessKieSession and execute on class with
> ksession.execute(instance)



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list