EdgeVerve / feel

Expression Language for creating and executing business rules in decision table based on DMN 1.1 specification for conformance level 3
MIT License
93 stars 48 forks source link

Realtime Condition/Action Update #28

Open DJEDAINI opened 3 years ago

DJEDAINI commented 3 years ago

When i tried to update the excel file actions column, i must restart the engine to get the result updated.

this is because the rootMap won't be created each time, if it's already create so the engine will not create it again and update the data , so this instruction should be deleted to update the rootMap after each checking time if (rootMap[rootMapId] == null || rootMap[rootMapId] === 'undefined')

Screenshot 2021-11-07 at 14 43 16
deostroll commented 2 years ago

Ah, yes. This is a known issue. We have solved it this way: we pass in a different rootMapId which will force it to create the tree.

(Also the id you pass as argument to execute_decision_table() api, is just a kind of name for the decision table; it can be any string).