rajeshiv (9) [Avatar] Offline
#1
Hi,
I have a question regarding the wild card search using activiti's task Service.

Iam passing a variable to my process model on start up , and Iam searching for tasks based on the passed in parameter as shown in the code below.

TaskQuery query = taskService.createTaskQuery();
query = query.processVariableValueEquals(WorkItem.VARIABLE_APPLICATIONID, criteria.getApplicationId());

The search works absolutely fine when I pass the right applicationId in the criteria - e.g : "10001", this works fine and is puling the right tasks associated with the application id.

How do I apply a wild card search on this parameter. I tried passing in a String "%1%" and it did not provide me with the right search results.

The java doc for service is saying such wild card search should work..it would be really helpful if you can guide me as to how I should do the wild card .

Thanks,
Rajesh.
tijs.rademakers (494) [Avatar] Offline
#2
Re: Search using Activiti's Task Service
Hi,

At this moment you can only search for the actual variable value, so without the %. You could add a JIRA to request for this functionality.

Best regards,

Tijs
rajeshiv (9) [Avatar] Offline
#3
Re: Search using Activiti's Task Service
Could you please guide me as to how and where I should add this JIRA story