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

DMN REST endpoint requires stateful kie session

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • dmn engine
    • Noticed this is RHDM 7.3. Still exists in 7.4. Don't know which versions of Drools that coincides with.

    • 2020 Week 16-18 (from Apr 13)
    • 3
    • Hide

      DMN-Test.zip

      This project should have the correct configuration.

      1) Create project
      2) Create trivial DMN model
      3) Change the project settings such that the default KIE session is stateless
      4) Attempt to call DMN model via REST.

      REST body:
      {
      "model-namespace": "https://kiegroup.org/dmn/_03905DFC-51E7-40B8-BC38-170BD89DA019",
      "model-name": "test",
      "model-id": "_02EF3E58-E9B3-428B-AFB5-48C9A31F234C",
      "decision-name": null,
      "decision-id": null,
      "dmn-context":

      { "input": "Cat" }


      }

      Show
      DMN-Test.zip This project should have the correct configuration. 1) Create project 2) Create trivial DMN model 3) Change the project settings such that the default KIE session is stateless 4) Attempt to call DMN model via REST. REST body: { "model-namespace": "https://kiegroup.org/dmn/_03905DFC-51E7-40B8-BC38-170BD89DA019", "model-name": "test", "model-id": "_02EF3E58-E9B3-428B-AFB5-48C9A31F234C", "decision-name": null, "decision-id": null, "dmn-context": { "input": "Cat" } }
    • Documentation (Ref Guide, User Guide, etc.), Release Notes
    • Workaround Exists
    • Hide

      Specify a default KIE session that is stateful and modify all other requests to use the stateless session.

      Show
      Specify a default KIE session that is stateful and modify all other requests to use the stateless session.
    • NEW
    • NEW

      When trying to run DMN via the rest endpoint, if the default KIE session is stateless, an error is returned stating that "Cannot find a default KieSession". If the stateful session is specified as default, the DMN execution works as expected. This forces you to specify stateless for all other requests.

              mmortari@redhat.com Matteo Mortari
              rhn-gps-jjarae Justin Jarae (Inactive)
              Daniel Rosa Daniel Rosa
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: