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

Failed to parse JsonPath expression in function arguments

    XMLWordPrintable

Details

    • False
    • False
    • 2021 Week 49-51 (from Dec 6th)

    Description

      When defining an expression as shown below, the json path value are not resolved, the target endpoint fails due to an invalid JSON content.

       

      {
        "functionRef": {
          "refName": "AssignDoctorToPatient",
          "arguments": {
            "patients": [
              {
                "name": "$.name",
                "dateOfBirth": "$.dateOfBirth",
                "symptoms": "$.symptoms"
              }
            ]
          }
        }
      }, 

      Results in:

      {"patients":"[{symptoms=$.symptoms, name=$.name, dateOfBirth=$.dateOfBirth}]"} 

      This can be reproduced when trying to modify the serverless-workflow-functions-events-quarkus example.

      Attachments

        Activity

          People

            cnicolai@redhat.com Cristiano Nicolai
            cnicolai@redhat.com Cristiano Nicolai
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: