I want to show a pie chart where, i will be showing how many users are currently running which task.Is there any way (..other than parsing xml) to know in advance how many tasks or subprocesses are there in my Process definition. pls help.
You will need to get the process definition and get all the UserTasks. Check the RepositoryService it has a method to get a POJO model of the process definition.