During the flow I am checking if the session is expired or not using a decision state, if yes then it should redirect to error page and if not, the flow should continue.