cancel
Showing results for 
Search instead for 
Did you mean: 

Can I query activiti-rest for tasks OR-ing two task variables?

joel_peltonen
Champ in-the-making
Champ in-the-making

I it somehow possible to query for tasks using two taskVariables; either of which would be acceptable. For example, I would like to add the taskVariables below to my query. Obviously they now cancel each other out, because both can never be true at the same time, but for me it would be ok for either of the be to be true - can this be done?

    { "name" : "foo", "value" : "bar""operation" : "equals", "type" : "string"}
    { "name" : "foo", "value" : "bar""operation" : "equals", "type" : "string"}

1 ACCEPTED ANSWER

fcorti
Elite Collaborator
Elite Collaborator

Hi Joel,

The Activiti REST API does not offer the OR capability but you can develop a manual workaround requesting two times the endpoint and merge manually the two resulting JSONs.

Ok, it's not clean but... or operator is not available.

I hope it helps you. 

View answer in original post

1 REPLY 1

fcorti
Elite Collaborator
Elite Collaborator

Hi Joel,

The Activiti REST API does not offer the OR capability but you can develop a manual workaround requesting two times the endpoint and merge manually the two resulting JSONs.

Ok, it's not clean but... or operator is not available.

I hope it helps you.