- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2023 08:08 AM
Hello,
I have a requirement to recalculate the Assessment Data Results on Demands.
Current Assessment Data looks like this:
On the Assessment Instance, the user can update the values:
I am looking to create UI Action on the demand page to recalculate the assessment data.. any ideas?
THank you
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2023 10:15 AM
Ok, so now try to determine whether the business rule is running or not - do you still have the logging line, and are you seeing anything in the logs?
I edited 4 values so this gets logged when the business rule runs

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2023 09:04 AM
When you say 'the user can update the values', do you mean take the assessment? I didn't think that a user could change those values once the assessment was completed (in my instances those values are not editable).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2023 09:13 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2023 09:50 AM - edited 03-17-2023 10:26 AM
Ah ok understand. The re-calculation of the scores is done when the demand moves to the qualified state by the Populate Metrics Results business rule. The rule calls a script include function DemandUtil().populateScores(current) which does the work and updates the demand. You could try by running that same function from your UI action - in theory it should work. There may be other things going on though that need to be triggered as well.
Actually it looks like that function is looking at the assessment results and not the assessment instances, so you would need to update the results first, then re-run the populateScores function.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2023 10:31 AM
THank you so much - this is a great suggestion. I am going to give that a try and I will let you know if it works.