Uploaded image for project: 'Spring Boot & Cloud'
  1. Spring Boot & Cloud
  2. SB-2027

Custom drl operator(contains_any) not working in 7.71 when upgrading from 7.31

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • spring-boot
    • None

      I have registered the custom rule operator(contains_any) with  definition that implements 
      org.drools.core.base.evaluators.EvaluatorDefinition. It was working in 7.31 at the latest that I am aware of. Has there api for registering a new evaluator definition changed? 
       
      we are registering the custom definition:
           kieServices.newKieModuleModel().setConfigurationProperty("drools.evaluator.contains_any", ContainsAnyDefinition.class.getName());
       
      This is the log message when running the rule:
       
      java.lang.RuntimeException: Build Errors: Error Messages: Message [id=1, kieBase=defaultKieBase, level=ERROR, path=rule1.drl, line=18, column=0 text=[ERR 102] Line 18:41 mismatched input 'contains_any' in rule "rule1" in pattern] Message [id=2, kieBase=defaultKieBase, level=ERROR, path=rule1.drl, line=0, column=0 text=Parser returned a null Package]

            amunozhe Aurea Muñoz Hernandez
            shirshap shirisha polati (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: