In the Guard Properties window, users can create a new guard for the application.

  1. Name: This is a text field that allows users to input the name of the guard. It is a mandatory field.
    • There are the following rules determining the validity of names:
      • A valid name can contain letters, numbers, and the underscore symbol. It cannot, however, contain spaces or other special characters. It also cannot begin with a number.
      • A guard must have a unique name. It cannot have the same name as another guard in the program.
  2. Title: This is a text field that allows users to input the title of the guard.
    • Unlike with names, there are no guidelines determining the validity of titles.
  3. Active: This is a checkbox which, if selected, allows users to mark the guard out as active.
  4. Entity: This is a single-select dropdown field that retrieves the list of entities (from the Entity Designer section of the Entities module). It allows users to select the entity associated with the guard.
  5. Scope: This table displays all defined events in the application (as retrieved from the Events section of the Processes module). It allows users to assign a scope to the guard.
    • To select a scope from the table, double-click on it.
      • When a scope is selected from the table, the associated access name will automatically populate the Event Name field.
    • Assigning a scope to a guard is optional. If a scope is assigned, the guard will execute automatically when the corresponding event occurs. If not, the guard must be executed manually.
  1. Event Name: When a scope is selected from the table, the associated access name will automatically populate this field.
    • To remove the event name, click on the button.
  2. Process: This is a single-select dropdown field that retrieves the list of processes (from the Process Design section of the Processes module). It allows users to select the process during which the guard will be executed.
  1. Process Version: This is a single-select dropdown field that displays the list of versions associated with the selected process. It allows users to select the version of the process during which the guard will be executed.
    • Depending on the process selected, the process versions displayed in this dropdown may vary.
      • If -1 is selected as a process version, the guard will be executed in all versions of the selected process.
  1. State Name: This is a single-select dropdown field that displays the list of states in the selected process. It allows users to select the state during which the guard will be executed.
    • Depending on the process and process version selected, the states displayed in this dropdown may vary.

Guard Execution:

Guard Process Version State Outcome
Guard Any Any (-1) Any The guard will be triggered for all processes and states (associated with the chosen entity)
Guard Specific Process Any (-1) Any The guard will be triggered for only one process, but in all versions and states
Guard Specific Process Specific Version Any The guard will be triggered for only one version of a particular process, but in all states
Guard Specific Process Any Specific State The guard will be triggered for only one state of a particular process
Guard Specific Process Specific Version Specific State The guard will be triggered for a specific state in a particular version of a particular process