28: l_reval_params_old := l_reval_params;
29: fp_reval_output_asset_old := fp_reval_output_asset;
30:
31: igi_iac_debug_pkg.debug_other_string(g_state_level,l_path,'Revaluation engine prepare for calculations');
32: IF NOT IGI_IAC_REVAL_ENGINE.Prepare_calculations
33: ( p_iac_reval_params => L_reval_params )
34: THEN
35: -- add to the message stack!
36: igi_iac_debug_pkg.debug_other_string(g_error_level,l_path,'Failure IGI_IAC_REVAL_ENGINE.Prepare_calculations');
32: IF NOT IGI_IAC_REVAL_ENGINE.Prepare_calculations
33: ( p_iac_reval_params => L_reval_params )
34: THEN
35: -- add to the message stack!
36: igi_iac_debug_pkg.debug_other_string(g_error_level,l_path,'Failure IGI_IAC_REVAL_ENGINE.Prepare_calculations');
37: return false;
38: END IF;
39: igi_iac_debug_pkg.debug_other_string(g_state_level,l_path,'Revaluation engine first set of calculations...');
40: IF NOT IGI_IAC_REVAL_ENGINE.First_set_calculations
36: igi_iac_debug_pkg.debug_other_string(g_error_level,l_path,'Failure IGI_IAC_REVAL_ENGINE.Prepare_calculations');
37: return false;
38: END IF;
39: igi_iac_debug_pkg.debug_other_string(g_state_level,l_path,'Revaluation engine first set of calculations...');
40: IF NOT IGI_IAC_REVAL_ENGINE.First_set_calculations
41: ( p_iac_reval_params => L_reval_params )
42: THEN
43: igi_iac_debug_pkg.debug_other_string(g_error_level,l_path,'Failure IGI_IAC_REVAL_ENGINE.First_set_calculations');
44: -- add to the message stack!
39: igi_iac_debug_pkg.debug_other_string(g_state_level,l_path,'Revaluation engine first set of calculations...');
40: IF NOT IGI_IAC_REVAL_ENGINE.First_set_calculations
41: ( p_iac_reval_params => L_reval_params )
42: THEN
43: igi_iac_debug_pkg.debug_other_string(g_error_level,l_path,'Failure IGI_IAC_REVAL_ENGINE.First_set_calculations');
44: -- add to the message stack!
45: return false;
46: END IF;
47:
53: ( fp_reval_params => L_Reval_params
54: , fp_second_set => false
55: )
56: THEN
57: igi_iac_debug_pkg.debug_other_string(g_error_level,l_path,'Failure CRUD IGI_IAC_REVAL_ENGINE.First_set_calculations');
58: return false;
59: END IF;
60:
61: /* call to next set of calculations */
63: igi_iac_debug_pkg.debug_other_string(g_state_level,l_path,'If mixed, call SWAP and process the second set of calculations');
64: DECLARE
65: L_reval_params2 IGI_IAC_TYPES.iac_reval_params := L_reval_params;
66: BEGIN
67: IF NOT IGI_IAC_REVAL_ENGINE.swap ( fp_reval_params1 => L_Reval_params
68: , fp_reval_params2 => L_reval_params2 )
69: THEN
70: igi_iac_debug_pkg.debug_other_string(g_error_level,l_path,'Failure IGI_IAC_REVAL_ENGINE.swap');
71: return false;
66: BEGIN
67: IF NOT IGI_IAC_REVAL_ENGINE.swap ( fp_reval_params1 => L_Reval_params
68: , fp_reval_params2 => L_reval_params2 )
69: THEN
70: igi_iac_debug_pkg.debug_other_string(g_error_level,l_path,'Failure IGI_IAC_REVAL_ENGINE.swap');
71: return false;
72: END IF;
73:
74: igi_iac_debug_pkg.debug_other_string(g_state_level,l_path,'performing the second set of calculations');
71: return false;
72: END IF;
73:
74: igi_iac_debug_pkg.debug_other_string(g_state_level,l_path,'performing the second set of calculations');
75: IF NOT IGI_IAC_REVAL_ENGINE.Next_set_calculations
76: ( p_iac_reval_params => L_reval_params2 )
77: THEN
78: igi_iac_debug_pkg.debug_other_string(g_error_level,l_path,'Failure IGI_IAC_REVAL_ENGINE.Next_set_calculations');
79: return false;
74: igi_iac_debug_pkg.debug_other_string(g_state_level,l_path,'performing the second set of calculations');
75: IF NOT IGI_IAC_REVAL_ENGINE.Next_set_calculations
76: ( p_iac_reval_params => L_reval_params2 )
77: THEN
78: igi_iac_debug_pkg.debug_other_string(g_error_level,l_path,'Failure IGI_IAC_REVAL_ENGINE.Next_set_calculations');
79: return false;
80: END IF;
81: fp_reval_output_asset := L_Reval_params2.reval_output_asset;
82: /* call the apis to create/update records in db (second set) */
85: ( fp_reval_params => L_Reval_params2
86: , fp_second_set => true
87: )
88: THEN
89: igi_iac_debug_pkg.debug_other_string(g_error_level,l_path,'failure CRUD IGI_IAC_REVAL_ENGINE.Next_set_calculations');
90: return false;
91: END IF;
92:
93: END;