-
Jan 8th, 2007, 04:01 AM
#1
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.
-
Jan 8th, 2007, 04:22 AM
#2
Could you post the stack trace?
Also, take a look at how the AbstractFlowExecutionTests are driving a FlowExecution.
Erwin
-
Jan 10th, 2007, 03:09 AM
#3
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
-
Forum Rules