Screen flow buttons issue while recognizing the last screen
We have a screen flow in which multiple screen flows are referred as a sub process. Each assignment has a decision (fork) shape to skip or render the screen. The decision logic has been captured by user at the beginning. The bread crumbs are rendering properly. However we have an issue with the buttons shows continue/Finish.
System is unable to find the last assignment and showing continue label instead of Finish.
A visibility condition (when - isLastAssignment ) is running on these buttons. This when rule is returning false at the last assignment. Technically there are few assignments left in the flow but they don't execute as all the fork shapes return false to skip them. So when user clicks on "Continue" button it submits the case and assign to the next reviewer.
Is there any way we can tweak the when rule to figure out the last assignment and show Finish button? Appreciate your help.