OPA Cloud vs custom function

Hello

Is it possible in the Cloud edition (version August 2014) to integrate custom functions?

I'm not in the in the online help...

http://documentation.custhelp.com/EUF/assets/devdocs/august2014/PolicyAutomation/en/default.htm

Orlando.

Hi Orlando,.

Custom rule functions are not supported in the edition of cloud. What do you want to do with a custom function in particular?

Kind regards

Davin.

Tags: Oracle Applications

Similar Questions

  • OPA Cloud: add custom fonts

    : Hi people.

    I would like to know if it is possible to add a police custom in the clouds of the OPA.

    I use Cloud Edition February 2015.

    See you soon,.

    You can use CSS style sheets to change the font. If the new font to be used is a web font, then it is much easier to see that in your style sheets.

  • Implementation of the custom function

    Hello

    I use OPA version 10.4. Could someone please give me an example implementation of end-to-end custom in OPA function simple (including the code of JAVA/.NET, extension.xml and all the dll/pots to be included in the modules project). Thanks in advance.

    Kind regards

    Mounia

    You can find all this in the "Oracle policy Automation for Java" or "Oracle policy Automation for .NET ' zip downloaded from the cloud of delivery for software (OSDC) Oracle or Oracle Technology Network (OTN) web sites (http://www.oracle.com/technetwork/apps-tech/policy-automation/downloads/index.html).

    The relevant issues in the developer of the OPA's Guide are

  • Why is there a limit to the number of Boolean parameters in a custom function?

    We have a custom function which "flattens" four time values of the text in a single time value.

    We want to do the same thing with the Boolean time values.

    However, OPM throws an error when it reads the metadata for the function in extensions.xml.  It shows all the Boolean parameters must be the last.  We can not put all changed because there is more than one.

    This is error code W00001-OPM OPM.

    Any ideas on how I can work around this limitation?

    Excerpt from the OPA developer assistance:

    Only a Boolean parameter can be passed to a function, and it must be the last parameter.  This is due to a limitation in the compiler of the rule.  Any number of other parameters may however be present.

    If you want to pass multiple Boolean values, create a temporary text variable / document values "True" / "False" using the table of rules.

  • Custom function giving the compile error

    Hi all

    I created a custom function to get the current timestamp. The following java code:

    package com.oracle.determinations.examples;

    import com.oracle.determinations.engine.CustomFunction;

    import com.oracle.determinations.engine.EntityInstance;

    Import Java.util;

    java.text import. *;

    SerializableAttribute public class extends CustomFunction {CurrentTimeStamp

    public Object evaluate (EntityInstance entityInstance, Object [] items) {}

    Date dNow = new Date ();

    SimpleDateFormat ft =

    new SimpleDateFormat ("YYYY/MM/DD HH: mm:");

    / * System.out.println (ft.format (dNow)); * /

    Return ft.format (dNow);

    }

    }

    My Extension.xml is as below:

    <? XML version = "1.0" encoding = "utf-8"? >

    < extension >

    < functions >

    < name of the function = back "CurrentTimeStamp" type = "text" >

    < name arg = "input name" type = "text" / >

    < Manager platform = 'java' class="com.oracle.determinations.examples.CurrentTimeStamp"/ >

    < / feature >

    < / functions >

    < / extension >

    The extension.xml is placed under the following path:

    Development/Extension/CurrentTimeStamp/extension.xml

    The JAR file is located under the following path:

    Development/Extension/CurrentTimeStamp/lib/CurrentTimeStamp.jar (the jar file includes the com.oracle.determination.example folder structure)

    When I am using CurrentTimeStamp() in the basis of rules, is throw say compilation error:

    "Error after the CurrentTimeStamp text (' fount text: ' ')'. Expected variable value or constant OPA - E00111

    Can you please help me where I am doing wrong and therefore not identify the function?

    Thank you

    KK

    Version of the class 51 is Java 7, this suggests that you have compiled your classes in the Java JDK 7, but try to load them into an earlier version of Java (I guess Java 6 since this is the first version of Java that runs under Apache Tomcat 7).

    You can specify the JDK compiler to create classes that target Java 6, which should then work - see "javac - Java programming language compiler.

  • Custom function test

    Hi all

    I am trying to run the custom test function, the "CapitalizeFunction".


    Apart from placing the lib, example.jar, the extension.xml file in the "Extensions" folder - is that what I need to do? "

    My rule is

    {code}
    the test is done if
    -the uppercase name is known

    the name uppercase = CapitalizeFunction (the name in lowercase)
    {code}


    I get the error message is: "error after 'the name uppercase =', one finds:"CapitalizeFunction (lower case name)".» Constant variable, expression expected.


    Hope that helps.

    Published by: user9015745 on August 25, 2011 06:47

    Sorry the error message is: the local name for elements or attributes cannot be null or an empty string

    Custom function are only supported for the OPA v10.2 or later. I watched the provided project and the extension of the custom function was written against OPA v10.3 yet the project is indeed v10.1 OPM, so he won't get the extension.

    Recompile your custom function to use v10.1 OPA and to change the rule to be:

    the test is complete if
        the uppercase name is known
    
    the uppercase name = CallCustomFunction("CapitalizeFunction", "LOWER")
    

    where "BELOW" is the public name of the attribute 'name in lowercase.

  • When the Manager of the custom function in a configuration of link file gets error?

    The question she get error when the Manager of the custom function in a config file in the plan to include the link.
    When she went to join the custom function Manager in the debugger, everything is OK.

    <? XML version = "1.0" encoding = "utf-8"? >
    < configuration >
    < custom function platform = "DotNet".
    library-path="G:\RB1\Include\CustomFunctions.dll".
    Class="Viking.CustomFunctions.CustomFunctions"/ >
    < / configuration >

    THS, category and path is correct.
    So is there any problem for < custom function platform = "DotNet"?

    OPA version 10.2

    OPA error message translated from the Germany into English: Exception has been thrown by the target of a call

    In general, you should not give the full path of the custom function, it should be rather in relation to the project include file.

    for example:

    and then make sure that the CustomFunctions.dll file is copied into the project folder until the project is built.

    In addition, if you use 10.2 for a new project, the mechanism that you use is now replaced. An extension of the custom function is the new thing, and it will look much nicer when it is used in the rules. Refer to the section 'Write a Custom function Extension' in aid of developer for more information.

  • Download the OPA cloud policy template by using the command line

    Hi OPA developers,.

    Our project aims to automate the migration process models of political Test for Production environment. We use the OPA Cloud Aug2015, but if I understand correctly, we can enter the private cloud installation command-line tool and also run in the cloud.

    So, I downloaded the private cloud, edited the admin.cmd file to indicate download_project and provided the parameters and ran the command line.  However he just kept running and running for more than 15 minutes already, so I closed thinking that there is something wrong.  The zip file I download is only 800ko in size.

    Has anyone been able to use this feature from command line?  Please tell us what I have missed.  (Is there a specific place to save the file admin.cmd to ? Is it supposed to take a long time to complete)

    It comes to the command line, I used:

    " admin.cmd download_deployment - huburl = ' https://ProjectName.custhelp.com/OPA-hub "- hubuser ="HubLogin"- hubpass ="HubPassword"- deployname ="ProjectName"- version = 20 - deployzip="/projects/ProjectName.zip '

    Thank you very much!!

    You must run the admin.cmd from its original location in the private cloud installation bin directory, but you should immediately get an error if you run it from elsewhere.

    I'm not sure what you mean when you say you "edited the admin.cmd file to indicate download_project and provided the parameters" you should not have to modify this file, just run it with the required parameters as you describe.

    Can you watch the OPA hub management console and see if there is something in the log messages can indicate what could go wrong.

  • Error-could not create an instance of the custom function

    Hello

    I'm trying to implement an extension of the simple custom function OPM 10.2. Here is the code:
    package com.oracle.determinations.examples;

    import com.oracle.determinations.engine.CustomFunction;
    import com.oracle.determinations.engine.EntityInstance;
    import java.util.Random;

    SerializableAttribute public class RandomFunction extends CustomFunction {}
    public Object evaluate (EntityInstance entityInstance, Object [] items) {}

    If (items [0] == null) {}
    return 0;
    } else {}
    -Code to generate a random number
    }
    }
    }

    The xml extension is the following:
    -< extension >
    -< features >
    -name of the function = "RandomFunction" type return = 'number' >
    < name arg = "enterednumber" type = "number" / >
    < Manager platform = 'java' class = "com.oracle.determinations.examples.RandomFunction" / > "
    < Manager platform = "dotnet" class = "com.oracle.determinations.examples.RandomFunction" / > "
    < / feature >
    < / functions >
    < / extension >

    I placed the code extension xml under the Development\Extensions\Examples folder and the jar file named "JavaLibrary1" containing only the above mentioned code is under Development\Extensions\Examples\lib.

    The rule that calls the custom function is as follows:
    the random number = RandomFunction (figure)

    I get the error "Unable to create year instance of com.oracle.determinations.examples.RandomFunction" when I debug the project.

    Please tell me how to solve this problem.

    Thank you
    JAS

    Received your email and found the problem. The problem is the custom .NET, function definition is invalid, and must be (or must be removed).

    When you are debugging with screens, it uses a combination of dosages of Web for Java and the host of the debugger, which takes place in .NET. Although the modules runs into reality in the determinations of web, the debugger needs always to be able to open the modules locally for purposes of reflection (eg. obtaining a list of all possible attributes and the type of data). Even if the modules is not actually executed in .NET, it must therefore be loadable, which means that if you do not provide a custom function .NET Manager, it must be valid. This:

    >

    >

    Does not appoint a .NET class, that's why the debugger complains. Delete this line (only the Manager of java leaving intact) and your example works.

    >
    You also mentioned that the random function is not a good choice, that means that the engine of dosage will not work with the random function?
    >

    Yes, a random function will not work because the engine must be (and is optimized to be) deterministic - same entry should always produce the same result.

    It is difficult to imagine what you can in theory of random numbers for (otherwise), but if you don't need, you may either) front of seeds new sessions with random inputs as attributes of basic (requires customization of your host application, for example, web determinations) or b) generate the random number from other values in your modules such as the customer, name and date of birth. This should ensure that the same combination of inputs will result in the same number of 'random' each time.

  • Jar of custom function

    I made a custom for the web service call function.
    Now, the custom function is wrapped in a jar, which in turn needs external jar for his reference as "jaxrpc - api .jar '.

    During the execution of the project, it generates an error of "1 [http - 127.0.0.1 - 9000-Processor4] ERROR com.oracle.determinations.web.platform.servlet.WebDeterminationsServletUtility - java.lang.NoClassDefFoundError: javax/xml/rpc/Service»

    Where should I copy these additional pots, while they are taken over everything by deploying the application?

    Thank you!

    You have specified the path to the library (which is the classpath in Java terminology) for an inference listener, not a custom function. What you need is:

    "library path" acts like a classpath in any other java environment. The list of all the pots you use, make sure that they are available in the zip of modules by copying in the project include directory, and you should be set.

    Published by: Stephen French on 25 March 2012 18:08

  • OPM does not have the custom function Manager

    1. I have manually created an 'include' file in the 'Development' folder and add it to the project in the OPM.
    2. I put the program manager JAR in the "include" folder
    3. I created "" MyProject - config.xml "and place it in the"include"folder."
    4 OPM charge MyProject - config.XML when I generate the project. I found this by making the XML invalid, and OPM has complained about this.
    5. When you debug the project, OPM says:
    A custom function "isValidSPId" has been called and there is no custom function Manager. Choose a DLL and a class to provide a custom functions for this one.


    And I chose "Java" as a platform for the project properties.

    5. When you debug the project, OPM says:
    A custom function "isValidSPId" has been called and there is no custom function Manager. Choose a DLL and a class to provide a custom functions for this one.

    The debugger expects a function custom .NET, not a custom Java function

    And I chose "Java" as a platform for the project properties.

    I'm not sure what you mean - there is no such thing as a platform of modules - all rulebases are platform independent. Do you mean the setting of "Regression Tester - platform properties? If so, these effects only the platform used to run regression tests - not for compiling, debugging, or running with or without screens.

  • index on the column using custom function

    Can we create index on the column using custom function?

    http://www.dbasupport.com/Oracle/ora8/FBI.shtml

    Kind regards
    Kaila Mahesh

  • OPA Cloud - path

    Hello

    I am referring to this help page:

    Library of Documentation Oracle policy Automation

    We would like to know oh to use functionality 'path' (customer1 in the help page).

    I don't have successfully deployed a project in a specific path I want.

    Could you help me please?

    OPA used = cloud August 2015 (12.2).

    Orlando

    Hello

    In the edition of public cloud, you can't control the context path, you simply use the path that you have deployed your modules as the activation URL.

    In installation of private cloud, you have of course a total control on the context path on which you deploy your application (Web determinations)

    Concerning

    IAB

  • Personalized with custom functions callabe DataModel

    Hi all

    I am creating a data template customized with some features available in the QML code. This is the header file:

    #ifndef XMLDATAMODEL_HPP
    #define XMLDATAMODEL_HPP
    
    #include 
    #include 
    #include 
    #include 
    
    #include 
    #include 
    #include 
    #include 
    
    class XmlDataModel: public bb::cascades::DataModel{
    
    public:
        XmlDataModel();
        virtual ~XmlDataModel();
    
        // Required interface implementation
        virtual int childCount(const QVariantList& indexPath);
        virtual bool hasChildren(const QVariantList& indexPath);
        virtual QVariant data(const QVariantList& indexPath);
    
    public:
    
        Q_INVOKABLE
        void load(const QString& file_name);
    
        Q_INVOKABLE
        void setHeaderName(const QString& headerName);
    
    private:
        QVariant *m_sourceList;
        QString *m_headerName;
    
    };
    
    #endif
    

    And it's the QML app:

    onCreationCompleted: {
            console.log("main.qml loaded");
    
            _model.setHeaderName("hello");
        }
    

    But when the QML code try to run the setheaderName function, I get this error:

    TypeError: Result of expression '_model.setHeaderName' [undefined] is not a function.
    

    I have the _topSpeed is accessible by the QML code, but I don't know why I can't run my own functions...

    Can someone help me?

    Make a Q_OBJECT:

    class XmlDataModel: public bb::cascades::DataModel{  Q_OBJECT  ...
    
  • OPA Cloud certificates to import

    OPA dear developers,

    Our project is using cloud of the OPA, through the maintenance of the determinations Server service.

    I was asked by our integration team on "what are the certificates to import into the API gateway in the Production.  I'm not familiar with the certificates, but they assumed there because it is a safe place.

    I am unable to see in the guide to cloud OPA or in this forum.  Can you please help me find out what are these certificates?  If at all required?

    Thank you very much!

    According to what is required, you should be able to extract the public certificate from a browser. You should check with your integration team as to what format they require the certificate that it

    If you go to one of the web apps Cloud OPA any browser should have an option to retrieve the certificate. Here is an example of how do chrome on Windows 7

    1. go on the website https (e.g. https://mysite.custhelp.com)

    2. in the URL bar, click on the Green lock to the left of the URL.

    3. click the Connections tab and then click the Certification information

    4. in the certificate dialog box appears, click the Details tab, and then click the Copy to File button.

    5. the Certificate Export Wizard opens. Choose the format (as suggested by your integration team) and choose the name of the file.

    6. the file resulting .cer is the file you need to provide to your integration team.

Maybe you are looking for