Announcement Announcement Module
Collapse
No announcement yet.
Calling Web Flows from Java Classes. Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Calling Web Flows from Java Classes.

    I'm trying to figure out a way to call a web flow from Java Code/Class. I tried to use the Flow Executor's launchExecution() method but kept getting a Null Pointer Exception.

    Any ideas about how to achieve that?

    Update: I tried to do the following but was faced with a NullPointerException at org.springframework.webflow.conversation.impl.Cont ainedConversation.unlock(ContainedConversation.jav a:107)

    FlowController flowController;
    MutableAttributeMap map = new LocalAttributeMap();

    flowController = (FlowController) ApplicationContextProvider.getApplicationContext() .getBean("flowController");

    flowController.getFlowExecutor().launchExecution(" flowId", map, new MockExternalContext());
    Thanks
    Last edited by mamin; Jun 6th, 2011, 04:40 PM.
Working...
X