I'm trying to implement an SLM Groovy Business Rule, but I'm having some issues, I'm wondering if anyone can shed some light on this:
Using the Availability KPI, this business rule is intended to calculate the product of the Child CIs KPI value. However, during testing to see if I can return the KPI value of the CIs I get the following error in the Bambino log:
MERQ-120920: Can not calculate KPI since its CalculationRule was not found.
The Business Rule was created by cloning the API Group and Sibling rule in the repository and amending the class path to point to the groovy file, as stated in the docs.
My current groovy script is set to list the child KPIs and print out their value in the debug log, so I can see if any are returned before I start writing the calculation logic (also set the kpi value to 100 - just for good measure)
I noticed, if I just had a groovy script to set kpi.value = 100; it works without issue, but when calculating child KPIs, it causes issues.
Below are the contents of SamTestRuleSAI_8.groovy: