Zeebe child operators JSON Conditions


#1

Hi,

Does zeebe supoorts JSON path child operators (referred https://docs.zeebe.io/reference/json-path.html )?
I tried it in a sample workflow after exclusive gateway for examples its working for $.msg == “TEST” but $.msg.key.name== “SWITCH” is not working, is there any limitations in accessing child operators at multi node level.

Thanks,
Ramya.


#2

Hey Ramya,

which zeebe version do you use?
Can you elaborate on what exactly is not working? Do you see any errors in the broker log?

Greets
Chris


#3

Hey @Zelldon,

Its Zeebe version 0.15 and no errors found in broker log. Consider below json payload, json path is working correctly for $."addInfo" = "create" but when I go for child nodes i.e $.message.logKey.type == “SWITCH”, its not working.

{
  "messageId": "123425-02-2019 02:07:08",
  "message": {
    "logKey": {
      "id": "1234",
      "logDate": "25-02-2019 02:07:08",
      "type": "SWITCH",
      "appId": "1"
    },
    "param": 2,
    "payload": "AwE="
  },
  "addInfo": "create"
}

Thanks,
Ramya.


#4

Hey @Ramya,

thanks for the response.

Could you please share your workflow model so we can reproduce this problem.

Thanks and best regards
Chris