Thank you Salatino for quick response.Yes Its a problem(not an issue),I could not find available API and methods related to JBPM to find out whether next human task is available or not..
Is there any methods and classes to find the list of available tasknames in the workflow.
My requirement is:-I'm using Liferay6.0 with JBPM5.In my JBPM worflow I've one flow as:
humantask1----scripttask1-----humantask2------scripttask2..
After execution of humantask1,flow will automatically go to scripttask1 and executes it.After execution of scripttask1,I want to find whether any humantask(humantask2) is available or not.So that If the humantask(humantask2) is available,I will pass the control to my required JSP.
Thanks