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

Support incremental update for function with executable model

    Details

    • Sprint:
      2020 Week 10-12 (from Mar 2), 2020 Week 13-15 (from Mar 23), 2020 Week 16-18 (from Apr 13)
    • Story Points:
      7
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      When you do incremental compilation with executable model, if a function is updated, you will get this error.

      [ERROR] testKJarUpgradeWithChangedFunction[PATTERN_DSL](org.drools.modelcompiler.IncrementalCompilationTest)  Time elapsed: 2.682 s  <<< ERROR!
      java.lang.IllegalArgumentException: Unsupported change type: function!
      	at org.drools.modelcompiler.builder.CanonicalKieBaseUpdater.run(CanonicalKieBaseUpdater.java:148)
      	at org.drools.core.impl.KnowledgeBaseImpl.enqueueModification(KnowledgeBaseImpl.java:745)
      	at org.drools.compiler.kie.builder.impl.KieContainerImpl.update(KieContainerImpl.java:266)
      	at org.drools.compiler.kie.builder.impl.KieContainerImpl.update(KieContainerImpl.java:236)
      	at org.drools.compiler.kie.builder.impl.KieContainerImpl.updateToVersion(KieContainerImpl.java:194)
      	at org.drools.modelcompiler.IncrementalCompilationTest.testKJarUpgradeWithChangedFunction(IncrementalCompilationTest.java:359)
      	...
      

      This is an explicit limitation at the moment but I filed this JIRA to support a function update.

        Gliffy Diagrams

          Marvel

          Marvel Prototype Add-On for Confluence Server written by David Simpson.

            Attachments

              Issue Links

                Activity

                  People

                  • Assignee:
                    tkobayashi Toshiya Kobayashi
                    Reporter:
                    tkobayashi Toshiya Kobayashi
                    Tester:
                    Daniel Rosa
                  • Votes:
                    0 Vote for this issue
                    Watchers:
                    1 Start watching this issue

                    Dates

                    • Created:
                      Updated:
                      Resolved: