Details
-
Bug
-
Resolution: Done
-
Critical
-
None
-
None
-
NEW
-
NEW
-
Description
Rules that operate on case-data should fire whenever the case-data changes. E.g.
- When the data is changed in the Business Central UI
- When a WIH I/O maps it output onto a caseFile variable,
Atm, jBPM only triggers rules/Conditions that are set on, for example, Milestones in the above cases. Rules defined in a DRL are NOT evaluated.
The rules are evaluated when setting the caseFile data through the CaseService (putCaseInstanceData).
IMO, rules defined in DRLs should always fire whenever the caseData that they operate on changes.
Reproducer project here: https://github.com/DuncanDoyle/test-case-wih-io-rules.git
Note that the reason the rules don't fire when updating the caseFile variable through the workbench is probably because the workbench is using the "/kie-server/services/rest/server/containers/test-case-wih-io-rules_1.0.0-SNAPSHOT/processes/instances/13/variable/caseFile_test" REST API, and not through the CaseService .... However, the Milestone still DOES fire in that case.