Comparing two List values using Oracle Business Rules

Hi all,
i just need to know how to use the Oracle Business Rules to Compare 2 list types
say for example list1( 10,20,30,40) and List2(10,50,60). when i compare both the list using the business rules
the rule should return true if there is atleast one match..here 10.
any help is appreciated
Thanks,
karthik

Hi folks,
Please show the way....
Regards,
PavanKumar.M

Similar Messages

  • Comparison of dates using Oracle Business Rule

    Hi to everyone! I have a business rule that has as input parameter a complex attribute with a date field inside named expiration. I want to compare the expiration field with the current date using a comparison function. I don't know where find the current date. The function Calendar.getInstance() return the current date? Any help we'll' be highly appreciated.

    Calendar.getInstance() will give you the current date, and to find out the days between two dates; use Duration.days between(date1, date2) + 1

  • Testing rules designed using Oracle Business Rules in Oracle 11g SOA

    Hi.
    I want to test the rules designed in ORB from a java class or a JSP.
    I am looking for a way to provide input from a form/UI , then execute the rules and display the result back on form/UI.
    Any sample showing how to achieve this would be helpful.
    Thanks,
    Chinmay

    Hi Chinmay,
    Oracle's SOA testing framework allows any or all ofthe invoked services to be emulated. Simply click on the invocation in the process diagramand supply a response document to use instead of actually invoking the service. Tests can also make assertions about document content at any step in the business process. You can use a SOAP client to test you WS, such as Fiddler, generic SOAP UI, SOAP UI utility. You can also do your unit testing from the OBR Designer itself.
    Hope that helps!
    Cheers
    Anirudh Pucha

  • Using third party jars with Oracle Business Rules

    Hi
    I am working on Oracle AS 10g release 2.
    We are using Oracle Business Rules in integration with Oracle BPEL.
    While using third party jars however, Oracle Business Rules end is facing errors.
    Error during unmarshallingProvider com.sun.xml.bind.ContextFactory_1_0_1 not found
    oracle.classloader.util.AnnotatedClassNotFoundException:
    Missing class: com.sun.xml.bind.ContextFactory_1_0_1
    Dependent class: javax.xml.bind.ContextFinder
    Loader: oracle.xml:10.1.0_2
    Code-Source: /D:/oracleasr3/lib/xml.jar
    Configuration: <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in D:\oracleasr3\j2ee\home\oc4j.jar
    Can anybody help in figuring out where Jaxb jars(3rd party jars) are to be kept so that OAS access it?
    We tried using the applib folder to load the jars but we are getting class loading errors.
    When new instances are created, class loading is not happening.
    Pls help.
    Thanks
    Kavya

    Are you using Application Server Release 3 or Release 2? There are different versions listed in your mail.
    I think you probably want to add this as a shared library via EM and then import the shared library to your application with the application's xml config files.

  • 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

  • Use of decision table in Oracle Business Rule

    hello,
    I am using Oracle Business Rule beta version to develop a rule base application.
    I want to know that how i can make use of table to make decision on the basis of table data .
    thanx
    saleem

    hello,
    I am using Oracle Business Rule beta version to develop a rule base application.
    I want to know that how i can make use of table to make decision on the basis of table data .
    thanx
    saleem

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

  • 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

  • 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

  • JHeadstart, Oracle Business Rules and BPEL Process Manager

    Dear JHeadstart Team,
    I have some questions regarding integration of JHeadstart and Oracle Business Rules and Oracle BPEL Process Manager. As a matter of fact I don't have any work expriences with these tools so my questions may not be good and precise.
    1- Using a business rule engine can dramatically increase speed of development and ease of maintenance.I had a very good exprience in using JHeadstart and Headstart in the past but I wanted to know if it is possible to use Oracle Business Rules in conjunction with the JHeadstart ? If so, What steps should be taken? Is there any known issue about this integration? Does Oracle Business Rules have any interference with JHeadstart or it is only used in model layer during insert,update,delete?
    2- Is it possible to develope a system based on oracle work flow engine (Oracle BPEL Process Manager) using JHeadstart ? If so, What steps should be taken and how the changes in the flow of work would by applyed in a system developed by JHeadstart. Is there any known issue about this integration?
    Any help,link to documents or general guidelines would be highly appreciated.
    Thanks in advance,
    Navid

    Couple of things I would like to add, are the following.
    In the context of an ADF application usage of Oracle Business Rules most likely is in the business logic layer, but mind that it does not need to be restricted to that.
    Oracle Business Rules takes so called 'facts' as input, evaluates some rules based on that and change those facts or return some result. That might be checking a business rule as defined in the JHeadstart Developers Guide. But it might also return some value that is used in a navigation rule.
    Think about a page flow where after page A normally page C is presentend, but in case of some situation (like a customer ordered something and you want to present some special offering based on that) you want page B presented in between (i.e. A -> B -> C). Oracle Rules could be used to determine this page flow. This would be an example of using it in the controller layer (probably in combination with using facts that come from the model layer).
    Another remark that I would like to make, is that in my opinion it does not make much sense to use Oracle Rules for business rules that logically more or less are part of your data model (like end date must be on or after begin date). You typically use Oracle Rules to implement business rules that are of a volatile nature, meaning that day-to-day business may require a change of the rules. One example is the navigation case that I mentioned before. Another (typical) example would be a rule that defines when a customer is a Gold customer.
    Jan Kettenis

  • 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                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • ODI and Oracle Business Rules

    Hi, I have a question that hopefully someone can give light to.
    Our current requirement for an ODI solution is to have business users create or edit rules (not just table constraints, but actual complex business process rules) that they would like to apply to the data during integration. I was thinking of two possibilities for this:
    1. Load a rule file in ODI and then execute the rules in ODI.
    2. Use Oracle Business Rule.
    Between the two options, which is most likely possible? I have yet to fully explore ODI so I'm not sure if both of these options are feasible. If not, can someone give me sound ideas to work on for this requirement?
    Thanks,
    Jason

    Melli,
    I just started with semantic so won't have many useful ideas for at least some time.
    mostly there will be bugs and misunderstanding on my part.
    At this point i do see that the supplied library is not working properly . see my other thread. Fixing that would be really helpful.
    Let me know
    As of Composer - well let's just say its cost ineffective for organization to use on pilot project..

  • Oracle Business Rules with BPM

    Hi
    Please explain how to use Oracle Business Rules in Oracle BPM enterprise and Oracle BPM studio.
    Also please provide links for documents if available.
    Thanks in advance

    Hi,
    It's a good question for which I do not have the answer! I would also want to see some documentation or insights about the integration of OBR and BPM. Will be monitoring this thread.
    Thanks in advance

  • Oracle business rule beta

    hello everyone,
    I am developing an application using Oracle Business Rule .
    In the Rule author i want to use the variable in the form of array but
    unable to declare the variable .
    Any suggetion regarding this will be highle appreciable.
    Thanx
    saleem

    Saleem,
    Rule Author does not support array-typed variables. The best alternative would be to use one of the Java data structures like ArrayList.
    Phil

  • 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

Maybe you are looking for

  • My MacPro went to sleep in another language and now I can't Login

    I DESPERATELY NEED SOME HELP.  I had been working in a language different from my default keyboard when my computer went to sleep.  When I tried to resume by typing my password, it would not accept my usual keystrokes.  I assume that my computer is s

  • TS1398 How do I Disable open DNS resolver on my iPad.

    I just got an iPad for Christmas and I keep getting emails saying one of my devices is on an open DNS. How do I check my iPad to confirm whether it is  causing the problem. Thanks Ed

  • Duplicate element names

    hi all in uk hrms manager resposnibility  there is total compensation--element here i created a flexfield named arabic name and then to the already existing elements the user added arabic names now the prompt for update or correction appears and i cl

  • Help, xsl mime type not recognized by ie 5.5

    Hey, I've got a page that is doing it's own xml/xsl transforms in javascript. It uses XMLDocument.load( file location), which fails in IE 5.5. I think I've narrowed the problem down to this: If I enter the URL directly to the xsl: http://(myhost):888

  • Nace transaction

    Hi Friends, Can any one explain me what is condition records in nace and what is its use ? and what is form routine and what is its use. Kindly explain. Regards, DVNS