This is a basic functionality and I see repeated questions , but unfortunately no clear answer yet.
How do I print/list all the tasks in the given process ( finished / unfinished ) in the order of execution.
The two solution I found on the forum are working as expected
- repositoryService.getBpmnModel().getFlowElements() - Does not print in the order of execution . Printed in the order of definition
- historyService.createHistoricActivityQuery - Does not print all Service task
How do I just list all the task under the given process.