-
1. Re: How to know next humantask is available or not?
salaboy21 Dec 27, 2011 10:00 AM (in response to ram-biradar)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.
Cheers
-
2. Re: How to know next humantask is available or not?
ram-biradar Dec 28, 2011 12:42 AM (in response to salaboy21)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:
humantask1----scripttask1-----humantask2------scripttask2------humantask3-----scripttask3-----humantask4-----scripttask4
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
-
3. Re: How to know next humantask is available or not?
salaboy21 Dec 31, 2011 9:02 AM (in response to ram-biradar)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.
https://github.com/esteban-aliverti/JBPM-Samples/tree/master/Simple-Human-Task-Sample
Cheers