kiegroup / drools-ansible-rulebook-integration

Apache License 2.0
1 stars 9 forks source link

Adding isDefinedAndIsNotDefined test #107

Closed tkobayas closed 1 month ago

tkobayas commented 1 month ago

This test fails because IsNotDefinedExpression doesn't handle negation.

ReteDumper:

[EntryPointNode(1) EntryPoint::DEFAULT ] on Partition(MAIN)
  [ObjectTypeNode(3)::EntryPoint::DEFAULT objectType=[PrototypeObjectType template=DROOLS_PROTOTYPE] expiration=-1ms ] on Partition(MAIN)
    [AlphaNode(4) constraint=[Constraint for 'expr:ThisPrototypeFieldValue:EXISTS_FIELD:ExtractorPrototypeExpression{ExtractorNode [values=[IdentifierNode [value=meta]]]}' (index: null), ]] on Partition(1) d -1 i -1
      [AlphaNode(5) constraint=[Constraint for 'expr:ThisPrototypeFieldValue:EXISTS_FIELD:ExtractorPrototypeExpression{ExtractorNode [values=[IdentifierNode [value=meta], IdentifierNode [value=headers], IdentifierNode [value=token]]]}' (index: null), ]] on Partition(1) d -1 i -1
        [AlphaTerminalNode(6)] on Partition(1) Ld 0 Li 0
          [RuleTerminalNode(7): rule=r1] on Partition(1) d -1 i -1
  [ObjectTypeNode(2)::EntryPoint::DEFAULT objectType=[ClassObjectType class=org.drools.base.reteoo.InitialFactImpl] expiration=-1ms ] on Partition(MAIN)
tkobayas commented 1 month ago

Replaced by https://github.com/kiegroup/drools-ansible-rulebook-integration/pull/108