I was wondering if it is possible to retrieve the user tasks defined in a deployed process (not and instantiated one).
Currently, the only solution I can think of is to:
- Add a category to user tasks
- Retrieve the process definition model (extremely huge object)
- Filter objects in the
mainProcess.flowElementsarray for objects that have a category matching the required category.
It’s all to aid in dynamically creating a menu of possible user tasks defined for a process.
The other question is that I notice that the flow elements has an attributes property but is always empty in my instances. I’ve looked in the modeler and I’ve searched in the documents but don’t know the why of this property or how it can be populated.