Are you using jBPM5? Your problem doesn't look like an issue, I mean, you need to understand how the frameworks work in order to use the human task features.
Thank you Salatino for quick response.Yes Its a problem(not an issue),I am very new to JBPM , 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:
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.
You can use the Human Task APIs to look for the tasks that are currently assigned to the Role asociated with the Human Task 2. Did you check the docs inside the jbpm.org site? Here is a simple example that shows how to interact with human tasks in jbpm5.