Drools: storing rules in database

前端 未结 5 890
温柔的废话
温柔的废话 2021-01-31 11:51

Currently I store all rules files on the file system (there are lots of versions of them) and load the different versions of them into memory at startup. I would like to change

5条回答
  •  無奈伤痛
    2021-01-31 12:24

    Yes you can do it by creating rule packages(.pkg files). This is the compiled/binary form of textual rules.

    you can specify the name of the package file while creating the knowledgeBuilder and also how frequently the rules should be updated (say 30 seconds).

    Use Guvnor to convert the textual rules to .pkg files. keep this file in a folder where the application can access it.

    Please revert if you need code samples.

提交回复
热议问题