I have an requirement to crease N no.of subtasks dynamically and my flow has to wait all created subtasks getting closed then move to next stage. How can i achieve this. Please help me with suggestions.
There is an API on the taskService to create subtasks.
However, the waiting behavior is not implemented like that I believe. Most likely you might need to have additional logic to check that requirement, before you call the Activiti engine.