We need to know when our app starts up what are all of the various User Task (Activity) that the process is made up of. I have looked through the API and once I have my processDefinition I can call
repositoryService.getBpmnModel(processDefinition.getId());
and buried in there is my process and a flowelementlist where I eventually see my defined UserTask objects
but is this the best and a stable way to get this? I would have expected a createActivityDefinitionQuery or createTaskDefinitionQuery on one of the services so I could get this defining information.
the TaskQuery and TaskInfoQuery both seem to be concerned with running task instances, not the list of defined tasks for a process
For now this is the way how you can get user tasks definitions easily.
I do not know about any initiative to provide queries for the tasks in definitions.
Sorry for using this old thread to ask this, but I would like to know if it is possible to get this kind of information using the REST API?
I couldn’t find one method for this.