MessageRule Class

Represents a message rule that is evaluated during product configuration. Message rules display informational, warning, or error messages to users based on configuration conditions.

Namespace 

runtime_industries_cpq

MessageRule Constructor 

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

The MessageRule class includes this constructor.

MessageRule(stiId, severity, messages) 

Constructor to create a MessageRule instance with the specified STI ID, severity, and messages.

Signature 

public MessageRule(String stiId, String severity, List<String> messages)

Parameters 

stiId

Type: String

The ID of the Sales Transaction Item (STI) associated with this message rule.

severity

Type: String

The severity level of the message (for example, Error, Warning, or Info).

messages

Type: List<String>

List of message strings to display to the user.

MessageRule Properties 

Contains properties to store message rule details from configuration rule evaluation.

The MessageRule class includes these properties.

messages 

Get the list of messages.

Signature 

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

Property Value 

Type: List<String>

severity 

Get the severity value.

Signature 

public String severity {get; set;}

Property Value 

Type: String

stiId 

Get the ID of the sti.

Signature 

public String stiId {get; set;}

Property Value 

Type: String