Search code examples
drools

Drools - rule from string gets created in-memory


Hello fellow droolers !!

I am experimenting with the api mentioned referenced below to load rules from a string.

https://stackoverflow.com/questions/42927331/how-to-load-rules-from-a-string-in-drools-6-5

However, i observed that it gets created in-memory, and is not written to a file on my hard disk.

Is there an api to get such a behaviour ?

Cheers!


Solution

  • Drools API solves different problems than creating resources on OS file system.

    KIE virtual file system KieFileSystem to build the project

    drools documentation

    KieFileSystem is an in-memory file system provided by the framework

    baeldung tutorials