Business rules in HTML DB

Dear developer of HTML DB
HTML DB enables to represent many "Business Rules" in a so good format that I can show the edit pages of my application to business people as well.
But I do not want to give them the possibility to edit my application. So I can not give them the role "Developer". I want to give the role "Reviewer".
Is It possible in my workspace ?
Thank You

Dear developer of HTML DB
We have so many questions as "HTML DB" is a "black box". We do not see the code, but we can see the repository.
We can change/add rules in this repository.
So, as we can see the tables and triggers of the schema "FLOW%" then we can add some additional triggers.
To solve this problem of business people
1. we can define them as developers of HTML DB
2. and restrict their updates in a trigger of the table
WWV_FLOWS (as you update this table)
as you update this table everywhere
update wwv_flows set
last_updated_on = sysdate,
last_updated_by = wwv_flow.g_user
We can add a new trigger with the following rule
if user not in ('A','B','C') then
raise_application_error(-20100,'Do not change !');
end if;
What do you think about this solution ?
I think that it solves the problem today ?
Andres

Similar Messages

  • 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 migrate business rule

    I have created one Configurable business rule for Position in Development instance...
    I want to Migrate business rule created in dev instance to PROD instance.
    I want the steps to Migrate. Is there any FNDLOAD command available for this..???
    Thanks in Advance...

    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

  • Business Rules in Planning 11.1.2.1

    Hi,
    I'm having a strange problem in Planning 11.1.2.1 dataforms. I added a business rule and selected Run on Save, Use members in dataform and Hide Prompt in a dataform. However when I press the save button, the Business Rule prompt appears, and the values of the prompt parameters are not filled with the current page selection (the specific business rule has 2 run-time prompt variables), while I was expecting it to simply start running without showing the prompt and ask the members to the user.
    Anyone knows what could be the problem?
    Thank you

    Its worth having a look at below link:
    http://download.oracle.com/docs/cd/E17236_01/epm.1112/hp_admin/ch06s09s04.html
    Make sure that RTPs which you have created in EAS are of type Member not Members.
    Cheers..!!!

  • Fact Not Found Business Rules Error

    Hi
    I am encountering the following fault while executing one of the condition of the rule. The other condition works fine. Can anyone please tell me the reason for this error, I have asserted the fact with values and also am not getting any errors in the Business Rule Validation Messages, so i am not sure why I am encountering the following error.
    <bpelFault><faultType>0</faultType><operationErroredFault xmlns="http://xmlns.oracle.com/CustOraBR4/CustOraBR4_DecisionService"><part name="payload"><errorInfo xmlns="http://xmlns.oracle.com/CustOraBR4/CustOraBR4_DecisionService"><errorMessage>Fact not found in the rule engine working memory, rule session execution failed. The rule session 360002 failed because an instance of the fact com.oracle.xmlns.bpm.bpmobject.data.bruleoutput.BRuleOutputType could not be found in the working memory of the rule session. This is most likely a rule modeling error. The decision service interaction expects the fact instance to exist in the working memory of the rule session. Check the rule actions in rule designer and make sure that a fact of the expected type is being asserted. If the error persists, contact Oracle Support Services. 360002</errorMessage></errorInfo></part></operationErroredFault></bpelFault>
    Regards
    Venkat

    Hi,
    Just checked my old backup file and you are right. It does not have the business rules. One reason I can think of is they are not part of UJFS structure and in fact uses a table driven. All the rules can found with the tables UJP*.
    You can print them into html and copy into an excel. From there I think you have to manually copy into the target system. If you are using transport route, you do not have worry as the transports cover the table driven rules with the required config in the UJT_TRANS_CHG table.
    Thanks,
    Sreeni

  • Solving "COMMIT business rules" on the database server

    Headstart Oracle Designer related white paper
    "CDM RuleFrame Overview: 6 Reasons to get Framed"
    (at //otn.oracle.com/products/headstart/content.html) says:
    "For a number of business rules it is not possible to implement these in the server
    using traditional check constraints and database triggers. Below you can find two examples:
    Example rule 1: An Order must have at least one Order Line ..."
    But, one method exists that allows solving "COMMIT rules" completely on the database level.
    That method consists of the possibility of delaying the checking of the declarative constraints (NOT NULL, Primary Key, Unique Key, Foreign Key, Check Constraints) until the commit
    (that method was introduced first in the version 8.0.).
    E.g. we add the field "num_emps" to the DEPT table, which always has the value of the number
    of the belonging EMP rows and add DEFERRED CK which uses the values from that field:
    ALTER TABLE dept ADD num_emps NUMBER DEFAULT 0 NOT NULL
    UPDATE dept
    SET num_emps = (SELECT COUNT (*) FROM emp WHERE emp.deptno = dept.deptno)
    DELETE dept WHERE num_emps = 0
    ALTER TABLE dept ADD CONSTRAINT dept_num_emps_ck CHECK (num_emps > 0) INITIALLY DEFERRED
    Triggers that insure the solving of the server side "COMMIT rules" are fairly simple.
    We need a packed variable that is set and reset in the EMP triggers and those value
    is read in the bur_dept trigger (of course, we could have place the variable in the package
    specification and change/read it directly, thus not needing the package body,
    but this is a "cleaner" way to do it):
    CREATE OR REPLACE PACKAGE pack IS
    PROCEDURE set_flag;
    PROCEDURE reset_flag;
    FUNCTION dml_from_emp RETURN BOOLEAN;
    END;
    CREATE OR REPLACE PACKAGE BODY pack IS
    m_dml_from_emp BOOLEAN := FALSE;
    PROCEDURE set_flag IS
    BEGIN
    m_dml_from_emp := TRUE;
    END;
    PROCEDURE reset_flag IS
    BEGIN
    m_dml_from_emp := FALSE;
    END;
    FUNCTION dml_from_emp RETURN BOOLEAN IS
    BEGIN
    RETURN m_dml_from_emp;
    END;
    END;
    CREATE OR REPLACE TRIGGER bir_dept
    BEFORE INSERT ON dept
    FOR EACH ROW
    BEGIN
    :NEW.num_emps := 0;
    END;
    CREATE OR REPLACE TRIGGER bur_dept
    BEFORE UPDATE ON dept
    FOR EACH ROW
    BEGIN
    IF :OLD.deptno <> :NEW.deptno THEN
    RAISE_APPLICATION_ERROR (-20001, 'Can''t change deptno in DEPT!');
    END IF;
    -- only EMP trigger can change "num_emps" column
    IF NOT pack.dml_from_emp THEN
    :NEW.num_emps := :OLD.num_emps;
    END IF;
    END;
    CREATE OR REPLACE TRIGGER air_emp
    AFTER INSERT ON emp
    FOR EACH ROW
    BEGIN
    pack.set_flag;
    UPDATE dept
    SET num_emps = num_emps + 1
    WHERE deptno = :NEW.deptno;
    pack.reset_flag;
    END;
    CREATE OR REPLACE TRIGGER aur_emp
    AFTER UPDATE ON emp
    FOR EACH ROW
    BEGIN
    IF NVL (:OLD.deptno, 0) <> NVL (:NEW.deptno, 0) THEN
    pack.set_flag;
    UPDATE dept
    SET num_emps = num_emps - 1
    WHERE deptno = :OLD.deptno;
    UPDATE dept
    SET num_emps = num_emps + 1
    WHERE deptno = :NEW.deptno;
    pack.reset_flag;
    END IF;
    END;
    CREATE OR REPLACE TRIGGER adr_emp
    AFTER DELETE ON emp
    FOR EACH ROW
    BEGIN
    pack.set_flag;
    UPDATE dept
    SET num_emps = num_emps - 1
    WHERE deptno = :OLD.deptno;
    pack.reset_flag;
    END;
    If we insert a new DEPT without the belonging EMP, or delete all EMPs belonging to a certain DEPT, or move all EMPs of a certain DEPT, when the COMMIT is issued we get the following error:
    ORA-02091: transaction rolled back
    ORA-02290: check constraint (SCOTT.DEPT_NUM_EMPS_CK) violated
    Disvantage is that one "auxiliary" column is (mostly) needed for each "COMMIT rule".
    If we'd like to add another "COMMIT rule" to the DEPT table, like:
    "SUM (sal) FROM emp WHERE deptno = p_deptno must be <= p_max_dept_sal"
    we would have to add another column, like "dept_sal".
    CDM RuleFrame advantage is that it does not force us to add "auxiliary" columns.
    We must emphasize that in real life we would not write PL/SQL code directly in the database triggers, but in packages, nor would we directly use RAISE_APPLICATION_ERROR.
    It is written this way in this sample only for the code clarity purpose.
    Regards
    Zlatko Sirotic

    Zlatko,
    You are right, your method is a way to implement "COMMIT rules" completely on the database level.
    As you said yourself, disadvantage is that you need an extra column for each such rule,
    while with CDM RuleFrame this is not necessary.
    A few remarks:
    - By adding an auxiliary column (like NUM_EMPS in the DEPT table) for each "COMMIT rule",
    you effectively change the type of the rule from Dynamic (depending on the type of operation)
    to a combination of Change Event (for updating NUM_EMPS) and Static (deferred check constraint on NUM_EMPS).
    - Deferred database constraints have the following disadvantages:
    When something goes wrong within the transaction, then the complete transaction is rolled back, not just the piece that went
    wrong. Therefore, it becomes more important to use appropriate commit units.
    There is no report of the exact row responsible for the violation nor are further violations either by other rows or of other
    constraints reported.
    If you use Oracle Forms as a front end application, the errors raised from deferred constraints are not handled very well.
    - CDM discourages the use of check constraints. One of the reasons is, that when all tuple rules are placed in the CAPI,
    any violations can be reported at the end of the transaction level together with all other rule violations.
    A violated check constraint would abort the transaction right away, without the possibility of reporting back other rule violations.
    So I think your tip is a good alternative if for some reason you cannot use CDM RuleFrame,
    but you'd miss out on all the other advantages of RuleFrame that are mentioned in the paper!
    kind regards, Sandra

  • Auto email after execution of scheduled business rule

    Hi All,
    We have certain business rules which will be scheduled on daily, weekly and monthly basis. Our requirement is that every time when a scheduled business rule is executed a email is sent to the administrator (specifying the name of BR and time of execution). Can somebody tell us that how is that possible?
    We are on 11.1.2
    Thanks in advance.
    Regards.

    It may be worth having a read of :- http://john-goodwin.blogspot.com/2009/02/idea-for-this-blog-originates-from-post.html
    Another possibility if you are scheduling from command line is to use free command line email utility e.g. blat.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Business Rules and BPEL integration

    hi
    can u provide me information on how to integrate Business Rules with BPEL. do provide me any documents related to this, if any.

    Hi,
    In the new 10.1.3 release (scheduled to hit the streets this summer) Oracle provides business rules support in the BPEL product.
    Supported in 10.1.3 are Ilog Jrules as well as Oracle's own business rules engine that will be contained in the package.
    More info on new features can be found in a recent web seminar for which the replay can be obtained here: http://www.oracle.com/technology/products/ias/bpel/htdocs/webinars.html.
    Hth, Sjoerd

  • Business Rules and Calc Manager

    Can anyone help with these questions:
    1) Are you supposed to be able to run business rules from/via Smart View?
    2) Since HBR is being decomm'd in 1.2.2 and Calc Manager fully replaces it, are you supposed to be able to run Calc Mgr calcs from/via Smart View
    3) Can you create Run Time Prompts in Calc Manager for an Essbase (not Planning) connection only? Since you can in HBR surely you can in Calc Mgr? It was greyed out in my test.
    Thanks
    Steve

    Hi Steve,
    To date Smart View only runs rules against Essbase when using Hyperion Planning. Using rules in conjunction with forms is one of the value propositions of Hyperion Planning.
    The guide is pretty clear the RTP's are for Planning only.
    Suggest you take a read through the Calculation Manager admin guide available at: http://docs.oracle.com/cd/E17236_01/epm.1112/cmgr_admin.pdf
    And the full EPM product docs are always nice to have on hand from http://www.oracle.com/technetwork/middleware/performance-management/documentation/index.html or from the quick link area on my blog.
    Regards,
    John A. Booth
    http://www.metavero.com

  • Download for business rules

    Hi,
    I am new to Oracle BPM and I want to download Business Rules,(the product of BPM SUITE).Please guide me with the link and essential information.

    Hi user;
    Please check below and see its helpful:
    http://www.oracle.com/technologies/bpm/bpm-suite.html
    http://www.oracle.com/technology/products/bpm/index.html
    Regard
    Helios

  • 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

  • Business Rules - Repository View

    Hi All,
    I am going through the Business Rules Option in the EAS Console. Regarding to this I have doubts on:
    1) I saw, Rules Link. What is this? Is this also a Business Rule?
    2) I saw Macros. What is this used for?
    3) Global Variables. I know, this will be the variable declaration area.
    4) Projects..
    Can you please explain me on what kind of scripts can be stored under each Links. Even the Script under Rule link is also a Business Ruel?
    Please suggest me to any documents for the same.
    Regards,
    Upendra Bestha....

    Hi,
    If you have a read of :- http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_hbradmin/frameset.htm?ch02.html
    It should answer all the questions you have asked.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Business Rule Running issue??

    I am having all the BR's in my webform Run on Save
    When the rule runs on save, the rule is taking a lot of time to complete and may it is cretaing loops, may be since there are more than one rule.
    And if I run that rule by double clicking the rule on the same webform it gets completed in 30-40 seconds.
    I don't know what could be the issue
    I don't think there is a problem in my rule because that rule runs quickly by double clicking it.
    Please help!!
    Recenltl I also got error opening Planning
    The eror says:
    Failure to connect to the Apache Bridge
    No Backend server available for connention.
    Thanks

    You could look into setting business rules to run in the background after a set time period, this may help issues with timeouts on the web server.
    Have a look at :- http://download.oracle.com/docs/cd/E17236_01/epm.1112/hp_admin/ch02s07s05.html
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Dynamic Business Rules - Where to place

    Hi,
    I am doing POC for a fortune 10 client and they have some business rules before crud actions are going to take place in DB. We have very minimal tables (less than 10) and its small application but web service (btw, this has to be webservice app) consumers are around 200 per sec.
    The requirement with respect to business rules are also minimal (like 30 rules for entire project) but these rules will change very often(like once in a month). Assume these rules are on the enterprise level and not on the application level.
    I am looking for best possible solution to achieve by developing small rules engine or putting them into another xml and apply transformation once request arrives.
    I am confused of deciding which is better like putting business rules in xslt vs java business object. XSLT is allowing me to change rules with minimum impact on the system but it is hard to maintain and adding new rules (we are not anticipating any more new rules within next two years).
    On the other hand, If I put in Java business object then it allows lot of flexibility to inject new rules and easy to maintain with cleaner code.
    So, in short my questions are below.
    1. Is it good practice to put small set of business rules in xml/xslt?
    2.are there any alternative business rules engines are available?
    Any other suggestion related to above discussions are welcome.
    Thanks.

    I believe this is what you want.
    DROOLS - drools - dynamic rules for java
    http://sourceforge.net/project/showfiles.php?group_id=37037
    http://www.onjava.com/pub/a/onjava/2005/08/03/drools.html?page=2
    good luck.

  • How to undeploy business rules deployed in Planning

    I am unable to undeploy test business rules deployed on Production. Deleting from calculation manager leaves BR in planning.. is there in any other option??

    Try this http://docs.oracle.com/cd/E17236_01/epm.1112/cmgr_admin/ch07s03s01.html
    "To remove a business rule or ruleset from an application after you deploy the business rule or ruleset, make it ineligible for deployment by clearing the check box next to its name in the Deployment View. Then you can perform a full deployment of the application by right-clicking it and selecting Deploy."
    As you've already deleted rule from Calc manager try to create empty rules with the same name (if first full deployment wouldn't help)
    Edited by: vvipirailo on Jun 6, 2012 10:42 AM

Maybe you are looking for

  • Error When Trying To Download CS5 Master Collection

    When I try to Download the CS5 Master Collection Trial, using the downloader provided it only downloads the .exe file but the compressed file is not downloaded. It says calculating time 0bytes out of 276bytes transfer. If i try to directly download t

  • How to extend index

    Hi: I got this error while running emca "ORA-01654: unable to extend index SYSMAN.PK_MGMT_JOB_EXECPLAN". How to fix it? I have 11g on xp. Thank you for your help.

  • Hierarchy ALV - Layout

    Hi al!! Does anybody know if in a Hierarchy ALV it is possible to have columns separated by lines? Thanks in advance & kind regards, Marce.

  • Finder doesn't show any windows

    Hi, Recently I got a strange problem, sometime Finder doesn't show any window, I mean if I click on the Finder icon on the Dock no window is shown. Even if I kill Finder (via Terminal using "killall Finder"), also using ⌘+TAB or the App exposuré gest

  • CS4 Multi Camera Re-recording not working!

    Ive started using multi camera monitor in CS4 for the first time today. Have used multi camera in the past a lot in CS3 with no problems. In CS3 when I made a mistake when switching between cameras I could just go back and it would over write everyth