Pending tasks mean tasks are not yet in the ready stage. Once all predecessor tasks are completed then the task will come into the ready stage. And once an actor act on the ready task then the task moves to the completed stage. Task changes the status of any follower tasks that directly depend on the task just completed from Pending to Ready
For example in a flow, we are taking about
If there are 6 task with sequential task.
When T1 is ready than all remaining task will be Pending stage(T2 to T6).
When T1 is completed than T2 will become Ready and remaining task will be Pending stage(T3 to T6)
…
When T4 is completed than T5 will become Ready and T6 task will be Pending stage
Hope you are clear with pending task
Can you let us know how we can get these pending task in flowable
There is no simple way in Flowable to list tasks that have not occurred yet. Tasks are not created until execution gets to them and the engine makes no assumption about what tasks are upcoming or even what the next task is until the last task is complete. Due things to gateways, conditional sequence flows, multi-instance tasks, and workflows that iterate multiple times by looping back on themselves, knowing what tasks are coming up is very difficult, if not impossible without limiting processes or making assumptions.
For you, your best alternative is to retrieve and parse the model, find the currently active task and follow the sequence flows out of it.