Results 1 to 3 of 3

Thread: calling FlowExecutor.launch() manually. unexpected error

  1. #1
    Join Date
    Jul 2006
    Posts
    7

    Default calling FlowExecutor.launch() manually. unexpected error

    For example, web application accepts SOAP method call, launches a flow and returns view name:

    public class LoginServiceImpl extends ServletEndpointSupport implements LoginService{

    @Override
    protected void onInit() throws ServiceException {
    //loading executor
    this.executor = (FlowExecutorImpl)getWebApplicationContext().getBe an("flowExecutor");
    }

    public String startFlow(String flowName, long userId) throws RemoteException{
    ResponseInstruction resp = executor.launch("AcceptClientFlow", new MockExternalContext());
    String viewName = resp.getViewSelection().toString();

    return viewName;
    }
    }

    onInit runs well.
    problem is that NPE occurs when calling executor.launch().

    FlowExecutor, flowLocator and flow actions are in spring applicationContext.xml

    may be using MockExternalContext is wrong?
    please help to launch flow without HTTP
    Last edited by tort; Jan 8th, 2007 at 04:08 AM.

  2. #2
    Join Date
    Sep 2004
    Location
    Leuven, Belgium
    Posts
    1,853

    Default

    Could you post the stack trace?
    Also, take a look at how the AbstractFlowExecutionTests are driving a FlowExecution.

    Erwin

  3. #3
    Join Date
    Jul 2006
    Posts
    7

    Default all works

    sorry for being away.
    it was my mistake, SWF works as expected.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •