Complex work process logic

Hi,

I break the complex problem down to smaller problems.
This one is want to know how to write a nested waitSingal statement in work process.

I would be grateful if I could give some suggestions

I would be grateful if someone can provide me any suggestions (even through that is not the perfect solution).
I just stuck in here for so long TAT.

Angel