CalculationMatrixMigrationService Class

Contains methods for migrating calculation matrices from the Vlocity package to the Business Rules Engine as decision matrices.

Namespace

BusinessRule

Example

This example converts a list of calculation matrix IDs to decision matrix IDs and logs the result in the debug log.
1List<String> ids = new List<String>();
2ids.add('a03xx000004WhvkAAC');
3ids.add('a03xx000004WhxMAAS');
4ids.add('a03xx000004WhyyAAC');
5
6System.debug('TO MIGRATE A LIST OF CALCULATION MATRICES');
7System.debug(BusinessRule.CalculationMatrixMigrationService.migrate(ids, 'vlocity_ins'));
This example converts a calculation matrix ID to a decision matrix ID and logs the result in the debug log.
1System.debug('TO MIGRATE A CALCULATION MATRIX');
2System.debug(BusinessRule.CalculationMatrixMigrationService.migrate('a03xx000004Wi0aAAC', 'vlocity_ins'));

CalculationMatrixMigrationService Methods

The following are methods for CalculationMatrixMigrationService.

migrate(calculationMatrixIds, namespace)

Migrate calculation matrices from the Vlocity package to the Business Rules Engine as decision matrices.

Signature

public static Map<String,Object> migrate(List<String> calculationMatrixIds, String namespace)

Parameters

calculationMatrixIds
Type: List<String>
The 18-character IDs of the calculation matrices in the Vlocity managed package to be migrated to the Business Rules Engine as decision matrices.
namespace
Type: String
The namespace in which Vlocity is deployed as a managed package. For example, vlocity_ins. This contains the calculation matrix custom objects.

Return Value

Type: Map<String,Object>

migrate(calculationMatrixId, namespace)

Migrate a calculation matrix from the Vlocity package as a decision matrix to the Business Rules Engine.

Signature

public static Map<String,Object> migrate(String calculationMatrixId, String namespace)

Parameters

calculationMatrixId
Type: String
The 18-character ID of the calculation matrix in the Vlocity managed package to be migrated to the Business Rules Engine as a decision matrix.
namespace
Type: String
The namespace in which Vlocity is deployed as a managed package. For example, vlocity_ins. This contains the calculation matrix custom objects.

Return Value

Type: Map<String,Object>