Adding Constraint for Mandatory Attributes Check

Procedure

  1. In the Palette, click the Constraint icon in the Declare Constraint section and then click in the Declare Constraints compartment to add the constraint.
  2. Provide the following details for the constraint in the Properties window:
    • Name as ReqManadatoryAttributesForCustomer.
    • Description as The following attributes are mandatory for a Customer.
    • In the Use for variables section, select the FirstName and LastName checkbox.
  3. Double click the ReqManadatoryAttributesForCustomer constraint to open up the Expression Editor.
  4. From the Actions Palette, click the Check Action icon and then click in the Actions compartment to insert it. Provide the following properties:
    • Explanation as FirstName and LastName are mandatory fields.
    • Expression as defined(useforvars)