Building custom scoped applications in ServiceNow, it is important to make sure data is clean, consistent, and fits the expected format. IMO – ServiceNow doesn’t do enough to enforce data validation. To amend that, I wrote Contractual.
What is Contractual?
Contractual is a handy script include for consistent data validation. You can wrap variables or objects and run all kinds of checks on them. If something’s off, it throws a clear error. Its fluent interface makes validation code neat and readable.
(more…)