Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-3317

Guided Decision Tables: Insert in RHS not creating valid code for boolean fields.

    XMLWordPrintable

Details

    • Hide

      The workaround is to use freeform DRL.

      Show
      The workaround is to use freeform DRL.
    • NEW
    • NEW

    Description

      Insert a fact with a boolean field in dtable RHS.
      The DRL generated looks like this:

      rule "Row 3 The Table"
      	dialect "mvel"
      	when
      		s : Source( age >= 18 , kitten == "Dog" )
      	then
      		s.setRisk( "ok" );
      		DroolsUtil fact0 = new DroolsUtil();
      		fact0.setARuleFired( true );
      		insert( fact0 );
      end
      

      The line

      fact0.setARuleFired( true );
      

      does not compile. It should be ( for example ):

      fact0.aRuleFired = true;
      

      The above is done by inserting the fact with BRL action, but the same error bothers the "Set the value of field" option.

      Attachments

        Issue Links

          Activity

            People

              karreiro_ Guilherme Gomes (Inactive)
              trikkola Toni Rikkola
              Jozef Marko Jozef Marko
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: