How to Add the Employee Raises Java Class
10.3.10.6 How to Add the Employee Raises Java Class
Add the employee raises class. This executes the decision function. To add the employee raises class: 1. Select the Chapter10 project. 2. Right-click and select New.... 3. In the New Gallery, in the Categories area select General. 4. In the New Gallery, in the Items area, select Java Class. 5. Click OK. 6. In the Name field, enter EmployeeRaises. 7. Click OK. 8. Replace the contents of this class with the code shown in Example 10–11 . Example 10–11 DeptManagerFinder Class package com.example; import oracle.jbo.ApplicationModule; import oracle.jbo.ViewObject; import oracle.jbo.client.Configuration; import oracle.jbo.server.DBTransactionImpl2; import oracle.rules.rl.exceptions.RLException; import oracle.rules.sdk2.decisionpoint.DecisionPoint; import oracle.rules.sdk2.decisionpoint.DecisionPointBuilder; import oracle.rules.sdk2.decisionpoint.DecisionPointInstance; import oracle.rules.sdk2.exception.SDKException; import oracle.rules.sdk2.repository.DictionaryFQN; public class EmployeeRaises { private static final String AM_DEF = com.example.AppModule; private static final String CONFIG = AppModuleLocal; private static final String VO_NAME = EmployeesView1; private static final String DF_NAME = EmployeeRaises; private static final DictionaryFQN DICT_FQN = new DictionaryFQNcom.example, Chapter10Rules; private DecisionPoint dp = null; public EmployeeRaises { try { dp = new DecisionPointBuilder .withDICT_FQN .withDF_NAME .build; } catch SDKException e { System.err.printlne; } } public void run { final ApplicationModule am = Working with Oracle Business Rules and ADF Business Components 10-37 Configuration.createRootApplicationModuleAM_DEF, CONFIG; final ViewObject vo = am.findViewObjectVO_NAME; final DecisionPointInstance point = dp.getInstance; point.setTransactionDBTransactionImpl2am.getTransaction; point.setAutoCommittrue; point.setViewObjectvo; try { point.invoke; } catch RLException e { System.err.printlne; } catch SDKException e { System.err.printlne; } for DecisionPoint.NamedValue result : point.getResults{ System.out.printlnresult.getName + + result.getValue; } } public static void mainString[] args { new EmployeeRaises.run; } }10.3.10.7 How to Copy Dictionary
Parts
» Oracle Fusion Middleware Online Documentation Library
» What Are Rule Conditions? What Are Rule Actions?
» What Are Decision Tables? What Are Facts and Bucketsets? What Are Rulesets?
» Oracle Business Rules SDK Rules Designer
» Declarative Rules The RETE Algorithm
» How to Display and Edit XML Facts How to Reload XML Facts with Updated Schema
» What You Need to Know About XML Facts
» How to Display and Edit Java Facts What You Need to Know About Java Facts
» What You Need to Know About List of Values Bucketsets What You Need to Know About Range Bucketsets
» What You Need to Know About Bucketset Allowed in Actions Option
» In the Filter Query field, click insert test to insert a default test as
» How to Add Rules How to Define a Test in a Rule
» What You Need to Know About Advanced Mode Rules
» Introduction to Tree Mode Rules
» What You Need to Know About Tree Mode Rules
» How to Use Bucketsets to Provide Options for Test Expressions
» From the list next to the Add icon, select Rule.
» Introduction to Decision Table Operations
» Introduction to Decision Point API How to Obtain the Car Rental Sample Application
» How to Create Data Model Elements for Use with a Decision Point
» How to Add a Decision Point Using Decision Point Builder
» How to Create and Use Decision Point Instances
» What You Need to Know About Decision Point and Decision Tracing
» Testing Oracle Business Rules at Runtime Introduction to the Grades Sample Application
» Enter a name and test score and click Submit. This returns results as shown in
» Understanding Oracle Business Rules ADF Business Components Fact Types
» Understanding Oracle Business Rules Decision Point Action Type
» How to Call a Decision Point with ADF Business Components Facts
» How to Call a Decision Function with Java Decision Point Interface
» What You Need to Know About Decision Function Configuration with ADF Business Components
» How to Add the Outside Manager Finder Class
» How to Update ADF META INF for Local Dictionary Access
» How to Add the Employee Raises Java Class
» Working with Decision Component Metadata
» Introduction to Decision Components Decision Service Architecture
» Working with Advanced Mode Options
» Expression Builder Condition Browser
» Editing Decision Table Cells
» Understanding the Validation Panel Updating the Validation Panel
Show more