Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-6810

Aling implementation and examples to require ${} for expression evaluation

XMLWordPrintable

    • False
    • False
    • 2022 Week 08-10 (from Feb 21)

      As part of the implementation process of SWF we have accumulated several ways of evaluating expressions that are not 100% aligned with the spec.

      We are supporting this

      "subtractionOperation": { "leftElement": "$.fahrenheit", "rightElement": "$.subtractValue"}

      Which should be

       

      "subtractionOperation": { "leftElement": "${$.fahrenheit}", "rightElement": "${$.subtractValue}"}
       
      

      If using jq, it would be

      "subtractionOperation": { "leftElement": "${.fahrenheit}", "rightElement": "${.subtractValue}"}

      or, since JQ support expressions containing json object (JSONPath does not support it) , it can be also expressed this way

      "subtractionOperation": "${{ leftElement: .fahrenheit, rightElement: .subtractValue}}"
       
      

      In other words, we should not assume that argument of open api parameter (or any action call) is an expression, unless properly indicated

      Also, we are going to remove support for this

       

       "multiplicationOperation": "{ \\\"leftElement\\\": \\\"$.subtraction.difference\\\", \\\"rightElement\\\": \\\"$.multiplyValue\\\" }"
       
      

       

              ftirados Francisco Javier Tirado Sarti
              ftirados Francisco Javier Tirado Sarti
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: