Louis Rose Messages: 427 Registered: July 2009 Location: York, United Kingdom
Senior Member
Hi Ralph,
Any variables that you define in the check part can be re-used in the message and fix parts. For example, the following is legal EVL:
context YourType {
constraint YourConstraint {
check {
var x = ...;
return false;
}
message : "There's something wrong with " + x
fix {
title: "Fix it"
do {
// x can be used here too
}
}
}
}