CalculationMatrixMigrationService Class

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

BusinessRule

This example converts a list of calculation matrix IDs to decision matrix IDs and logs the result in the debug log.

This example converts a calculation matrix ID to a decision matrix ID and logs the result in the debug log.

The following are methods for CalculationMatrixMigrationService.

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

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

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.

Type: Map<String,Object>

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

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

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.

Type: Map<String,Object>