Skip to content

Choose Matching Criteria

Severity: ⚠

Description

This rule has no available description

Error Message

This should be "Choose first with matching critera" unless you want the workflow to execute once for each matching target in the group. See here for more details: https://CiscoAandI.github.io/flowlint/rules/Choose-Matching-Criteria

Rule Definition
- function: or
  functionOptions:
    properties:
    - field: no_target
      function: truthy
    - function: and
      functionOptions:
        properties:
        - field: execute_on_target_group
          function: truthy
        - field: target_group.use_criteria
          function: defined
        - field: target_group.use_criteria.choose_target_using_algorithm
          function: defined
        - field: target_group.use_criteria.choose_target_using_algorithm
          function: pattern
          functionOptions:
            match: ^choose_first_with_matching_criteria$