How to Update ADF META INF for Local Dictionary Access

Working with Oracle Business Rules and ADF Business Components 10-23 final ApplicationModule am = Configuration.createRootApplicationModuleAM_DEF, CONFIG; final ViewObject vo = am.findViewObjectVO_NAME; final DecisionPointInstance point = dp.getInstance; point.setInputsnew ArrayListObject{{ addvo; }}; try { point.invoke; } catch RLException e { System.err.printlne; } catch SDKException e { System.err.printlne; } } public static void mainString[] args { OutsideManagerFinder omf = new OutsideManagerFinder; omf.run; } }

10.3.8.6 How to Update ADF META INF for Local Dictionary Access

You need to update the ADF-META-INF file with MDS information for accessing the dictionary. You can use a local file with MDS to access the Oracle Business Rules dictionary. However, this procedure is not the usual dictionary access method with Oracle Business Rules in a production environment. For information on using a Decision Point to access a dictionary with MDS in a production environment, see Section 7.5, What You Need to Know About Using Decision Point in a Production Environment . Update ADF-META-INF: 1. In the Application Navigator, expand Application Resources. 2. Expand Descriptors and ADF META-INF folders. 3. Double-click adf-config.xml to open this file. 4. Click the Source tab to view the adf-config.xml source. 5. Add the MDS information to adf-config.xml, before the closing adf-config tag, as shown in Example 10–6 . Example 10–6 Adding MDS Elements to adf-config.xml for Local Dictionary Access adf-mds-config xmlns=http:xmlns.oracle.comadfmdsconfig mds-config version=11.1.1.000 xmlns=http:xmlns.oracle.commdsconfig persistence-config metadata-namespaces namespace metadata-store-usage=mstore-usage_1 path= metadata-namespaces metadata-store-usages metadata-store-usage id=mstore-usage_1 metadata-store class-name=oracle.mds.persistence.stores.file.FileMetadataStore property name=metadata-path value=C:\jdevinstance\mywork\Chapter10\.adf\ metadata-store metadata-store-usage metadata-store-usages 10-24 Oracle Fusion Middleware Users Guide for Oracle Business Rules persistence-config mds-config adf-mds-config 6. In the property element with the attribute metadata-path, change the path to match .adf directory in the application on your system. Copy definitions to MDS accessible location: 1. In a file system navigator, outside of Oracle JDeveloper navigate to the Chapter10 application, and in the Chapter10 project, in the src folder select and copy the com folder.

2. In the application directory for Chapter10, above the Chapter10 project, navigate