On change request, risk calculation message shows up twice. Is this really a defect ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-24-2022 02:05 PM
Hello,
Once I create the change request, system automatically calculate risk & impact and message always shows up on top of the page once I save the form. Here I am getting 2 different Risk calculation message and I found this message stores in 3 different places:
1) script Include "RiskCalculatorSNC" ,
2) UI Macro "chg_risk_details_translations",
3) UI Script "change_risk_details_app".
In my personal Instance I don't see any of these message appear if I create change request in New state. So I would like to know is this really a defect or this is how it should be? Below is the screen shot of message.
- 1,453 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-24-2022 06:28 PM
Hi, I would suspect that the script runs when the record is saved\submitted and is then triggered again as the record has changed because the script updated the record.
If you update a value on the record that does not result in a change of risk\impact, do you see it run twice or do you just see the risk and impact remain unchanged message?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2022 11:52 AM
I only see this info message twice on NEW state when I save the record. I don't see it repeating after NEW state.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2022 06:14 AM
I am also facing the same issue. Have you got the root cause for this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-19-2022 03:34 PM
Having the same issue. If the risk value changes after completing a survey, the business rule calculation seems to run and duplicate the message. If the survey doesn't result in a different risk value though, nothing on the form changes, so the business rule to recalculate doesn't run. Additionally if the risk value is changed due to a risk condition, the message only appears once, so it definitely seems like it's due to the risk assessment calling RiskCalculator as well as the business rule calling it due to the change update.
The ui macro and ui script you mentioned don't seem to have any impact, even if I disable them, so it all comes down to the script include being called and executed multiple times, which I can see is occurring by using the script tracer utility, though even that trace isn't showing me what exactly is causing it to execute twice - while i think it's risk assessment + BR, the trace makes it seem like the BR runs after the risk calculator runs twice...
It looks like i'll have to modify something in the risk assessment ui action to avoid the double message, but i'm not keen on that idea.. Let me know if you figure out anything definitive.