Reputation: 31
Is there any way I can add or delete a rule in IBM ODM using Java rest api from client.
I was able get the value but i am trying to find out if there is any way we can add or delete rule in the records.
Upvotes: 1
Views: 1775
Reputation: 11357
Yes, there is an api to add/edit/delete rules and decision tables. See this link. Also google for "rtshelper.java"
The API is localhost:PORT/dcclient
Upvotes: 0
Reputation: 183
No, it is not possible!
First rules are meant to be like decision logic. Technically changing the rules in runtime cannot be done.
Second, It depends on which component of ODM you are using. If you are using Decision Center/Rule Team Server(Used for authoring the rules by Business team) or Decision Server/Rule Execution Server(Used by developers for creating and maintaining the rules). It is indirectly possible to change the rule in Decision center using the Decision Center API that is provided by IBM ODM.
Third, You can set rule property active as false for ignoring the rule while building as Dias said in the previous answer.
Upvotes: 1
Reputation: 11
Depending on the ODM version you are running, you can use the 'Active'
characteristic of Business Rules, no matter what the type is (Decision Tree, Decision Table, Action Rule, etc).
When changed to 'false'
this will be ignored within the Rule Orchestration you provided through the Main Rule Flow.
Hope this helps.
Upvotes: 0
Reputation: 1358
When you say add or delete a rule, do you mean in Decision Centre (the authoring tool) or in Decision Server (execution engine)?
What is it you want to achieve, and the process you are trying to build?
Upvotes: 0