Contents
QualityResult building API. Usage example:
result { message "${enrolmentsToFix.size()} outcomes have completed more than 7 days ago and don't yet have a result entered" records enrolmentsToFix severity Severity.WARNING }
or if you don't want to specify records, the message will be associated with the entity in general
result { message "You have not yet created any sites." entity "Site" severity Severity.WARNING }
public QualityResultSpec {
}
If the rule doesn't specify certain records which need fixing, then just pass the entity name. This is not very common.
the case sensitive name of the entity as text
Sets result HTML message using MarkupBuilder object passed to it. E.g.
message builder.html { p("${enrolmentsToFix.size()} outcomes have completed more than 7 days ago and don't yet have a result entered") }
Typically you don't need to specify html in the message unless you have particular styling you need to apply.
a helper class for creating XML or HTML markup
Sets plain text result message. Make this short enough to display in a small user interface widget and alert the user to the problem they need to rectify
Plain text message
If this rule defines particular records to fix, then pass them here. Those records will have the message you created shown in the user interface against each record.
list of records need to be fixed
For granular severity levels you can pass an integer here. This allows you to carefully prioritise different rules against each other.
an integer between 0 (lowest severity) and 100 (most severe)