Converts BRE-based Insurance Underwriting dynamic rules to CML eligibility constraints.
Reads UnderwritingRule records from the org (or a JSON file), parses their DynamicRuleDefinition, and generates CML constraints that evaluate underwriting eligibility. Each rule becomes a named constraint that returns true/false.
The command outputs:
- A .cml file with the constraint model
- An _Associations.csv file for ExpressionSetConstraintObj records
- A _RuleKeyMapping.json with the UnderwritingRule ID to RuleKey mapping for updating records
- <%= config.bin %> <%= command.id %> --cml-api UW_CML --target-org myOrg
- <%= config.bin %> <%= command.id %> --cml-api UW_CML --uw-file data/underwriting.json --workspace-dir data --target-org myOrg
Unique CML API Name to be created.
Directory where output files will be written.
Optional JSON file with pre-exported UnderwritingRule records. If omitted, records are queried from the org.
Comma-separated list of UnderwritingRule record IDs to convert. If omitted, all records with dynamic rules are converted.