CalculationProcedureMigrationService Class

Contains methods for migrating calculation procedures from the Vlocity package to the Business Rules Engine as expression sets.

BusinessRule

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.

This example converts a list of calculation procedure IDs to expression set IDs and logs the result in the debug log.

This example converts a calculation procedure ID to an expression set ID and logs the result in the debug log.

The following are methods for CalculationProcedureMigrationService.

Migrate calculation procedures from the Vlocity package as expression sets to the Business Rules Engine.

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

calcProcedureIds

Type: List<String>

The 18-character IDs of the calculation procedures in the Vlocity managed package to be migrated to the Business Rules Engine as expression sets.

18 character ID.

namespace

Type: String

The namespace in which Vlocity is deployed as a managed package. For example, vlocity_ins. This contains the calculation procedure custom objects.

Type: Map<String,Object>

Migrate a calculation procedure from the Vlocity package as an expression set to the Business Rules Engine.

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

calcProcedureId

Type: String

The 18-character ID of the calculation procedure in the Vlocity managed package to be migrated to the Business Rules Engine as an expression set.

namespace

Type: String

The namespace in which Vlocity is deployed as a managed package. For example, vlocity_ins. This contains the calculation procedure custom objects.

Type: Map<String,Object>