I have some issues with getting a rulescript function working in entity instances. It will be assessed in instance of this entity.
I have the following rule:
// RuleScript(r) <- (a,b,c)
function CalculateValue(entity) {
entity.r = Lib.somecalculation(entity.a,entity.b,entity.c);
}
"entity" here is the public name of the entity.
I do not get any errors in OPM about it, but I get the following error when I try to run the OPA application:
"a" is not an attribute or relationship of global
What am I doing wrong?