Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
CalculationProcedureMigrationService Class
Namespace
Usage
- Migrate the calculation matrix first. This creates a decision matrix.
- Add data to the decision matrix and activate it.
Example
1List<String> calcProcIds = new List<String>();
2calcProcIds.add('a00xx000000boy5AAA');
3calcProcIds.add('a00xx000000bozhAAA');
4calcProcIds.add('a00xx000000bp1JAAQ');
5
6System.debug('TO MIGRATE A LIST OF CALCULATION PROCEDURES');
7System.debug(BusinessRule.CalculationProcedureMigrationService.migrate(calcProcIds, 'vlocity_ins'));1System.debug('TO MIGRATE A CALCULATION PROCEDURE');
2System.debug(BusinessRule.CalculationProcedureMigrationService.migrate('a00xx000000bp2vAAA', 'vlocity_ins'));CalculationProcedureMigrationService Methods
The following are methods for CalculationProcedureMigrationService.
migrate(calcProcedureIds, namespace)
Signature
public static Map<String,Object> migrate(List<String> calcProcedureIds, String namespace)
Parameters
- 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.
Return Value
Type: Map<String,Object>
migrate(calcProcedureId, namespace)
Signature
public static Map<String,Object> migrate(String calcProcedureId, String namespace)
Parameters
- 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.
Return Value
Type: Map<String,Object>