Uploaded image for project: 'Red Hat Decision Manager'
  1. Red Hat Decision Manager
  2. RHDM-1960

drools.workingMemory is not resolved in executable-model + mvel dialect

    XMLWordPrintable

Details

    • False
    • None
    • False
    • Release Notes
    • CR1
    • +
    • Workaround Exists
    • Hide
      drools.workingMemory
      

      can be replaced with

      kcontext.getKnowledgeRuntime()
      
      Show
      drools.workingMemory can be replaced with kcontext.getKnowledgeRuntime()
    • 2
    • 2023 Week 06-08 (from Feb 6), 2023 Week 09-11 (from Feb 27)

    Description

      Issue Description:

      This rule

      rule "log_settings_GlobalLogger"
          dialect "mvel"
          when
          then
                      drools.workingMemory.setGlobal("logger", org.slf4j.LoggerFactory.getLogger(getClass()));
      end
      

      fails with

      workingMemory cannot be resolved or is not a field.
      

      in exec-model while non-exec-model can execute.

      Acceptance Criteria:

      executable-model can execute the rule as same as non-exe-model.

      Attachments

        Issue Links

          Activity

            People

              rhn-support-tkobayas Toshiya Kobayashi
              rhn-support-hmiura Hiroko Miura
              Paolo Bizzarri Paolo Bizzarri
              Paolo Bizzarri Paolo Bizzarri
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: