Create workflow model using AEM Forms workflow components. use Or-Split component to branch the workflow based on the value of the state variable.
Your browser does not support the iframe element.