Oracle Business Rules.Bucket set

Hi all,
#1 How to add list of values into bucket set from a database and excel?
say for example if i want to add 100,200,300 in a bucket set where these values are populated from a database table or Excel.
how do i do that?
Any suggestions.
Thanks,
Raju
Edited by: 965698 on Oct 16, 2012 1:07 PM

Hi Raju,
You could investigate the use of the Java API of Oracle Business Rules, see http://docs.oracle.com/cd/E23943_01/apirefs.1111/e10663/toc.htm. It contains classes and methods to interact with bucket sets in an automated fashion.
Kind regards, Ronald

Similar Messages

  • Oracle Business Rules - Bucket Set - Sourced from Table

    How do I specify a bucket set data source be values from an existing table?
    I searched and have been unable to find out how to do this.
    It seems like a massive design gap if this in not possible.

    i have to create around 2000 to 3000 rules.i ll explain you a sample rule.
    if IDCode in 100,200,300,400,500
    then
    Assign(here i ll update some response element here)
    if you notice in my sample rule i have some values like 100,200....this values ill be placing in the bucket set.so if i want to place around 5000 values in bucket set it s very difficult to enter manually.
    so im asking , is there any automated way where i can load the values into bucket set directly from a database or excelsheet.
    Thanks,
    karthiik
    Edited by: karthik !! on May 19, 2010 5:17 PM

  • 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

  • Use of JSR-94 in oracle business rule

    I am developing an application using oracle business rules .
    I want to create a JSR-94 Rule Execution Set from Rule Sets in a Dictionary
    and want to run the application through created rule execution set.
    I have taken reference form OracleBusinessRulesUsersGuide.pdf but unable to
    run the installed_dir\rules\demo\car demo through the rule execution set.
    U can take the reference of car demo
    with regards
    saleem khan

    Hi,
    Thnaks for your reply but I've already tried with that and as I've mentioned above, it would return you an integer representing the day of the week;not the day.
    Thanks
    Edited by: user11930797 on 20 Sep, 2011 8:22 PM

  • Syntax errors in Oracle Business Rules carrental ruleset

    Hi,
    I'm using Oracle Business Rules Rule Author on Windows, version 10.1.3.0.0.
    I'm working with the OTN carrental sample. If i load the supplied file-based repository CarRepository from the %HOWTO_HOME%/dict directory, navigate to the RL tab -> Generate RL-code and select the 'Check RL-Syntax' button I always get the same error message:
    Error:'5}' is undefined at line ... column ... in [DM or vehicleRent]
    If I navigate to 'Test Rulesets' i get the same error, no matter what testfunction i use with the vehicleRent ruleset.
    When i test the sample with the supplied java code i don't get any errors.
    However, if I follow the steps in chapter 2 (javaFact) or 4 (XMLFact) of the Business Rules user guide and setup everything from scratch for a filebased repository i get the same error at runtime.
    I based the filebased repository on the supplied emptyrepository file.
    Seems to make no difference whether I use a filebased or a webdav repository.
    any help on this would be appreciated.
    Rob
    Message was edited by:
    [email protected]

    There are two problems here. First, there is a bug that causes this error string to be displayed incorrectly when using the RuleAuthor in any browser language other than English. If you change the browser language to English, you should see:
    <p>
    A syntax error is found. <br>
    Error:'carrental.Driver' is undefined at line 4 column 14 in DM
    <p>
    The cause of this problem is that carrental.Driver class is not in the classpath for Rule Author. This isn't covered in the how-to. See section 3.10 in the Oracle® Business Rules User’s Guide (B15986-01) (available from here).
    <p>
    From this doc:
    <p>
    Create a rule set you want to test. If the data model includes any Java classes, the
    Java classes must be included in the OC4J classpath. The easiest way to do this is
    to put the JAR files in the following directory, then restart OC4J:
    $ORACLE_HOME/j2ee/home/applications/ruleauthor/lib
    <p>
    or add it as a shared library using EM (specific instructions follow in the doc) and then add that shared library to RuleAuthor.
    Message was edited by:
    philvarner

  • Xpath and oracle business rules

    Hi; are there any examples that demonstrate using XPath in a rule?
    Any comments on whether oracle business rules might be a valid choice for an application that needs to enforce a set of, and varying, constraints on an incoming XML document.
    Thanks for the info.
    -Tim Watson

    The XPath support in the current version of Rules is for asserting portions (or all) of an XML document as facts. The Rules are then written against the elements in the XML that you are interested in.
    I can't say for sure without more details, but Rules would work for enforcing constraints on XML documents.

  • Oracle Business Rules Custom Functions

    Hi,
    I have an input fact with attributes A,B,C & D and an output fact with E, C & D. (C & D attributes are common in both facts)
    Whenever the rule matches, we are asserting new output fact by assigning a constant value to attribute 'E' and also the transactional values to C & D using input fact's C & D attributes.
    This way, we are making sure to return the response with matched transactional values.
    But we would like to do this by writing a custom function so that user need not assign this mapping manually whenever any new rule creates. User just assigns the constant value to attribute E but values to C & D attributes should be assigned automatically.
    Please let me know your suggestions on this.
    Regards,
    KK

    Hi Subha,
    Please find the answers inline :
    1. In Oracle Business Rules, can one rule invoke another rule?
    -- > Yes, once a rule gets executed, it might create more facts, that in turn fire another rule. It all runs around the inout/output facts.
    2. Can we make two rule sets dependent on each other?
    -- > Yes
    3. Can we return data of types String, Boolean, Integer, Double from a rule execution?
    -- > Yes, you can use java code with functions.
    4. Can we build complex logical AND, OR assertions in Oracle rules?
    -- > Java programming language is needed for this..
    5. Can we use custom business objects (not Java data types) within a rule?
    -- > Dont think so
    Regards
    Anirudh Pucha

  • Validate ADF UI field as per Oracle Business Rules

    Hi ,
    I have a requirement where the relationship between the various data fields are defined in Oracle Business Rule 11g inside BPM Project.I need to call these rules on ADF screens for data population.
    Eg, If there are two fields on ADF UI,field1 and fiedl2.
    Possible combinations of the two field are:
    Field1 Field2
    A B
    C D
    E null
    The rules are part of OBPM 11g project as customer can change the rules through composer at run time as per business need.
    How can i achieve this requirement.Please help urgent.
    Regards...

    Hi Daniel
    Lets say i have two attribute 'Product Code' and 'Department id'.The relationship between the two attributes is defined in Oracle Business Rule.
    eg.
    If Product Code is '111' then Department is 'Finance'
    If Product Code is '222' then Department is 'Inventory'
    The values for each of the attribute is defined in a database
    Product Code Table
    Value Description
    111 SalaryAllowance
    222 Current Stock
    Department Table
    Value Description
    Finance Handles Payroll
    Inventory Handles Packaging
    I am displaying these two attribute on the ADF UI as dropdowns. If I select '111' from the product code dropdown then the value in Department dropdown should automatically be set as 'Finance'.I need to trigger the validation/relationship between the attributes from business rules.
    The reason for keeping the relationship in rules is because business wants to change these relationships at run time.
    Hope the scenario is clear to you.
    Regards...

  • 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 Rule Author(Oracle Business Rules)

    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 think you would get better response on the question if you post the same question to the SOA Suite forum (SOA Suite
    A

  • Oracle Business Rule

    Hello Everyone,
    I am using Oracle Business Rule in an application for calculation purpose on the basis of some price values. The price values may be changed according to date. I want calculate the value by any previous date price.
    Example price is Rs. x/unit valid upto 10-may-2006
    price is Rs. y/unit valid from 11-may-2006
    I want to calculate values with x/unit on 20-may-2006.
    Every suggestion will be highly appreciable
    thanks
    saleem khan

    If I understand you correctly then you would create two 'Rule Sets' for the same field.
    Example:
    Field: date Operator: <= 10-may-2006 Then: x/unit
    Field: date Operator: >= 11-may-2006 Then: y/unit
    Both rulesets will be validated when the API is called

  • Oracle Business Rule Engine

    Hello Everyone,
    I am using Oracle Business Rule in an application. I want to know that is it possible to call a rule
    set from another rule file.
    Suppose there are two rule files RuleFile1 and RuleFile2.
    We have invoked RuleFile1 the by any how can we invoke the rule set from RUleFile2.
    thanks
    saleem

    Yes, it is.
    In RuleFile2, just add
    include file:RuleFile1.rl;
    Then, all of the elements in RuleFile1.rl can be referenced from RuleFile2. Since RL is interpreted, the file must be available at runtime.
    --Phil                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • 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

  • 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

  • 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.

Maybe you are looking for

  • Verity and PDFs

    Hi All, Is there any way I can get verity to return the page number's of the PDF's that cfsearch finds?

  • It seems to strike while editing in iPhoto.

    Chiming in with kernal panics, it seems to strike while editing in iPhoto. Some details:   System Version:          OS X 10.8.2 (12C60)   Kernel Version:          Darwin 12.2.0 Hardware Overview:   Model Name:          iMac   Model Identifier:       

  • How can I fix this line please

    Hello Everyone, I have in a form the following line <*font size="1" face="Verdana, Arial, Helvetica, sans-serif"> Champs obligatoires </td><td align="right"></td></tr> </table></td></tr></table></form> When I hit apply the words champs and obligatoir

  • 10.5.2 installed, mount-msdos 100% cpu

    So.. I installed Os 10.5.2 on my macbook.. after 20-30 seconds, activity monitor shows system at 100% CPU.. Doing a ps -ef, shows MOUNT-MSDOS and parent proces launchd using up 100% of one the processors. It makes the machine completely unusable. I b

  • Update Error - MDM

    Hi, I update a record first time in MDM via an external program.It gets updated in MDM but the record gets locked.Next time i try updating the same record it does not allows me.I am using ModifyRecordCommand API to update.Do i need to do anything to