Creating Business Rules programitically, please help

hi'
I am creating Rules programmatically, I am able to create rules by using AdvancedExpression but I am unable to set the value as "any" because if I use "AdvancedExpression" it creates "Advanced Test" where value is "fixed" and can not be customized,
this is easily done by Rule author, but programmatically I am not getting it . I have already checked the tutorial "http://download-west.oracle.com/docs/cd/B31017_01/web.1013/b28965/sdk.htm"
but there is no much info provided.
please help me how to do this.
Presently I am doing this-->
Pattern p1 = r.getPatternTable().add();
p1.setFactType("TsalesRequest");
p1.setVariable("TsalesRequest");
p1.setTestForm(Pattern.TEST_FORM_ADVANCED);
AdvancedExpression adv = p1.getAdvancedExpression();
adv.setValue("TsalesRequest.totalprice >=100" && "TsalesRequest.tenantid ==1");
I simply want to make a standard test with
TsalesRequest is a TsalesRequest and
TsalesRequest.totalprice >= 100 and value = "any"
thanks
Yatan

Please advice.
thanks
Yatan

Similar Messages

  • Problem using "Create Business Rule Design Definition" utility

    Hi everyone,
    I tried to create a business rule with Headstart Utilities - Create Business Rule Design Definition (Revision 6.0.0.20) and I got the following errors :
    Errors
    Message
    Combination of Message Prefix and Message Number (SGM-ENG) does not match format AAA-NNNNN.
    Activity aborted with ORACLE internal errors.
    -1400 ORA-01400: cannot insert NULL into ("HST50"."QMS_MESSAGE_TEXT"."LANGUAGE")
    I suppose that the utility concatenate the message prefix and the language to build the error message.
    Our Oracle Designer version is 6.0.3.9.0, Headstart 2.1.2 with patch 12.4 and Developper is 6.0.5.35.3
    Any patch available?
    Regards,
    Jerome Couture

    Tim,
    Headstart should be able to check out any tables you need.
    We think we have the user settings
    done correctly, but there may be something that we
    have missed. How can we get Headstart to
    automatically check-out the table(s) for which we
    want to run the Business Rules design transformer?The user settings you need are (see also pages 5-7 and 5-10 in the Headstart User's Guide):
    - Under 'Process the following objects', choose 'Checked out by anyone'
    - Also check the check box '... also Checked In objects'
    - Choose whether you want to automatically check out with or without lock
    If this does not help, please run the utility with log level 'Debug Detailed' (can also be set in the User Preferences) and report the last few lines of the log messages. They should give an indication of why the check out does not succeed.
    Hope this helps,
    Sandra Muller

  • Trouble Creating Business rules from EAS

    Hi All,
    I am new to Essbase and Planning. I am facing trouble creating Business rules from EAS. Every time I click on Business rules it shows login failed...

    Hi,
    Welcome! I believe it could be an access issue. Take a look at this: http://download.oracle.com/docs/cd/E12825_01/epm.111/hbr_admin_help/ch03s02s01.html
    I would also check the provisioning. Here are the Business Rules roles: http://download.oracle.com/docs/cd/E12825_01/epm.111/epm_security/apas08.html
    Hope it helps.
    Mehmet

  • Where and how to create business rules?

    Hi All,
    1) Where and how to create business rules?
    2) How to configure Rule Engines (Ex: JRULE Engine or any other Rule Engines)?
    3) Whar products are available for Rule Engines?
    Thanks in advance

    Hi,
    You have some options on business rules.
    If you just want to create business rules that are easy for business owners to edit without a lot of training, Oracle BPM has a simple business rules creation and end user edit capability. The benefits to using the rules that come with Oracle BPM are:
    <li> they are simple and easy to edit
    <li> end users can get up to speed quickly to edit them
    <li> when changed, the business process is immediately impacted
    <li> they can use the Oracle BPM business parameters that also come with the product
    Drawbacks are:
    <li> you can only use Project variables as the variable content inside of them
    <li> if a company already has a business rules engine, they are different that the company's standard
    Business rules engines have been used with Oracle BPM. If you are a consultant, first ask if there is a standard business rules engine that the company already has purchased that they use (e.g. iLog from IBM, Corticon...). If this is the case, you typically integrate to the rules using a web service interface that the business rules engine exposes.
    If they do not already have a business rules engine, consider Jrules. The benefits are:
    <li> it is a part of the Oracle BPM Suite that they might have purchased
    <li> version 11g of the Jrules is coming out soon with a friendly front end
    Hope this helps,
    Dan

  • OIM 11g R1 API to create business rule

    Hi,
    I have a requirement where new companies get created quite often and hence the roles for companies, access policies, authorization policies is to be created.
    I tried figuring out if there is any api to create business rules and authorization policies?
    Configuring companies (along with polices and business rules) is a tedious job and I am trying to find some way to automate it.
    Thanks,
    Ani

    When i go to the request templates, and try to create a new one, the "Create Role" is not a valid request type.
    I would suggest you create an authorization policy that grants permission to create roles. And then you can create an approval policy for action of "Create Role" and configure it so that you trigger an approval process.
    -Kevin

  • Why admin user cannot create Business Rules ?

    Hi All,
    Why admin user can't create Business Rules. We've to create other userID and give the required roles and then we create Busines rules right ? Pls. advice

    Historically, Business rules has an internal "native" admin user. When Hyperion is externalized, this internal id can conflict with the Shared Services admin user. Effectively the two admin ids start to conflict and cause issues. There are methods to resolve this issue, but I suggest as a rule not using the admin id for business rules, therefore bypassing the problem.

  • NPE when create Business Rules in SCA in JDEV

    I got this error message when try to create Business Rules in SOA composite with input/output.
    My JDEV Build is JDEVADF_11.1.1.6.0_GENERIC_111205.1733.6192.1
    java.lang.NullPointerException
         at oracle.tip.tools.ide.rules.dictionarybuilder.jdev.JDevDictionaryFileBuilder.createRuleDictionary(JDevDictionaryFileBuilder.java:377)
         at oracle.tip.tools.ide.rules.dictionarybuilder.RulesCreationDialog$1.run(RulesCreationDialog.java:101)
         at java.lang.Thread.run(Thread.java:619)
    When I tried to create Business Rules without input/output, it is created OK.

    I'm still having this problem. I checked that RMI is running but whenever I try to enter in Planning the logs write that it can't connect to the eas database, and HBRPluginData relational table isn't being filled.

  • 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 create Business rules framework

    Hi All,
    Currently I have a requirement to implement SAP Collections management in ISU without using Dunning process. I need to use Business Rules Framework (BRF) to configure rules, but I know about BRF to some extent (theoritically). Can someone please provide me the document which gives me an step-by-step procedure to create a simple BRF. I have looked into many documents related in this regard, but I am getting documents which explains at high level what is BRF.
    Please provide me the step-by-step procedure to create BRF in collections management.
    Thanks in advance.
    Venkat

    Hi,
    Please refer below link for the demo.
    http://www.sdn.sap.com/irj/scn/index?rid=/media/uuid/606f4b82-5b53-2c10-999b-9230dac9aa85&overridelayout=true
    Refer below link for presentation.
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/50879cee-f9b5-2e10-039e-b2d6c4b10e6b
    Thanks

  • How to create business rules from Jdeveloper 10.1.3.1.0

    Dear Experts
    Can I able to create Oracle Business rules from My JDeveloper 10.1.3.1.0. Using this link They are creating repositories, rule sets for their BPEL process, But in my version I cant found <BPEL components> under component palette. Why these features are missing, to get those additional features what I have to do.. ? Please suggest your best for me.
    Also Is it possible to build business rules from java sdk & from rule author..? If so means what is the difference, which one is having advantage.
    Thanks,
    Rajesh

    http://download.oracle.com/docs/cd/B31017_01/integrate.1013/b28981/decision.htm

  • How to create Business Rule?

    Hi All,
    i am new to Hyperion, can any one help me on the following issue.
    i want to crate a business rule to aggregate data from level 0 to parent level for one partcula data form and aloso have to calculate the data for the following member
    Cost per Unit = Total Revenue/Unit
    i have already have the member formula in outline for cost per Unit as follows
    Cost per Unit = Expense/Unit
    How i can create the business ruleto calculate the data for cost per Unit (Total Revenu/Unit) and the aggregation of data to the parent level in data form
    I have 12 dimensions and i am using 9.3.1 Version
    Thanks in advance
    Ram
    Edited by: Ram on Sep 2, 2011 2:36 AM

    i want to crate a business rule to aggregate data from level 0 to parent level for one partcula data form^^^These are oldies but goodies:
    http://camerons-blog-for-essbase-hackers.blogspot.com/2009/06/why-i-hate-and-love-business-rules-part.html
    http://camerons-blog-for-essbase-hackers.blogspot.com/2009/06/why-i-hate-and-love-business-rules-part_17.html
    Cost per Unit = Total Revenue/Unit^^^Are you asking if it makes sense to calculate this ratio at all levels of the database or only at the top level? If you mean that it only makes sense at level zero, you could use a FIX statement to select all level zero members and then perform the calculation. Based on the formula, I would think you could get away with a dynamically calculated member formula, assuming Total Revenue is dynamically calculated as well. Generally, level zero calcs in a business rule are only required if there's a percentage involved; if the formula is valid at aggregated levels, make it dynamic unless reporting performance (I have seen dense formulas that go across many, many blocks -- bad idea) falls off a cliff.
    Regards,
    Cameron Lackpour

  • How to create business rule for 'Integrity constraint - child not found'

    Hello, I am using JDeveloper 11.1.2.3.0.
    When an integrity constraint is violated an error message coming from database is displayed in my application. In this case is the error "integrity constraint (TableName) violated - child record found "
    How can I personalize the error shown in this case? I tried with EO business rules but I couldn't find this key, only "Key exists" or "UniqueKey".
    Can anyone help?

    Check Catch Me If You Can article. This should be handled there as one of the errors thrown in the model layer. Check the AdfmErrorHandlerImpl ...
    Timo

  • Jdk failed to create file in destination(please help!)

    Alright Im trying to dl jdk for my private server to compile and when i try to dl jdk it comes up with
    jdk failed to create file in destination
    This is getting frusterating please help!

    bamfs wrote:
    Alright Im trying to dl jdk for my private server to compile and when i try to dl jdk it comes up with
    jdk failed to create file in destination What version of the JDK are you trying to download and install?
    And is it the offline install?
    What reports this error, is it the browser or the JDK install program?

  • Creating Business Rule aborts with CX_WD_CONTEXT Exception

    Dear experts,
    when I want to create a business rule, it aborts with an error.
    The URL call http://......../sap/bc/webdynpro/SAP/GRFN_AM_GAF_BUSINESS_RULE was terminated because of an error
    Termination type: RABAX_STATE
    The error occurs, when I am trying to set up the output format of the business rule ...
    Has anybody of a guess what that could be?
    Thanks in advance
    Kind regards
    Bernhard

    solved

  • How to install windows 7 using usb as the bootcamp doesnot have the option of creating a bootable usb. please help

    I have an intel based mac with 10.6.8 mac os x. How to install windows 7 using usb as the bootcamp doesnot have the option of creating a bootable usb. please help

    Welcome to Apple Support Communities
    You can install Windows from a USB drive in one of these computers:
    - MacBook Pro with Retina display.
    - Mac mini (Mid 2010 and newer).
    - MacBook Air.
    - iMac (Late 2012).
    If you don't have any of these Macs, you can't install Windows through a USB drive. Instead, buy Windows on a DVD. Follow Apple's steps > http://support.apple.com/MANUALS/1000/MA1519/en_US/Boot_Camp_Install-Setup_10.6. pdf

Maybe you are looking for

  • Monitor light problem

    Hello, I have a quick question. Something has gone wrong with my monitor today, it had been fine until this morning. The screen on my computer is dim, like how it gets after you let it sit for a few minutes, before the screensaver comes on. However,

  • Removing filter for ALV grid

    Hi friends I am using an ALV grid to display my data. Once i used the filter in grid to filter some datas and go back to selection screen & executed the report again, the filter is still active and not showing all datas. How to avoid this. Regards Sa

  • Leopard 10.5.1 and Powerpoint

    I'm noticing that wheras in Tiger I could preview design templates in powerpoint, in Leopard I can't seem to do that. They show as generic icons. I can see presentations in preview, but not the individual design templates. Anyone notice this?

  • CFEXCHANGEMAIL not finding attachments for a UID

    I run into this same error a while back, and never found a solution for it, and now it is back and becoming more serious so I've got to figure out what is happening.  In a nutshell, I have a CF8 scheduled task that runs once an hour,and looks in vari

  • The very strange behavior.

    Dear friends! I have two simple files b.java: public class b{ a.java: public class a{ b bb = new b(); and have compiled them into class files. Then I install Servlet API servlet-2_3-fcs-classfiles.zip file and add it to classpath variable in the auto