Stateless request to KIE Server REST API

569 views Asked by At

We are using the latest Docker images of Business Central and KIE-server, and are interacting with the rules service client using KIE's REST API.

We created a set of rules in Business Central that, when fired, insert a "Response" fact.

We would like to be able to sent requests to KIE Server in a stateless manner; i.e. every time we send a request (typically composed of a chain the following chain of commands: insert-object -> fire-all-rules -> get-objects) to the server, no objects/facts from a previous requests should be returned by the get-objects command.

From what we understand, one way to go about this would be to create a new session for each request. How would one do that? Any other suggestions and/or references?

1

There are 1 answers

0
Yann Vonderscher On BEST ANSWER

Stateless API calls will work once a stateless session is defined. In your API call, refer to the stateless session using the "lookup" key. Here is a reference to another StackOverflow which explains how to create the stateless session in Businsess Central: How to invoke decision service as a stateless session in Kie (RedHat Decision Manager)