1 - what you've explained is not exactly what you've written
2 - for such a simple flow you're code is a bit confusing - I'm talking about the notify + while on the repeatable object and wait - the logic might be correct but its confusing to follow
3 - do you ever set "b1" to true during the flow?
4 - you are waiting on an object (b1) that is set to "false" during paint and never set to true again so basically your while is skipped
5 - ?