ConfigRuleResult Class

Contains the results of configuration rule evaluation, including message rules, product recommendation rules, and visibility rules that are applied during product configuration.

runtime_industries_cpq

Learn more about the constructor that’s available with the ConfigRuleResult class.

The ConfigRuleResult class includes this constructor.

Constructor to create a ConfigRuleResult instance with configuration rule evaluation results.

public ConfigRuleResult(String transactionContextId, List<runtime_industries_cpq.MessageRule> messageRules, List<runtime_industries_cpq.ProductRecommendationRule> productRecommendationRules, List<runtime_industries_cpq.VisibilityRule> visibilityRules, List<String> errors)

transactionContextId

Type: String

The ID of the transaction context for this configuration rule evaluation.

messageRules

Type: List<runtime_industries_cpq.MessageRule>

List of message rules that were evaluated during configuration.

productRecommendationRules

Type: List<runtime_industries_cpq.ProductRecommendationRule>

List of product recommendation rules that were evaluated during configuration.

visibilityRules

Type: List<runtime_industries_cpq.VisibilityRule>

List of visibility rules that were evaluated during configuration.

errors

Type: List<String>

List of error messages from the configuration rule evaluation, if any.

Contains properties to store configuration rule evaluation results.

The ConfigRuleResult class includes these properties.

Get the list of error messages.

public List<String> errors {get; set;}

Type: List<String>

Get the list of messagerule.

public List<runtime_industries_cpq.MessageRule> messageRules {get; set;}

Type: List<runtime_industries_cpq.MessageRule>

Get the list of productrecommendationrule.

public List<runtime_industries_cpq.ProductRecommendationRule> productRecommendationRules {get; set;}

Type: List<runtime_industries_cpq.ProductRecommendationRule>

Get the ID of the transactioncontext.

public String transactionContextId {get; set;}

Type: String

Get the list of visibilityrule.

public List<runtime_industries_cpq.VisibilityRule> visibilityRules {get; set;}

Type: List<runtime_industries_cpq.VisibilityRule>