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

Evaluation

  • True: All specified sub-constraints evaluate to True.

  • False: Any specified sub-constraint evaluates to False.

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
  Constraints": [
    {
      "Type": "All",
      "Constraints": [
        {
          "Type": "Field Is Equal",
          "Name": "Type",
          "Value": "Configuration"
        },
        {
          "Type": "Field Is One Of",
          "Name": "Regulation",
          "Values": ["GxP"]
        }
      ]
    }
  ]

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

Evaluation

  • True: At least one specified sub-constraint evaluates to True.

  • False: All of the specified sub-constraints evaluate to False.

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

Evaluation

  • True: All specified sub-constraints evaluate to False.

  • False: At least one of the specified sub-constraints evaluates to True.

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"
    }
  ]
}