Input Validation Logic

◷ Reading Time: 3 minutes

What is Input Validation Logic?

This type of logic is used when Constraints (also called “action assertions”) are going to be validated. This model simplifies and centralizes the validation process of logic, data, or process in a declarative way. It can be used in all layers of the application (i.e., both server and client sides). It also provides notifications to give feedback as to what has gone wrong if the logic, data, or process has not passed the validation logic. The rule logic can be extended using custom commands. Also, it allows the definition of rules that receive input parameters.

It uses an XML-based language to define the logic to be validated.

To add a new Decision Requirement Diagram document,

Document Types --> Decision Logic --> Input Validation Logic

Once you add a document, this will be the window.

Input Validation Logic Properties

  1. Resources: List of resources to reference
  2. Aliases Collection: List of aliases of the validation rule
  3. Enabled: Is the validation rule enabled otherwise the engine will throw an exception
  4. Is Negative: Negative rule logic
  5. Name: Validation logic name
  6. Message: This message will be sent to the notification center
  7. Message Formatter: Formatter of the message by passing some parameters
  8. Message Id: This message ID refers to the key in a referenced resource
  9. Notice Event: Notice an event to write a notification
  10. Notice Type: Notice the type of rule when it is failed (Information/ Warning/ Error/ Fatal)
  11. Tag: A tag that is attached to this rule. This tag will be sent to the notification center
  12. Use Agenda: Does validation push the consequences (actions) to Agenda? If so true, otherwise false.
  13. Types Definition: List of Types and Functions
  14. Variable Definition: List of input and output parameters

Toolbox

The toolbox has the following items.

Complete list of commands

Check the Validation Commands for the complete list.

Top Menu

At the top menu, you can see the following items.

  1. Move down the selected node: Move a node
  2. Move up the selected node: Move a node up
  3. Delete selected node: Delete a node
  4. Show properties of node: Show properties of a node
  5. Expand tree: Show more of a tree node
  6. Collapse tree: Show less of a tree node

Node Properties

If you click on a node, its property window will appear. The properties vary depending on the node type.

Sample Input Validation Logic

Download the sample input validation logic file using the attachment.

Updated on April 5, 2022

Article Attachments

Was this article helpful?

Related Articles