Hi, I need to make sure that the sum of the weighting of tests in one subject (in my Mendix application) can't go above 100%. An example: Test 1 - Subject 1 - Weighs for 40% Test 2 - Subject 1 - Weighs for 40% Test 3 - Subject 1 - Weighs for 40% The example above shouldn't be able to occur. How do I set these parameters? Do I need a microflow for it? I've been trying out some things for a little now, but I just can't seem to get it. Thanks!
Yes you would use a microflow to add up all the percents and use an exclusive split to see if the sum is less than or equal to 100.
I'm not sure how your domain model is setup, but for this example, each test is a separate record. I retrieve the list of tests and then use the aggregate list activity to sum the percents. Then I use the exclusive split to check if the sum is less than or equal to 100, and if its greater than 100, I show a pop up message.