Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Type: Value must be All

  • Constraints: A listing of sub-constraints. All sub-constraints in this list must evaluate to be true for the overall constraint to be true. Any VERA constraint type may be included in this list.

Optional Properties

None

Example

Determine whether both of the following conditions are true:

  • the current record has a Category field value of System

  • the current user is a Manager of the current record type

Code Block
{
  "Type": "All",
  "Constraints": [
    {
      "Type": "Field Is Equal",
      "Name": "Category",
      "Value": "System",
      "Ignore Case": "Yes"
    },
    {
      "Type": "User Is",
      "Role": "Managers"
    }
  ]
}

Constraint Type: Any

Evaluates a list of specified sub-constraints to determine if at least one of them is true.

...

  • Type: Value must be Any

  • Constraints: A listing of sub-constraints. Only one sub-constraint in this list must evaluate to be true for the overall constraint to be true. Any VERA constraint type may be included in this list.

Optional Properties

None

Example

Determine if either of the following conditions are true:

  • the current record has a Category value of System

  • the current record has a GxP value of Y.

Code Block
{
  "Type": "Any",
  "Constraints": [
    {
      "Type": "Field Is Equal",
      "Name": "Category",
      "Value": "System",
      "Ignore Case": "Yes"
    },
    {
      "Type": "Field Is Equal",
      "Name": "GxP",
      "Value": "Y",
      "Ignore Case": "Yes"
    }
  ]
}

Constraint Type: Not

Evaluates a list of specified sub-constraints to determine if all of them are false.

...

  • Type: Value must be Not

  • Constraints: A listing of sub-constraints. All sub-constraints in this list must evaluate to be false for the overall constraint to be true. Any VERA constraint type may be included in this list.

Optional Properties

None

Example

Determine if both of the following conditions are false:

  • the current record has a Category value of System

  • the current record has a GxP value of Y.

Code Block
{
  "Type": "Not",
  "Constraints": [
    {
      "Type": "Field Is Equal",
      "Name": "Category",
      "Value": "System",
      "Ignore Case": "Yes"
    },
    {
      "Type": "Field Is Equal",
      "Name": "GxP",
      "Value": "Y",
      "Ignore Case": "Yes"
    }
  ]
}