[JBoss jBPM] - Blocked signal call
by avivstav
Hi
I wrote a simple flow that use web events as trigger to continue the flow.
I use the following code to start the flow:
| public Long startFlow(long id,String problem, long sid) {
|
| Long processDefId = null;
| JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
| try {
|
| GraphSession graphSession = jbpmContext.getGraphSession();
|
| ProcessDefinition processDefinition =
| graphSession.findLatestProcessDefinition("start");
|
| ProcessInstance processInstance =
| new ProcessInstance(processDefinition);
|
| ContextInstance contextInstance = processInstance.getContextInstance();
| contextInstance.setVariable("id", id);
| contextInstance.setVariable("problem", problem);
| contextInstance.setVariable("sid" , sid);
| contextInstance.setVariable("processDefId" , processDefinition.getId());
|
| Token token = processInstance.getRootToken();
|
| token.signal();
| jbpmContext.save(processInstance);
|
| } finally {
| return processDefId;
| }
| }
|
And I also wrote second method which continue to other states in the flow.
As I understand each call to signal() moves one step in the flow in non-blocking mode,
Is it possible that the token.signal() will be blocked until the ActionHandler defined for that state ended?
I want to response the caller of that method (startFlow) with variable returned in the ContextVariable of the ActionHandler, is it possible?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045460#4045460
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045460
19 years, 1 month
[JBoss Seam] - No phase id bound to current thread...(false multiple SeamPh
by jgreene
Hello -
Maybe I've missed something, but is there a definitive solution yet to the error mentioned in this thread subject? I've seen this posted before, but still no solution. I've been running a simple Seam app at work using Tomcat, and it has been running fine. I added a couple of database tables and beans, did not change any of the xml configuration files, and suddenly am seeing the "No phase id bound to current thread..." message. The project compiles just fine, Tomcat starts up beautifully, but then the message. The message is:
"java.lang.IllegalStateException: No phase id bound to current thread (make sure you do not have two SeamPhaseListener instances installed)
I have not consciously installed two SeamPhaseListener instances, and keep in mind that this app had been working, but moved it to my home box (running Tomcat also), added a couple of database tables and beans, changed no config files, and now get the error message. Any help would be greatly appreciated. Thanks a bunch.
- Joe
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045446#4045446
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045446
19 years, 1 month