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.
-
Learn more about the constructor that’s available with the MessageRule class.
-
Contains properties to store message rule details from configuration rule evaluation.
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.
Constructor to create a MessageRule instance with the specified STI ID, severity, and messages.
public MessageRule(String stiId, String severity, List<String> messages)
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.
Contains properties to store message rule details from configuration rule evaluation.
The MessageRule class includes these properties.
Get the list of messages.
public List<String> messages {get; set;}
Type: List<String>
Get the severity value.
public String severity {get; set;}
Type: String
Get the ID of the sti.
public String stiId {get; set;}
Type: String