Hello everyone,
I am having issues with correct syntax for process instance history API via Get Instances (POST).
I have a process variable variableA which is a Json array:
myVariable - [“value1”, “value2”,“value3”].
I need to search process-instance history via REST Api based on one of the values from this this array. ie, I need to find a process instance that had “value1” as part of myVariable array.
What would be a correct format for JSON body:
{
“variables”: [
{
“name”: “myVariable”,
“operator”:???,
“value”: “value1”
}
]
}
Any help is greatly appreciated!
Thanks for your reply, but that query does not work, and it returns every single process instance from the history. meaning that it ignores all properties of that json request body.
Another problem that I noticed by going through the documentation that you sent the link to is that variableValueLike can be used only on String variables.
replace the “operator” with any of those that are in the doc and satisfy your condition.
if this doesn’t work… tomorrow I’ll test it more calmly by calling the API through POSTMAN, because today my day was very busy.
Here in Brazil it’s past midnight, and I’m going to sleep now, but in case you can’t solve it, I can try to perform some tests tomorrow and post the results to help you in some way.