Prerequisites: A valid RuleSession
Namespaces: InRule.Runtime
Classes: Notification, Validation, RuleSession
See Also: Retrieving a Rule Application, Creating a RuleSession, Creating Entities, Applying Rules
Check for notifications
// Retrieve the notifications from the session state
foreach (Notification note in ruleSession.GetNotifications())
{
// Handle the notification
Console.WriteLine(note.Message);
}
Check for validations
// Retrieve the validations from the session state
foreach (Validation validation in ruleSession.GetValidations())
{
// Handle the validation
Console.WriteLine(validation.Message);
}
Comments
0 comments
Please sign in to leave a comment.