Camunda REST API query process instances for custom object

Dear community

Is it possible to query the process instances by a specific (custom) object?
Unfortunately the documentation did not help.

POST /process-instance

I’m using SPIN to serialize and deserialize variables which works fine.

This is how my JSON / Requestbody looks like

{
    "variables":
    [{
            "name": "customer",
            "operator": "eq",
            "value": "{\"number\":\"10000\",\"name\":\"Moebel Meller\"}",
            "type": "Object",
            "valueInfo": {
                "objectTypeName": "ch.bfh.ti.model.Customer",
                "serializationDataFormat": "application/json"
            }
        }
    ]
}

The response always returns an empty array …

Any help would be much appreciated!
Thanks in advance!

Kind regards,
Thomas

Hi @CamundaUser,

this is not possible out of the box. The content of the variable is stored in a BLOB in the database and you cannot search inside this column.

As a workaround, you can extract the search phrase and store it in a separate String variable.

Hope this helps, Ingo

Thank you very much!