the method getTextContent() will return all the text contents of the child elements of the user task concatenated. For example if your user task has an incoming and outgoing sequence flow like this:
I want to list out all the tasks from the deployed bpmn
But what information from the task do you need? You can get the id using userTask.getId(), see the example from my last comment.
both active and inactive, which includes the intermediate events also
I’m not sure what you mean with that. The BPMN model does not contain any runtime information, like the current active tasks. Also user tasks are not events, what do you mean with intermediate events?
By intermediate event I mean email events ,which will be known by activity type,and I wanted the information from the deployed bpmn. Is there any common api in order to get the external tasks and user tasks
Please post the XML of one of your processes and which values you want to extract. Than I maybe able to give you a code snippet how to do this. Otherwise I’m not sure what you want to achieve.