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

Necessary configuration information is missing when running rules engine in active mode

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 7.13.0.Final
    • 6.5.0.Final, 7.12.0.Final
    • docs
    • None
    • 2018 Week 39-41
    • NEW
    • NEW

    Description

      When following this doc page to run rules engine in active mode
      https://docs.jboss.org/drools/release/6.5.0.Final/drools-docs/html/ch07.html#d0e7301

      If application code opens another thread and do ksession.insert(fact) then it's possible to have threading issues.

      https://access.redhat.com/solutions/3645752

      Requesting to add suggestion to highlight "ThreadSafeTrackableTimeJobFactoryManager" should be used in multithreading environment, code example:
      -------------------------------------------------------------
      KieSessionConfiguration kconf = KnowledgeBaseFactory.newKnowledgeSessionConfiguration();
      ((org.drools.core.SessionConfiguration)kconf).setTimerJobFactoryType( TimerJobFactoryType.ok );
      KieSession ksession = kContainer.newKieSession("ksession-name", kconf);
      -------------------------------------------------------------

      Following code change has been made to update the default implementation to use ThreadSafeTrackableTimeJobFactoryManager :
      https://github.com/kiegroup/drools/commit/92623e2435401db4f80eaf5e3e804c13ac776c0d

      Attachments

        Activity

          People

            mfusco@redhat.com Mario Fusco
            rhn-support-lywang Lyle Wang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: