Jumping Transition Rules as per role selected from dropdown

How to jump Transition Rules in a workflow. For example, I have an approval chain of multiple users, in frappe, there is a linear chain i.e if I approve it will step forward otherwise it will step back on reject. My requirement is I have created a dropdown with the list of user roles and on selecting the role it should jump to that state.