[JBoss jBPM] - Re: threads with task and process with task
by salaboy21
Answers:
anonymous wrote : 1) Can we have multiple process instances in a execution?
yes, of course you can, is the most common situation
anonymous wrote : 2) Can the process instances, can save the state of itself at any time?
you should look the concept of wait states (this is where the process saves automatically), but imagine that the process can be saved by transaction demarcation any time you want.
anonymous wrote : 3) Can the process instances be started and stopped during the execution?
If you imagine something like pausing the process or wait for an external action, yes you can.
anonymous wrote : 4) Can the process Instances communicate with each other?
This sounds strange, and in my experience is not the most common scenario. But you can have father/child relation ship with the process-state nodes. And there yes, the can comunicate each other.
anonymous wrote : 5) Can i have process instances in different threads and return the status to controlling thread?
hmm... I try to understand why are you asking this.. but.. i think the answer of this question is yes. Because all the process run in diferent threads and then you can query them with the correspondent ID. But you should try to not think the process executions as a thread. Because there is no one to one relationship between this two concepts..
Hope it helps...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4188510#4188510
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4188510
17 years, 4 months
[JBoss jBPM] - Re: deploy a procesee to jboss server suing java code
by Grid.Qian
You means jbpm-jpdl.jar? I had added it to the dependencies. But I still get the error:
Exception in thread "main" couldn't deploy process archives : null
| at org.jbpm.ant.DeployProcessToServerTask.execute(DeployProcessToServerTask.java:179)
| at org.jboss.soa.esb.samples.quickstarts.bpm_orchestration1.test.SendTestMessage.deployProcessToServer(SendTestMessage.java:65)
| at org.jboss.soa.esb.samples.quickstarts.bpm_orchestration1.test.SendTestMessage.sendMessage(SendTestMessage.java:41)
| at org.jboss.soa.esb.samples.quickstarts.bpm_orchestration1.test.SendTestMessage.main(SendTestMessage.java:72)
| Caused by: java.lang.NullPointerException
| at org.jbpm.ant.DeployProcessToServerTask.tryFormBasedAuthentication(DeployProcessToServerTask.java:276)
| at org.jbpm.ant.DeployProcessToServerTask.deployProcess(DeployProcessToServerTask.java:196)
| at org.jbpm.ant.DeployProcessToServerTask.deployProcessWithServlet(DeployProcessToServerTask.java:188)
| at org.jbpm.ant.DeployProcessToServerTask.execute(DeployProcessToServerTask.java:142)
| ... 3 more
| --- Nested Exception ---
| java.lang.NullPointerException
| at org.jbpm.ant.DeployProcessToServerTask.tryFormBasedAuthentication(DeployProcessToServerTask.java:276)
| at org.jbpm.ant.DeployProcessToServerTask.deployProcess(DeployProcessToServerTask.java:196)
| at org.jbpm.ant.DeployProcessToServerTask.deployProcessWithServlet(DeployProcessToServerTask.java:188)
| at org.jbpm.ant.DeployProcessToServerTask.execute(DeployProcessToServerTask.java:142)
| at org.jboss.soa.esb.samples.quickstarts.bpm_orchestration1.test.SendTestMessage.deployProcessToServer(SendTestMessage.java:65)
| at org.jboss.soa.esb.samples.quickstarts.bpm_orchestration1.test.SendTestMessage.sendMessage(SendTestMessage.java:41)
| at org.jboss.soa.esb.samples.quickstarts.bpm_orchestration1.test.SendTestMessage.main(SendTestMessage.java:72)
I debug into the codes and found if we use '/jbpm-console/upload', in the tryFormBasedAuthentication() of DeployProcessToServerTask class,
Header location = loginFormPost.getResponseHeader("Location");
the location == null, so we get the NullPointerException.
if we use '/jbpm-console/app/upload',
the location is not null, but we will get
java.io.FileNotFoundException: http://localhost:8080/jbpm-console/app/upload error.
"salaboy21" wrote : If you add the jbpm-jpdl-xxx.jar to the dependencies I think you can compile this code.
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4188326#4188326
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4188326
17 years, 5 months