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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 8.35.0.Final
    • 7.73.0.Final, 8.34.0.Final
    • executable model
    • None
    • 2023 Week 06-08 (from Feb 6), 2023 Week 09-11 (from Feb 27)
    • 2
    • Workaround Exists
    • Hide
      drools.workingMemory
      

      can be replaced with

      kcontext.getKnowledgeRuntime()
      
      Show
      drools.workingMemory can be replaced with kcontext.getKnowledgeRuntime()
    • NEW
    • NEW
    • ---
    • ---

      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.

              rhn-support-tkobayas Toshiya Kobayashi
              rhn-support-tkobayas Toshiya Kobayashi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: