Search tasks using Java Api

Hello everybody. I can’t figure out how to search for a task by using java API.
What I need to do is to populate a text area with the values retrieved from all Task.
In other words it would be perfect if it existed the corresponding of pub.task.taskclient:searchTasks to be used (not as a soap service) from java code.

The documentation is not clear at all! Could anyone please help me?

Thanks in advance to anyone will provide any answer!

Hi Silvio,

The TASK API is also exposed as a web service available at: http://localhost:8585/services/bizPolicy/task.

You can create a consumer for this WS and go from there.

Hope it helps,
Vlad Turian

thnx for your reply but maybe you have not read entirely my post. i don’t want to use remote services.

Hello,

I have missed that part of the information.

As to my current knowledge there is no such thing. One has to implement a task search (either standard or indexed).

Also the formulation “values retrieved from all tasks” is kind of vague.

What will you do when your task count hits millions?

You have to make a way to filter the results.

for this you can use (details in: 8-2-SP1_BPM_Task_Development_Help and 8-2-SP1_Task_Engine_Users_Guide):

  • standard task search - pre-8.2
  • indexed task search - 8.2 onwards

Also you can check the tech notes for the - HPTSRA (High Performance Task Search Reference Architecture) which appeared I believe in 9.x.

Best regards,
Vlad Turian