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

Executable model compilation fails with function call and large input array

    Details

      Description

      A rule with the following RHS fails to compile in the executable model:

      $input.setNo12Count(functions.sumOf(new Object[]{$no1Count_1, $no2Count_1, $no3Count_1, $no4Count_1, $no5Count_1, $no6Count_1, $no7Count_1, $no8Count_1, $no9Count_1, $no10Count_1, $no11Count_1}).intValue());
      

      Failure:

         text=cannot find symbol
        symbol:   method execute((drools,$n[...]t); })
      

      Compilation is successful if one of the input parameters (eg. $no11Count_1) is removed.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  volothamp Luca Molteni
                  Reporter:
                  mputz Martin Weiler
                  Tester:
                  Daniel Rosa
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: