D:\CreditRepair\CreditRepair_PM_Structure\Development\Source\SourcePackages\CreditRepairProject\DynamicBusinessRulesFramework\src\java\applications_products_services\ProductsServicesApplication.java
 1 /*
 2  * To change this template, choose Tools | Templates
 3  * and open the template in the editor.
 4  */
 5 
 6 package applications_products_services;
 7 
 8 import business_rules_manager.*;
 9 import loaders_business_rules_abstract_factory.*;
10 import applications_process_mapping.*;
11 import java.util.*;
12 import applications_processes.*;
13 import constants.*;
14 import util.*;
15 import applications_process_list.*;
16 import trans_union_fixed_format_inquiry_FFI_processes.*;
17 import business_rules_data_objects.*;
18 
19 /**
20  *
21  * @author sameldin
22  */
23 public class ProductsServicesApplication
24 {
25     Hashtable<String, String>             dynamic_processRulesNameKeyListHashTable    = null;
26     Hashtable<String, Integer>            static_processNameIndexValuetHashTable      = null;
27 
28     public ProductsServicesApplication(int productServiceIndex)
29     {
30         BusinessRulesManager localBusinessRulesManager =  new BusinessRulesManager(productServiceIndex);
31         if(null == localBusinessRulesManager)
32         {
33           //  exception
34           return;
35         }
36         static_processNameIndexValuetHashTable      = localBusinessRulesManager.getStaticNameIndexValuetHashTable();
37         dynamic_processRulesNameKeyListHashTable    = localBusinessRulesManager.getDynamicNameKey_HashTable();
38         
39 
40         ProcessMapper localProcessMapper = new ProcessMapper(dynamic_processRulesNameKeyListHashTable,
41                                                             static_processNameIndexValuetHashTable,
42                                                             localBusinessRulesManager);
43         Map<Integer, TransUnionRuleProcessesInterface> localProcessHashMap = localProcessMapper.getProcessesMap();
44         Map<Integer,  Set> localTU_SetOfProcessesStructuralRulesDO_HashMap = localProcessMapper.getTU_SetOfProcessesStructuralRulesDO_HashMap();
45         Map<Integer,  Set> localTU_SetOfProcessesFunctionalRulesDO_HashMap = localProcessMapper.getTU_SetOfProcessesFunctionalRulesDO_HashMap();
46 
47         BusinessRulesImplementer localBusinessRulesImplementer = new BusinessRulesImplementer(localProcessHashMap, localTU_SetOfProcessesStructuralRulesDO_HashMap, localTU_SetOfProcessesFunctionalRulesDO_HashMap);
48     }
49      /**
50      *
51      */
52      public static void main (String[] args)
53     {
54          ProductsServicesApplication locaProductsServicesApplication
55                  = new ProductsServicesApplication(Constants.REPORT_REQUEST_SERVICE_INDEX);
56          int joe = 0;
57 
58     }
59 }
60 
61