Searching a task based on Process instance id

Hi

Kindly let me know how to search a task based on user or a process instance id in wM7

Actually there is one service “SearchTask” to find the task based on process instance and user, but we are not getting the result from that service.

Thanks in Advance
Suresh Nagendran

Are you looking for programmatic way to search for tasks from IS? When you invoke SearchTasks service what search query do you pass in? You need to specify following configuration:

searchUserTasks → false

Terms →
Fields → processInstanceID
Operator → =
Value → your process instance ID

Hi

when I am running service with this configuration I am getting following error:

com.wm.app.b2b.server.ServiceException: electric.util.WrappedException:
SOAPException( Server.generalException: java.lang.OutOfMemoryError: Java heap space; nested exception is:
java.lang.OutOfMemoryError: Java heap space )

Kinldy let me know how to fix the problem

Suresh Nagendran

This error is not good. Not sure if this would help but you could increase the maximum JVM memory for My webMethods server (which embeds Task Engine) by modifying following file: Portal/server/default/bin/server.properties.(sh or bat)

Do you know how many tasks do you have in the system?
What exact database version do you have in use?
Could you search for Process Instance ID from Task List Management portlet?

Alex