Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-3707

ObjectDataCompiler converter does not compile all template rules

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    Description

      When trying to compile a rule template with a datasource of a lot of rows (more than 1000), the compilers only compiles the first 1286 lines in the datasource.

      Here is the code I am using:
      //50,000 classes are created in the collection
      Collection<FRTRule> freights = FilesLoader.GetFreightRules();
      ObjectDataCompiler converter = new ObjectDataCompiler();
      //a very simple rule template is loaded.
      final InputStream templateStream = new Object().getClass().getResourceAsStream( "/Rules/Freight.drl" );
      //only 1286 rules are created in the drl string.
      String drl = converter.compile( freights, templateStream );

      Here is the rules template syntax:
      template header
      pol

      package com.zim.pricing.rules
      import com.zim.PricingPOC.PricingUI.FRTRule;

      template Pricing

      rule "Pricing_@

      {row.rowNumber}

      "

      when
      m : FRTRule(pol == "@

      {pol}

      ")
      then
      m.setPol("1");
      end

      end template

      What could the reason be that the compiler only compiles 1286 rules?

      Thanks,

      Guy

      Attachments

        Activity

          People

            mproctor@redhat.com Mark Proctor
            guybar_jira Guy Baharav (Inactive)
            Archiver:
            rhn-support-ceverson Clark Everson

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              PagerDuty