How to traverse all liveblocks of workflow diagram

Ok but why do you need that? We have never heard of such need, probably because users used a different solution for a similar problem. Why do you need to change status of a task definition when the task instance is not created yet? Are you aware that to change the status of a task instance you just modify the task instance itself?