Consider these guidelines before migrating a calculation procedure that uses a calculation matrix.
Migrate the calculation matrix first. This creates a decision matrix.
Add data to the decision matrix and activate it.
Example
This example converts a list of calculation procedure IDs to expression set IDs and logs the result in the debug log.
1List<String> calcProcIds = new List<String>();2calcProcIds.add('a00xx000000boy5AAA');3calcProcIds.add('a00xx000000bozhAAA');4calcProcIds.add('a00xx000000bp1JAAQ');56System.debug('TO MIGRATE A LIST OF CALCULATION PROCEDURES');7System.debug(BusinessRule.CalculationProcedureMigrationService.migrate(calcProcIds, 'vlocity_ins'));
This example converts a calculation procedure ID to an expression set ID and logs the result in the debug log.
1System.debug('TO MIGRATE A CALCULATION PROCEDURE');2System.debug(BusinessRule.CalculationProcedureMigrationService.migrate('a00xx000000bp2vAAA', 'vlocity_ins'));