Hello, I’m trying to create a model that allows iteration through a DMN decision based on input values from a user form. Specifically, the model involves a BPMN user task with a form where users can input several amounts. In a subsequent business rule task (linked to a decision), multiple calculations are performed on each amount, and then the amounts are summed. To achieve this, it is necessary to iterate through the DMN decision table using the values of process instance variables (the amounts) as inputs. In each iteration, a DMN decision variable receives a new input value. In other words, the aim is to reuse the decision logic for each amount. While this works with sample data in a JSON file, the question is: how can the process instance variables be organized into a list for iteration? Or is there an alternative solution in DMN? Although this can be achieved using BPMN logic, DMN is preferred.
I recommend using a multi-instance business rule task to evaluate the DMN for each amount.
On the multi-instance, you can define the variable to iterate over and the variable to collect the evaluation results.