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

cancel
Showing results for 
Search instead for 
Did you mean: 
joel_peltonen
Member II

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

Jump to solution

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 Solution

Accepted Solutions
fcorti
Alfresco Employee

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

Jump to solution

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 solution in original post

1 Reply
fcorti
Alfresco Employee

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

Jump to solution

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.