I am little confused with updating variables, let's say first approach, user clicks the link, process model kicks and flow moves to User input task, I can send a flag as true, something called, "clickedOnLink". And then pass the clickedOnLink to UI, then…