Newer Version Available

This content describes an older version of this product. View Latest

DecisionMatrixDefinition

Represents a definition of a decision matrix.

Before deploying a decision matrix or a decision matrix version to a target org, review these decision matrix migration considerations.

Note

This type extends the Metadata metadata type and inherits its fullName field.

File Suffix and Directory Location

DecisionMatrixDefinition components have the suffix .decisionMatrixDefinition and are stored in the decisionMatrixDefinition folder.

Version

DecisionMatrixDefinition components are available in API version 55.0 and later.

Fields

Field Name Description
description
Field Type
string
Description
Describes a decision matrix definition.
groupKey
Field Type
string
Description
A key for grouping matrix rows in different versions, such as a geographic region or a product code.
label
Field Type
string
Description

Required.

The UI label of a decision matrix definition.
processType
Field Type
ExpsSetProcessType (enumeration of type string)
Description
The process type that uses the expression set rule.
Valid values are:
  • Bre
  • GpaCalculation
  • InsuranceClaimProcessing—Available in API version 65.0 and later.
  • ItServiceManagement—Available in API version 65.0 and later.
  • PlanCostCalculation
  • RatingDiscovery
  • StudentInformationSystem—Available in API version 65.0 and later.
  • StudentSuccess

When Business Rules Engine is enabled for a Salesforce instance, the default value is 'Bre’. Other usage types may be available to you depending on your industry solution and permission sets.

Note

Available in API version 59.0 and later.
subGroupKey
Field Type
string
Description
A subgroup key for grouping matrix rows in different versions, such as a geographic region or a product code. For example, if the groupKey is Country, the subGroupKey can be State or Province.
type
Field Type
DecisionMatrixType (enumeration of type string)
Description
The type of a decision matrix.
Valid values are:
  • Grouped
  • Standard
versions
Field Type
DecisionMatrixDefinitionVersion[]
Description
Represents an array of decision matrix version definitions in a decision matrix. This array must contain at least one version.

DecisionMatrixDefinitionVersion

Represents a definition of a decision matrix version.

Field Name Description
columns
Field Type
DecisionMatrixDefinitionVersionColumn​​[]
Description
Represents an array of columns in a decision matrix definition version.
decisionMatrixDefinition
Field Type
string
Description
The full name of a decision matrix version.
endDate
Field Type
dateTime
Description
The date until which a decision matrix definition version is available for use.
groupKeyValue
Field Type
string
Description
The value of the groupKey for a decision matrix definition version. For example, if the groupKey is Country, the groupKeyValue can be United States.
label
Field Type
string
Description

Required.

The UI label of a decision matrix definition version.
rank
Field Type
int
Description
The rank of the Decision Matrix Definition Version. When more than one enabled version matches a decision matrix call, and the start date time to end date time spans overlap, the version with the highest rank is chosen. Available in API version 64.0 and later.
startDate
Field Type
dateTime
Description

Required.

The date from when a decision matrix definition version is available for use.
status
Field Type
DecisionMatrixDefStatus (enumeration of type string)
Description

Required.

Specifies the status of a decision matrix definition version.
Valid values are:
  • Active
  • Draft
  • Inactive
  • InvalidDraft
  • Obsolete
subGroupKeyValue
Field Type
string
Description
The value of the subgroup key for a decision matrix definition version. For example, if the subGroupKey is State or Province, the subGroupKeyValue can be California.
versionNumber
Field Type
int
Description

Required.

The version number of a decision matrix definition.

DecisionMatrixDefinitionVersionColumn​​

Represents a definition of a column in a decision matrix definition version.

Field Name Description
columnType
Field Type
DecisionMatrixColumnType (enumeration of type string)
Description

Required.

Specifies whether a column is for an input or output.
Valid values are:
  • Input
  • Output
dataType
Field Type
DecisionMatrixDataType (enumeration of type string)
Description
Required.
The type of data that’s stored in a column.
Valid values are:
  • Boolean
  • Currency
  • Number
  • NumberRange
  • Percent
  • Text
  • TextRange
displaySequence
Field Type
int
Description
Required.
Represents the position of a column in the column order.
isWildcardColumn
Field Type
boolean
Description
Required.
Specifies whether a column stores a wildcard value (true) or not (false).
The default value is false.
name
Field Type
string
Description
Required.
The full name of a decision matrix definition version column.
rangeValue
Field Type
string
Description
A list of values that define range boundaries.
wildcardValue
Field Type
string
Description
The wildcard value such as ALL.

Declarative Metadata Sample Definition

The following is an example of a DecisionMatrixDefinition component.

The following is an example package.xml that references the previous definition.

Wildcard Support in the Manifest File

This metadata type supports the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.