Skip to Main Content

Intelligent Advisor

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Use rulescript within an entity

4090125Nov 28 2019 — edited Dec 9 2019

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?

Comments
Post Details
Added on Nov 28 2019
4 comments
252 views