Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-7632

ansible-rulebook : IsNotDefined operator doesn't work as expected when used in conjunction with other constraints

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • Ansible Integration
    • None
    • NEW
    • NEW
    • ---
    • ---

      IsNotDefinedExpression doesn't handle negation.

      • ExistsField.createParsedCondition handles only notPattern (But we need to decide whether notPattern or negate based on the parent condition)
      • Even if negate == true, PrototypePatternDefImpl.evaluateConstraint always returns false when a value is UNDEFINED_VALUE regardless of operator.

              mfusco@redhat.com Mario Fusco
              mfusco@redhat.com Mario Fusco
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: