Adding Constraint for Gender Selection

Procedure

  1. In the Palette, click the Constraint icon in the Declare Constraint section and then click the Declare Constraints compartment to add the constraint.
  2. Provide the following details for the constraint in the Properties window:
    • Name as SelectGender.
    • Description as Select the Gender.
    • In the Use for variables section, select the Gender checkbox.
  3. Double click the SelectGender constraint to open up the Expression Editor.
  4. From the Actions Palette, click the Select Action icon and then click in the Actions compartment to insert it. Provide the following properties:
    • Name as ActionName
    • No value as Default
    • Select Type as Enum
    • In the Attributes section, click the Add icon to add two literals: Male and Female.