Announcement Announcement Module
Collapse
No announcement yet.
how to execute multiple web flows in different contexts Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • how to execute multiple web flows in different contexts

    <a href="EMP/app?_flowId=empapp-flow">Employee Application</a>

    currently i am starting one web flow like the above one and displaying the employee application page.in that page we have submit button.this page is coming fine.
    after that when user clicks that button in this employee application page need to start another flow which is another context. am executing that flow in AJAX call.but i am getting below exception

    i am using spring webflow 1.x version.problem here is both flows are different contexts.how to resolve this error.


    $.ajax({
    type: 'POST',
    url: "/DEPT/app?_flowId=dept-flow",
    dataType: "application/json",
    data: $("#appForm").serialize(),
    success: function(message){
    alert(message)
    },
    error:function (xhr, ajaxOptions, message){
    alert(message.responseText);

    }
    });



    EVERE: Servlet.service() for servlet spring threw exception
    org.springframework.webflow.conversation.NoSuchCon versationException: No conversation could be found with id '071AA36B-BEF3-DA9B-99C8-8822AABD13AC' -- perhaps this conversation has ended?
    at org.springframework.webflow.conversation.impl.Conv ersationContainer.getConversation(ConversationCont ainer.java:107)
    at org.springframework.webflow.conversation.impl.Sess ionBindingConversationManager.getConversation(Sess ionBindingConversationManager.java:125)
    at org.springframework.webflow.execution.repository.s upport.AbstractConversationFlowExecutionRepository .getConversation(AbstractConversationFlowExecution Repository.java:227)
    at org.springframework.webflow.execution.repository.s upport.AbstractConversationFlowExecutionRepository .getLock(AbstractConversationFlowExecutionReposito ry.java:119)
    at org.springframework.webflow.executor.FlowExecutorI mpl.refresh(FlowExecutorImpl.java:249)
    at org.springframework.webflow.executor.support.FlowR equestHandler.handleFlowRequest(FlowRequestHandler .java:117)
    at org.springframework.webflow.executor.mvc.FlowContr oller.handleRequestInternal(FlowController.java:16 5)
    at org.springframework.web.servlet.mvc.AbstractContro ller.handleRequest(AbstractController.java:153)
    at org.springframework.web.servlet.mvc.SimpleControll erHandlerAdapter.handle(SimpleControllerHandlerAda pter.java:48)
    at org.springframework.web.servlet.DispatcherServlet. doDispatch(DispatcherServlet.java:858)
Working...
X