Policy Automation for B2C Service

Get Involved. Join the Conversation.

Topic

    Jayandan Rajaram
    How to enable Rule Script in our OPA??
    Topic posted February 13, 2018 by Jayandan RajaramRed Ribbon: 250+ Points 
    116 Views, 6 Comments
    Title:
    How to enable Rule Script in our OPA??
    Content:

    How to Enable Rule Script in our OPA as we have some business requirements with Rule script.Here the Scenario is we are having Entity holding more than one instance of an attribute where we need to retrieve all the data(all instances of that attribute) from OPA to Rule Script. PFA for the explanation of scenario where an attribute holding 3 instances,can we retrieve the data of all three instances from OPA to Rule Script.Is it possible to read or write attributes from OPA using Rule Script??

    Version:
    Jan-2018
    Image:

    Comment

     

    • Anuj Behl

      Hi Jayandan,

      Yes, child entity attributes can be accessed from RuleScript. Refer to the documentation to get more details. Remember, since this feature is very new, the available functionality can differ a lot between OPA versions. You should refer the documentation specific to your OPA version.

      -Anuj

    • Jayandan Rajaram

      Hi Anuj,

                 How to enable Rule Script in OPA??Please help us on enabling Rule Script in OPA. As we came to know through documentation that we can retrieve all the instances of an attribute through Rule Script.   

    • Anuj Behl

      Which version of OPA are you using? and What problem are you facing with RuleScripts?

    • Jayandan Rajaram

      Hi Anuj,

                  OPA JAN-2018 Version. As Rule scripts is not enabled by default in OPA. we want to know how to enable Rule Script in OPA?

    • Jayandan Rajaram

      Hi  guys,

                    Help on this implementation if you are aware on this scenario

      Is it possible to read or write attributes from OPA using API. Here the Scenario is we are having an Entity holding more than one instance of an attribute where we need to retrieve all the data(all instances of that attribute) from OPA using API .PFA for the explanation of scenario where an attribute holding 3 instances,can we retrieve the data of all three instances from OPA USING API??

    • Anuj Behl

      Hi Jayandan,

      As per the documentation,

      To enable RuleScript for your Policy Modeling project:

      -Anuj