Is it possible to have business rules as a table

Hello Friends,
I have an application where in which I had altogether some x procedures, y fucntions and z triggers .
Right now I have implemented all the business rules in the procedures, triggers , and fucntons. Is it possible to have
the implementatkon of business rules as a table so that i can use the table as a rules engine .
I have done with java technologory usaing the business rules as a seperate external file and reading the file for business rules. How about oracle is it possible. If yes can any one give a scenario how i can implement.
thanks/kumar

As posted, your whole procedure could be replaced with:
procedure update_paycheck_deductions is
   cursor c1 is select * from MINC ;
   cursor c2 is select * from FINC ;
   v_flag_boolean boolean := false;
   v_famid number ;
BEGIN
   for i in c2 loop
      for j in c1 loop
         if ( i.famid = j.famid ) then
            v_flag_boolean := true;
            v_famid := j.famid;
         end if ;
      end loop ;
      if ( v_flag_boolean = true ) then
         update FINC set famtfedx = 0 WHERE famid = v_famid ;
         update FINC set fgovretx = 0 WHERE famid = v_famid ;
         update FINC set fpripenx = 0 WHERE famid = v_famid ;
         update FINC set frrdedx = 0 WHERE famid = v_famid ;
         update FINC set fsltaxx = 0 WHERE famid = v_famid ;
      end if;
      v_temp_sum_anfedtx := 0;
      v_temp_sum_angovrtx := 0;
      v_temp_sum_anprvpnx := 0;
      v_temp_sum_anrrdedx := 0;
      v_temp_sum_ansltx := 0;
   end loop;
end;Since none of the j.column != null and predicates will ever be true. This is roughly equivalent to your code:
SQL> WITH t AS (
  2     SELECT 10 amount, 'Y' col2 FROM dual UNION ALL
  3     SELECT null, 'Y' FROM dual UNION ALL
  4     SELECT 25, 'N' FROM dual)
  5  SELECT amount, col2, CASE WHEN amount != NULL and
  6                               col2 != 'N' THEN amount
  7                          ELSE 0 END eval_amount
  8  FROM t;
    AMOUNT C EVAL_AMOUNT
        10 Y           0
           Y           0
        25 N           0This would simplify Toon's merge statement to:
merge
into FINC f
using (select distinct j.famid, 0 amount
       from MINC j) m
on (f.famid = m.famid)
when matched then
update set f.famtfedx = m.amount
          ,f.fgovretx = m.amount
          ,f....      = m.amount
          ,f....      = m.amount
          ,f....      = m.amountWhich could be further simplified to:
update finc
set famtfedx = 0,
    fgovretx = 0,
where famid in (select famid from minc)Whiich strikes me as an odd business rule, specially for one dealing with (apparently) payroll.
I won't go into the fact that you will scan every record in once for every record in minc. I hope these are not large tables.
I have seen a number, and even worked on a a couple of payroll systems based on "business" rules in tables to avoid putting the rules in code. None of them were very good and perfomance tended to lag when there were more than a few people to pay.
You need to explain a lot more about what sort of business rules you want to put into tables.
John

Similar Messages

  • Is the possible to have Business Area for CVD Clearing Account

    Hi Friends,
    Is the possible to have Business Area for CVD Clearing GL Account?
    If yes, then how can it be done/configured.
    Pls advice.

    .

  • Is it possible to have Business Area for CVD Clearing Account

    Hi Friends,
    Is it possible to have Business Area for CVD Clearing GL Account?
    If yes, then how can it be done/configured.
    Pls advice.

    .

  • Smart view -Offline Dataforms can have Business rules,Cell Text ,Supporting

    Hi Gurus,
    Does the Offline Data form is having the Business Rules, Cell Text,Supporting Details if the original Dataform having all those.If yes how they can be retrived in Offline Dataform.
    Thanq

    Hi,
    I recommend reading some of the sections in the Smart View user guide > http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_sv_user/frameset.htm?ch14s01.html
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Business Rules in 10.1.2?

    Hi
    Is it possible to use Business Rules with Application Server 10.1.2?
    If so, do I have to get the ear-files from 10.1.3?
    On OTN, there is a page on SOA Suite, where you can download Business Rules, but it is only a preview release. Whre can I find the production release?
    Thanks,
    André

    It may be possible to Rules under 10.1.2, but Rules is not certified for 10.1.2 and not supported in a production environment.
    The Oracle Business Rules libraries are included with Application Server 10.1.3. Rules is not available separately.

  • 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

  • Track changes in business rule made using SOA composer

    Hi,
    I have business rules deployed on a server. Authorized user can change condition or any other thing in a business rule using soa composer. How can i track changes made in this business rule?
    i.e. I want to view the change and if possible who changes it.
    I am using SOA 11g
    Any help is appreciated
    Thanks

    Below document describes how to Monitor Decision Service Components and Engines.
    http://docs.oracle.com/cd/E29597_01/admin.1111/e10226/rules_mon.htm#CJAJJIJB

  • Business Rules Engines?

    Hi,
    I have experience with embedding "CLIPS" which is a C rules engine as a
    Forte Service Object which was easily wrappered using standard Forte
    wrapper strategy.
    Also, we have a sales rep in ATL who used to work @ ILOG and therefore
    competed with Nueron Data, and from various conversations with mutual Forte
    / Rules Engine customers I've learned it would be a complimentary integration.
    They all have some C-callable API and so a Forte Service Object would be a
    good client to the rules engine api due to our support for multi-threading
    when API is thread safe and additional option of replicating for load-bal
    when API isn't thread safe. The later concept is analogous to our use of
    DBSession object for interface with DBMS client api's.
    Be aware, the experiences I hear about with the mentioned rules engines is
    that there are not always business analysts truly capable of using the
    Rules development interfaces provided by the tools.
    So maybe the use of Forte Conductor's dynamic Process automation
    capabilities may also be a fit. If you want to discuss how, let me know.
    -jim
    Return-Path: <[email protected]>
    X-Sender:
    Date: Fri, 23 Jan 1998 13:19:03 -0800
    To: [email protected]
    From: Vic Brown <[email protected]>
    Subject: Business Rules Engines?
    Sender: [email protected]
    Reply-To: Vic Brown <[email protected]>
    Has anyone on this list integrated a COTS business rules engine,
    or components, into a Forte application? Specific products
    of interest would be those from Neuron Data, ILOG, USoft
    or, possibly, Vision Software.
    If so, comments? Type of application? War stories?
    Thanks.
    Victor Brown
    TRW Data Services
    Oakland, CA
    Phone: 510.645.3240
    FAX: 510.465.4811Jim Rice mailto:[email protected]
    Forte Software, Inc. http://www.forte.com
    South Eastern Tech Sales Mgr.
    301-721-1910 Corp: 510-869-3400 x2316

    The following Business Rule Solution uses POJO's and XML and meets the following criteria!
    Business Rule Solutions should be:
    Non-Industry Specific
    Appropriate and Affordable for any size business
    Enterprise-class solution (scalable, optimized, extensible)
    Remember: All businesses have business rules, and all businesses need an efficient way of managing and executing these business rules.
    What Business Rule Solutions should provide:
    Input Validation & Data Integrity
    Integration & Data Transformation
    Analytics
    Interpret clients Business Policies & Behaviors and clients run-time
    data and execute the appropriate process related workflow efficiently.
    The Return on Investment:
    ROI continues every day, week, month and year into the future!
    Simplify all program development through component reuse.
    Lowers software maintenance by a magnitude.
    Manages & Protects a company assets (Business Rules) in one
    repository.
    Provide Business Agility and Competitive Advantage!
    Further, I believe Business Rule Solutions are a higher level of abstraction of services that all other applications should use to implement the Model-View-Controller design pattern!
    Use the Contact Us! page for quicker responses. http://www.agilebusinessrulecomponents.com

  • Business rules for Adhoc

    Hi All,
    I have created a web form and I want to do the Adhoc analysis on it , when right click the form and go to Adhoc session , I see the "Business rules for Adhoc" is coming as "calculate Currencies" and "calculate Form". But I want to add my Business rule here ?
    I saved the Adhoc form but I an not able to edit it ? is it requires any provision ?
    I want to add my business rule to the Adhoc form.
    Appriciate your help
    Thanks

    I am just worried , is it really possible to attach Business rules for an Adhoc grid?

  • Business Rule variable in Essbase report

    Hi,
    I need to create a report where I will use the variable (created as Business Rules variable e.g.- [BudYear],[CurrVersion] etc) but it is not working. If I use [BudYear] it is just showing the dimension name in report as 'Year'. But when I use any exxbase substitution variable (e.g.- &CurYear etc) it is working fine. So, can it be possible to use business rules variable in essbase reports?
    Can it be possible to save the essbase report in comma delimited format (I am only getting tab delimited option). Please revert back.
    Thanks & Regards.

    As John rightly said, HBR rules are only applicable within HBR. What you want is an Essbase Substitution Variable. So long as the value does not get selected interactively in the HBR, you can use a Substitution Variable instead. An example would be something like current year -- this isn't going to get changed by the users via a Planning form or a prompt.
    HBRs, Calc Scripts, member formulas, load rules, and of course Essbase report scripts can all read substitution variables. See the DBAG for more information. Personally, I only use HBR variables, local or global, for items off the POV or driven by a run-time prompt.
    Unfortunately, a comma delimted file is a pain in a report script -- you have to make your columns fixed length and then use the MASK command to put the commas in -- ugh. However tab delimited files are an option. I've never found an IT group that couldn't handle the latter format.
    You may also go with the the DATAEXPORT calc script command -- a comma delmited output is possible with that command and of course it supports Essbase substitution variables.
    Regards,
    Cameron Lackpour

  • Implementaion of Business rules

    All-
    I have an interface to load data from oracle to netezza and one of the column is mapped like below:
    TargColumn2 = Column2 + #test
    Here I am taking the Column2 from source and adding it to value of the variable (#test) then mapped into the target column.
    I want to check some condition before inserting records into the table. Suppose the above scenario is returning the value 100 then I need to check the condition like > 100. I would like to insert records only when the condition is met.
    Is it possible to implement Business Rule to check some condition while inserting records through interface? Please advice?
    Thanks & Regards,
    Saravanan Rajavel

    Hi there,
    best way is indeed via the flow-control because you may implement several rules and get them executed all.
    You are thinking process instead of set manipulation probably
    If you have only one rule you may try to get a where clause applied on target
    jld

  • 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

  • Can members in business rule prompts be sorted

    Hi,
    we have business rules with prompts in accounts as Level 0 of a parent. the users are complaining that these leaf level members in the prompts selection window are not sorted. Is there a way we can display the selection list in prompts alphabetically?
    thanks

    Hello,
    the users see the alias or ID?
    When it is the ID, then I can agree what Sree said. If it is the alias, you have a bigger challenge. Sorting the children on Alias.
    I would recommend to use a relational table for creating the dimension files in EPMA or OutlineLoad.
    Regards,
    Philip Hulsebosch

  • Business Rules Security based on work flow

    Hello,
    How can we enable security on Business Rules, based on the workflow,
    for example,
    we have Business rule, that is attached to one input form, which opens a window for entering run time prompts for entering
    new asset details, and after entering he saves and the planning unit is promoted to next level,
    but on the input form, the Business rule is still visible, where by he can enter the the details though the planning unit is promoted,
    Is there any way that makes the Business rule access disables/hides as the planning unit is promoted?
    Thanks,
    murali.

    There is currently no out-of-the-box integration between workflow and business rule security.
    This thread may help with some alternatives:
    Workflow Problem
    - Jake

  • Business Rules in financial type application

    Hello!
    Is it possible to use business rules (validations) in financial type application? If it is possible please what the right parameters for "run_program validation" are.
    Thank you, in advance.

    Answered myself.

Maybe you are looking for

  • Music playback starts 5 secs in.

    Since i've upgraded to 3.0 i've had a really annoying problem in Music mode. When i'm skipping to the next track, tracks will often start 3-10 seconds in, which as you can imagine is really annoying, because if I then want to listen to that track I h

  • Drop huge Tablespace

    Hi Everybody, Here there are some steps that leaded me into a dead end, where I would like and greatly appreciate some help. 1. We have a tablespace FONC, dictionary managed, 136Gb spliced in 11 datafiles FONC1 to FONC11. 2. There it is a huge table

  • Printing problem after installing Adobe Reader XI.

    After installing Adobe Reader XI. I can not just print a document from email attachment without saving it to a "save the file as". Where before was able to just print the document. There is no reason I need to save these documents being printed. How

  • Need help with keylistener

    I'm a beginner at java and trying to make snake. Right now I just want to get the peg to move around the board based on what direction the user enters on the keyboard. I'm using the board class heres the board class code : import java.awt.*; import j

  • 2 XI (Development XI & Productive XI).

    hello, I want to ask some things... I want to have 2 XI (Development XI & Productive XI). Can I have them in the same machine? or do I hvae to have them seperate machines? If I have them in the same machine can I have only one SLD? Thank you very muc