Exposing Oracle Business Rule As Composite Service

Hi Gurus,
I have created a simple business rule and exposed it as composite service(without using any BPEL process) and deployed it into server successfully.Now i want to call that Business rule as webservice in my BPEL process, but i am facing some issues like, have to provide values of some fields like NCName,some attributes under bpelInstaces.
When i checked the Business Rule project in EMconsole,faced the same scenario.
Question: is it mandatory to use BPEL process at the time of exposing Business Rule?
Any suggestion is helpful to me..
Thanks in advance
Sharmistha

Hi Sai,
Thanks for the rply.
Yes, The "Will be Invoked as A Web Service" property is "Checked" for Business Rule Decision Function and the service name is also available.
when i am trying to get the wsdl of the web service it shows "Error 404-Not Found". (http://<host>:<soa port>/<service name>?wsdl)
*[e.g http://<host>:<soa port>/OracleRules_WSTest_DecisionService_1?wsdl]*
But the ruleset is available in the SOA Composer.
Still facing the same problem, can't invoke the Business Rule in my composite as Web-service.
Sharmistha

Similar Messages

  • Expose Business Rules as composite service

    I´m trying to invoke a business rules as web service, i create a composite aplication and add a busniess rule that is exposed as WS.
    For my rule a need only one input data "testData" but when i test my service from the Enterprise Manager is data is needed:
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
         <soap:Body xmlns:ns1="http://xmlns.oracle.com/OracleRules1/OracleRules1_OracleRules1_DecisionService_1">
              <ns1:callFunctionStateful name="">
                   <ns1:configURL></ns1:configURL>
                   <ns1:bpelInstance xmlns:ns2="http://xmlns.oracle.com/bpel">
                        <ns2:processId></ns2:processId>
                        <ns2:processVersion></ns2:processVersion>
                        <ns2:domainId></ns2:domainId>
                        <ns2:processURL></ns2:processURL>
                        <ns2:instanceId></ns2:instanceId>
                        <ns2:conversationId></ns2:conversationId>
    </ns1:bpelInstance>
                   <ns1:parameterList xmlns:ns3="www.xxx.com/crm/services/rules">
                        <ns3:Input>
                             <ns3:testData></ns3:testData>
    </ns3:Input>
    </ns1:parameterList>
    </ns1:callFunctionStateful>
    </soap:Body>
    </soap:Envelope>
    Do you know what are the other´s needed data?
    Thanks!

    I am able to test the business service i exposed as webservice without using BPEL .
    i sent some dummy values to the processId, processVersion , etc.
    Only required value is payload     @ * name NCName once i provided the correct value to it i received the correct response by executing the business rules.
    Thanks
    Phani

  • Expose Business Rules as composite service - ORAMED-03303 on call

    Hi folks,
    I'm on 11g PS2 and Jdeveloper 11.1.1.3.0 with Oracle SOA Composite Editor 11.1.1.3.0.25.57
    The problem: I get ORAMED exception when I call the business rule through its automagically created web service endpoint
    Among the many things which I've tried and didn't work:
    - create my own web service end point for the business process
    - turn on WS Addr for the web service end point
    The payload and returned fault are as follows:
    <messages>
    <input>
    <Invoke_ruleBlacklist_callFunctionStateless_InputVariable>
    <part name="payload">
    <ns0:callFunctionStateless name="processRequest">
    <bpelInstance>
    <processId>processRequest</processId>
    <processVersion>1.0</processVersion>
    <domainId/>
    <processURL>http://localhost:8001/soa-infra/services/default/TestInitiateProcess!1.0*soa_e2ef0cb6-2dbe-4047-96e3-7a8edff9fc16</processURL>
    <instanceId>70002</instanceId>
    </bpelInstance>
    <parameterList>
    <BlacklistRuleInput>
    <party>
    <partyId>string</partyId>
    <partyOrganisation>string</partyOrganisation>
    <partyName>string</partyName>
    </party>
    </BlacklistRuleInput>
    </parameterList>
    </ns0:callFunctionStateless>
    </part>
    </Invoke_ruleBlacklist_callFunctionStateless_InputVariable>
    </input>
    <fault>
    <bpelFault>
    <faultType>0</faultType>
    <operationErroredFault>
    <part name="payload">
    <errorInfo>
    <errorMessage>TestBusinessRules</errorMessage>
    </errorInfo>
    </part>
    </operationErroredFault>
    </bpelFault>
    </fault>
    <faultType>
    <message>0</message>
    </faultType>
    </messages>
    __Steps to reproduce:__
    Create a new project, add simple business rule, tick 'expose as composite service'. A Web service endpoint is automagically created
    To another project:
    - add a web service reference to the business rule ws endpoint
    - add an Assign and Invoke activity within BPEL towards the business rule
    Thanks in advance for reading and appreciate your guidance please

    Hi there jeem,
    I'm having a world of trouble with that same Rules composite example, the OrderApproval one. I've deployed it, and can invoke it, and yet get the following error each time I invoke it:
    HTTP/1.1 500 Internal Server Error
    Content-Type: text/xml; charset=UTF-8
    X-Powered-By: Servlet/2.5 JSP/2.1
    SOAPAction: ""
    Content-Length: 546
    Date: Tue, 31 Aug 2010 03:36:22 GMT
    X-ORACLE-DMS-ECID: 0000If6Dsbg0FwI5yrDCiW1CV7Dc0000A1
    X-HTTPAnalyzer-RuleName: Pass through :
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header/>
    <env:Body>
    <env:Fault xmlns:fpre="http://xmlns.oracle.com/OracleRules1/OracleRules1_DecisionService_1">
    <faultcode>fpre:operationErroredFault</faultcode>
    <faultstring/>
    <faultactor/>
    <detail>
    <errorInfo xmlns="http://xmlns.oracle.com/OracleRules1/OracleRules1_DecisionService_1">
    <errorMessage>default/OrderApproval!1.6*soa_5acae7d5-9fcf-4620-a9aa-8fb621faaf0d/OracleRules1</errorMessage>
    </errorInfo>
    </detail>
    </env:Fault>
    </env:Body>
    </env:Envelope>
    I've tried specifying the name attribute (I'm using "OracleRules1_DecisionService_1" for this) against the callFunctionStateless element, but am still getting this error!
    Can you yourself, jeer, or anyone else please help with this? I've turned on low level logging for the soa server, but the errors it's throwing really don't enlighten me very much at all!
    Any help will be very much appreciated.
    Regards,
    Rhian

  • Executing a Specific RuleSet within a Dictionary on Oracle Business Rules

    Good Day,
    How does one explicitly execute a specific ruleset in a Oracle Business Rules dictionary?
    While using the Business Rules Component inside our composite application(in JDeveloper), the only options available are:
    · Service: Decision Service name
    · Dictionary Name: The name of the dictionary that you want to use.
    · Name: Business rules component name.
    There is no section where we can select to execute only a specific rule set within a dictionary.
    Is this fuctionality not supported or is there a way around this, where we could be able to execute a specific ruleset within a dictionary?
    kind regards

    You get to choose the option of the Rule Dictionary When dragging in BPEL, if you have already built the bpel process with the rules call, you can do the following
    --> Open the .rules file in the Jdev
    --> Go to the Decision Fucntions Tab
    --> Select the decision function in the list( by default there would be only one)
    --> click on the edit icon
    --> In the bottom you would get to select the Rule Sets you want to be included in this function call(BusinessRulesSets to be included as part of the call)
    --> This would cater your requirement.
    Regards,
    Ajay

  • Problem in mapping Task payload parameters to Oracle Business Rules facts

    Hi all,
    We are using complex types from our project XSDs inside the Human Task payload. We intend to use these Human Task payload parameters to build routing rules using the Oracle Business Rules interface. Our observation is that when the complexity of these complex types increase, the business rules editor does not show these as facts that can be used in formulating rules.
    Has anybody faced such a problem before. Any help is appreciated.
    We are using the following link to add routing rules –
    http://docs.oracle.com/cd/E25054_01/dev.1111/e10224/bp_decision.htm
    Version details :
    ADF Business Components     11.1.1.60.13
    Java(TM) Platform     1.6.0_29
    Oracle IDE     11.1.1.5.37.60.13
    SOA Composite Editor     11.1.1.5.0.01.74
    Thanks,
    Yamini.

    Problem solved. There was an element in the xml schema that had nillable = true. Because of this the XML Fact for that element would no longer be available in the BPEL Process. Removing the nillable and generating the XML Facts again solved the missing variable problem.

  • Unable to create business rule in composite.xml

    Hi,
    When I am trying to create a business rule in composite.xml I am getting the error as shown below:
    java.lang.Exception: An attempt to add a schema to the schema browser failed!
    Please make sure schemas are in the appropiate directories.
         at oracle.tip.tools.ide.rules.dictionarybuilder.CreationDialogUtil.addSchema(CreationDialogUtil.java:129)
         at oracle.tip.tools.ide.rules.dictionarybuilder.CreationDialogUtil.createFacts(CreationDialogUtil.java:103)
         at oracle.tip.tools.ide.rules.dictionarybuilder.jdev.JDevDictionaryFileBuilder.createRuleDictionary(JDevDictionaryFileBuilder.java:285)
         at oracle.tip.tools.ide.rules.dictionarybuilder.RulesCreationDialog$1.run(RulesCreationDialog.java:101)
         at java.lang.Thread.run(Thread.java:662)
    It would be helpful if anyone has any suggestions or solution.
    Thanks & Regards,
    Padmaja

    Make sure there are no exceptions in the schema which you are using for defining the structure of Business Rule facts and try it again
    Thanks
    N

  • How to add Exception handling in Oracle Business rules Function

    Hello,
    We use to have good number of business rules in our application. So we need to have some functions in BR Composite.
    Can some one let me know how to handle exception in Oracle business rules exception( Regular try catch will not compile)
    is there any way please let me know.
    Edited by: Network22 on Mar 25, 2013 10:21 AM

    Why aren't you using por_custom_pkg.custom_validate_req_line to add extra validations.
    Ensure that profile POR: Enable Requisition Line Customization is set to Yes if you were to use po_custom_pkg for Requisition line validations.
    OAF calls por_custom_pkg at various points depending upon the values in Profile Options:-
    POR: Enable Req Distribution Customization
    POR: Enable Req Header Customization
    POR: Enable Requisition Line Customization
    Thanks,
    Anil Passi

  • Oracle Business Rules Rule Author

    Hi,
    Iam implementing Oracle Business Rules, while configuring rules with Rule Author, a problem is faced, a variable data which is set in one rule's action is not available to next rule's condition.
    i.e a variable set in one rule can not be used in other rule as condition.
    Is there any option to make it work,
    thanks & regards.
    anil

    I took the CarRental Java model and exposed two more attributes namely numPreConvictions and ableToDrive. Then I fed it a fact where the driver has 4 convictions and ableToDrive=true. When I ran it in the rule author tester it ran out of memory indicating it may have gone into a loop. I must be missing something here. The test RL function is below the rule set code.
    In my other test from outside the rule author it just won't fire the second rule (no out of memory issue). For that one I have a metalink SR 6560804.992 waiting for response. I attached some code to that one too. I got that one to work via Java Beans property change support.
    1. ruleset reAssertTest
    2.
    3. {
    4.
    5. rule checkConvictions
    6. {
    7. priority = 0;
    8. if
    9. (
    10. (
    11. fact carrental.Driver v0_Driver && (
    12. (v0_Driver.numPreConvictions > 2)))
    13. )
    14.
    15. {
    16. v0_Driver.ableToDrive = false;
    17. DM.println(v0_Driver.name+" has more than 2 convictions. set able to drive=false and re-assert ");
    18. assert(v0_Driver);
    19. }
    20. } //end rule checkConvictions;
    21.
    22. rule cannotDrive
    23. {
    24. priority = 0;
    25. if
    26. (
    27. (
    28. fact carrental.Driver v0_Driver && (
    29. (v0_Driver.ableToDrive == false)))
    30. )
    31.
    32. {
    33. DM.println(v0_Driver.name+" cannot drive");
    34. }
    35. } //end rule cannotDrive;
    36. }// end ruleset reAssertTest
    -- reAssertTest ---
    java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat( "MM/dd/yyyy" );
    assert (new carrental.Driver( "d111", "Dave", 50, "sports", "full",
    sdf.parse ("10/1/1969"), 4, 4, true ));
    pushRuleset ("reAssertTest");
    run();
    ---------------

  • Oracle Business Rule interoperability

    Hello,
    I'm evaluating Oracle Business Rule for a project that is using Bea Weblogic products (WLS 9.2, Aqualogic, etc.). I understand that the new Oracle Soa suite is based on either Weblogic 10 or Websphere. I would like to know if it is possible to create and deploy rules using OBR in other J2EE containers (such as Weblogic Server 9.2). In other words, does the OBR runtime have any dependency with the new Soa Suite?
    Thanks
    Luciano

    Business Rules 11g hasn't been certified with Websphere or JBoss yet. Also the latest version of business rules (recommended as it has Composer) 11.1.1.2 is only certified with WLS 10.3.2. The 10g version of business rules is certified with WLS 9.2 but not recommended as 11g provides much more functionality.
    This does not mean you cant take advantage of 11g in your environment. Oracle Business Rules can be implemented as standalone. It is licensed under WebLogic Suite, therefore you don't need to purchase SOA Suite.
    You will need to install WLS 10.3.2 and install SOA Suite to get the Business Rules, if you are not licensed for SOA Suite it is recommended to switch off the applications your not entitled to. Your Aqualogic can call Business Rules via web services.
    cheers
    James

  • OPA & Oracle Business Rules

    Can any one provide me the basic difference between OPA & Oracle Business Rules
    The difference between "OPA & Oracle Business Rules" link or document will help me a lot.

    OBR is a tool that is part of Oracle Fusion Middleware.
    OPA is an application for transforming policy documents into self-service interviews that help you make complex decisions, and for deploying those policies in conjunction with other applications across your enterprise for auditable decision-making.
    Suggest you also check out OTN:
    http://www.oracle.com/technology/products/applications/policy-automation/index.html
    Davin Fifield

  • Oracle Business Rules decision tables - export

    This is a beginner's question.. Suppose that you want to use an Oracle Business Rules (OBR) decision table, for example to check company’s eligibility for financing based on their country and business type (PRIVATE or PUBLIC). You would define a corresponding decision table in JDeveloper with true/false assignments in the Actions. Is it possible to export this decision table somehow? Ideally we would want to have a web service returning the decision table data as XML, which would then be used to generate PDF or a dynamic webpage etc. Then we would have OBR as the only point of data entry.

    I moved this to "SOA Suite and OC4J 11g Technology Preview"
    Business Rules - Decision Tables and Buckets
    Chandresh

  • Guideline for making java application to be used in oracle business rules

    hi'
    I am using Oracle Business Rules and trying to use one of my simple java program and trying to use it in rule author, however its showing "0 classes or packages have been imported.", please Tell me what guidelines to follow to program in Java so that we can use those Java classes in Rule Author.*
    I am using Oracle Rule author and in definition's Tab when I try to Import the classes then nothing is importing {color}"0 classes or packages have been imported."
    My Java class is
    package getDiscount;
    public class Test123 {
    private int i;
    public void setDiscount(int i) {
    this.i = i;
    public int getDiscount() {
    return i;
    public static void main(String args[]) {
    Test123 d = new Test123();
    d.getDiscount(100);
    void getDiscount(int quantity) {
    if (quantity &gt; 500) {
    setDiscount(10);
    System.out.println("Discount on this Quantity is--&gt;"+getDiscount());
    } else if (quantity &gt; 250 && quantity &lt; 499) {
    setDiscount(5);
    System.out.println("Discount on this Quantity is--&gt;"+getDiscount());
    } else {
    setDiscount(0);
    System.out.println("Discount on this Quantity is--&gt;"+getDiscount());
    Test class:
    package getDiscount;
    public class Test123 {
    private int i;
    public void setDiscount(int i) {
    this.i = i;
    public int getDiscount() {
    return i;
    public static void main(String args[]) {
    Test123 d = new Test123();
    d.getDiscount(100);
    void getDiscount(int quantity) {
    if (quantity &gt; 500) {
    setDiscount(10);
    System.out.println("Discount on this Quantity is--&gt;"+getDiscount());
    } else if (quantity &gt; 250 && quantity &lt; 499) {
    setDiscount(5);
    System.out.println("Discount on this Quantity is--&gt;"+getDiscount());
    } else {
    setDiscount(0);
    System.out.println("Discount on this Quantity is--&gt;"+getDiscount());
    Edited by: Yatanveer Singh on Dec 24, 2008 12:19 AM

    Error
    Cannot perform operation. 'RUL-01527: Received exception for loadClass. RUL-01016: Cannot load Java class lib.Demo. Please make sure the class and all its dependent classes are either in the class path, or user specified path. Root Cause: lib/Demo (wrong name: Demo) '
    Hide
    oracle.rules.sdk.exception.RulesSDKException: RUL-01527: Received exception for loadClass. RUL-01016: Cannot load Java class lib.Demo. Please make sure the class and all its dependent classes are either in the class path, or user specified path. Root Cause: lib/Demo (wrong name: Demo) at oracle.rules.sdk.mapper.RuleObjectHelper.loadClassOrPackage(RuleObjectHelper.java:2154) at oracle.rules.ra.uix.mvc.ClassSelectorEH.importClassesOrPackages(ClassSelectorEH.java:184) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at oracle.rules.ra.uix.mvc.BeanEH.genericHandleEvent(BeanEH.java:869) at oracle.rules.ra.uix.mvc.BeanEH.handleEvent(BeanEH.java:838) at oracle.cabo.servlet.event.TableEventHandler.handleEvent(Unknown Source) at oracle.cabo.servlet.event.TableEventHandler.handleEvent(Unknown Source) at oracle.cabo.servlet.event.BasePageFlowEngine.handleRequest(Unknown Source) at oracle.cabo.servlet.AbstractPageBroker.handleRequest(Unknown Source) at oracle.cabo.servlet.ui.BaseUIPageBroker.handleRequest(Unknown Source) at oracle.cabo.servlet.PageBrokerHandler.handleRequest(Unknown Source) at oracle.cabo.servlet.UIXServlet.doGet(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368) at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303) at java.lang.Thread.run(Thread.java:595)

  • Not able to access the web based RuleAuthor of Oracle Business Rules

    Hi ,
    I have Installed Oracle SOA Suite (11g) version from here .
    I have followed the steps in the Installation guide .
    I was able to install it successfully. At present I need to Work on the oracle Business Rules.
    As per the documentation I have tried to access the Rules author at the following URL
    http://localhost:7001/ruleauthor/
    But I was not able to access it.
    Please let me know if I need to install any other component to access Rule Author. please let me know if you need any more information.
    Thanks in advance for your time,
    Raja Kumar

    Back up all data.
    Launch the Keychain Access application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Keychain Access in the icon grid.
    Select the login keychain from the list on the left side of the Keychain Access window. If your default keychain has a different name, select that.
    If the lock icon in the top left corner of the window shows that the keychain is locked, click to unlock it. You'll be prompted for the keychain password, which is the same as your login password, unless you've changed it.
    Right-click or control-click the login entry in the list. From the menu that pops up, select Change Settings for Keychain "login". In the sheet that opens, uncheck both boxes, if not already unchecked.
    From the menu bar, select
    Keychain Access ▹ Preferences ▹ First Aid
    If the box marked Keep login keychain unlocked is not checked, check it.
    Select
    Keychain Access ▹ Keychain First Aid
    from the menu bar and repair the keychain. Quit Keychain Access.

  • How to use  create & ruleExecutionSet in oracle business rules

    I am trying to run the demo example of oracle business rule (car demo) using
    ruleExecutionSet.
    What are the changes thet i have to made in example in order to create & use the ruleExecutionSet to run the car demo .
    with regards
    saleem khan

    you are in the Oracle Forms Forum and your question is related to JDeveloper and Crystal Reports, you think those two are linked to Oracle Forms in anyway??
    Please post your questions in the appropriate Forum.
    Tony

  • Oracle Rules Manager vs Oracle Business Rules

    Hi
    Can someone explain the difference between Oracle Rules Manager and Oracle Business Rules.
    Is Oracle Promoting both the products?
    What I understand is that Oracle Rules Manager comes a part of the Oracle Database 10g R2 (and 11g) and Oracle Business Rules is a part of the SOA suite.
    Is there any difference in the positioning of both these products?
    Our client is evaluating various Rules engines in the market and we want to make sure that we choose the correct product.
    Thanks, Srini

    Igor S. wrote:
    He solves the same problem with rules and without. My question was what would be better? Why would you chose one over the other. I prefer rules that is easy to state, easy to read, and easy to implement. Clear text rules in Prolog being a firm favourite. :-)
    Using a rules engine, with a fairly complex API, in order to define rules? I would want very sound and very robust justification for that.
    Taking this EMP table example. If there is a single AddEmp() PL/SQL procedure interface for adding employees, it is simple matter to see what it does, how it does that, and test and debug that. The only knowledge needed is the ability to read and understand the source code. The same cannot be said of rules engines.
    As for the issue of updating AddEmp() with new rules. Edition redefinition takes care of versioning database objects. And in a far more controlled fashion than dealing with a rules engine that is dynamically update now! while the database is in use - and you have no real idea or real control over when exactly now! was.

Maybe you are looking for

  • Error while installing SAP IDES ECC6.0 on windows server 2003.

    Hi gurus,   I am getting error in installing SAP IDES ECC 6.0. In import ABAP step i am not able to execute all 19 services only 1 services is getting fail that is related to sapview.So,can anyone suggest me that how to solve this error and complete

  • Updating an iPhone 4 with iTunes 9!?

    I have just recently upgraded from an iphone 3 to 4, I want to sync it with my computer and transfer all my music/photos/apps/contacts etc. I have an old Mac which runs on OS X 10.4.11 and can only get iTunes 9. To get my phone recognized I need iTun

  • Overview of installation process?

    I have 4 StorEdge 3511 boxes, a SunFire V440, and a QFS license. I've located (been given, actually) some pretty good QFS doc, but I still need: 1) A nice overview of how to configure the 4 3511's to work together and provide LUN's or slices or whate

  • RAM upgrade in Macbook Pro 13" 2014

    Hello Everyone, Please let me know if I buy 13-inch MacBook Pro with Retina display with 8 GB of RAM, will I be able to upgrade it to 16 GB later. I mean is it solded to motherboard or fits into a PCI slot. Regards, Vikas

  • Lumia 610 Can't End Calls

    Hi, I just got my Lumia yesterday evening. I'm from Malaysia by the way. The problem presist whenever I'm making a call or even when someone calls me, I can't seem to end the calls. Whenever I'm making an outgoing calls, the screen goes blank, and al