search tasks

I would like to search tasks based on my business data fields by using searchTask service of the TaskClient API.

We are passing below values into TaskSearchQueryTerm object.


fields - “#{currentTask.taskData.indexInvoice.invoice.system}”

operator -“=”

value - “SW”

Here if I use any of the Task Info field like TaskID or TaskTypeID instead of “#{currentTask.taskData.indexInvoice.invoice.system}” with corresponding “value”, then my search function is able to retrieve task data.

We use webMethods 10.3 environment

But if I use regular expression to search based on my business data, then the search is not returning anything.