I'm using IBM BPM's Search API /rest/bpm/wle/v1/search/query for fetching tasks based on custom conditions. But this API is returning response only if the value is matching completely (case-sensitive). Is there any way to make it case-insensitive?
Sample API:
https://{host}:{port}/rest/bpm/wle/v1/search/query?secondSort=taskPriority&size=500&organization=byTask&sort=taskReceivedDate&filterByCurrentUser=false&columns=instanceName,taskActivityName,assignedToUser,instanceName,taskPriority,taskReceivedDate,assignedToRole,instanceId,instanceStatus&condition=assignedToUser|Equals|dave
The above API doesn't return the tasks which have 'assignedToUser' as 'Dave'
A few issues / concerns with what you are using -
For the most part the issue is that "Search" is a misnomer and this feature is really "filter" (again, unless the user is an Admin).
In general it makes sense to have the "filterByCurrentUser" set to true and then the user will automatically be applying the rest of the search (filter) to their tasks.
It looks like the replacement API is something like
However when I attempt to duplicate your search there, it won't let me do "assignedToUser=" without picking an "interaction" value and the documentation says that when you pick one of those it behaves like "filterByCurrentUser" is set to true.
The good news is you can "filter" the results of the base query, and the "OWNER" and it looks to me that on my system (sometimes the underlying DB matters) executing -
and
both returned the same results. I could not figure out how to configure a "like" query for this data when I was experimenting.
Note: As mentioned above, I'm an Admin on this server, so for a general user who isn't 'dseager' this should return 0 records.
If you want to make this available to non-Admin users, you will likely need to look at searching using the JavaScript API, as that is generally accessed only via a developer creating code, so if your solution requires that you ignore the security enforced by the REST API you can do so.