[jBPM] - jbpm5 not able to run multiple instances of a process
by ritesh adval
ritesh adval [http://community.jboss.org/people/riteshadval] created the discussion
"jbpm5 not able to run multiple instances of a process"
To view the discussion, visit: http://community.jboss.org/message/580755#580755
--------------------------------------------------------------
I ran the sample tests in jbpm-bpmn2 source directory to test if multiple process instance can be run where each instance is not yet finished. It is not working for me. What I observed is that each new instance of a process is getting 1 as the process instance id?
This is what I did:
(1) I configured persistence.xml to use mysql.
(2) I start an instance of process ( https://github.com/krisv/jbpm/blob/master/jbpm-bpmn2/src/test/resources/B... BPMN2-EventBasedSplit.bpmn2) by running testEventBasedSplit() of org/jbpm/bpmn2/StandaloneBPMNProcessTest, and run it till just before sending Yes signal.
(3) I create another instance of above process and do the same as step (2),
So at this point there should be two process instance which are not yet completed.What I am observing is that two process instance in PROCESSINSTANCELOG have same process instance id. I tried creating one session StatefulKnowledgeSession with two instance and they are getting same instance id.
So when I recreate StatefulKnowledgeSession by using existing sessionid of database, I only get one process instance from the api which returns list of process instance.
Other thing I have noticed is that PROCESSINSTANCEINFO is always empty and no row is inserted there, could this be an issue?
I was able to configure history log to start saving , NODEINSTANCELOG, variable and PROCESSINSTANCELO, I am not sure why PROCESSINSTANCELOG is empty?
Maybe I am missing something, I am new to jbpm and trying to evaluate if we should use jbpm5 or stick to jbpm4.4 for sometime.
-Ritesh.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/580755#580755]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 1 month
[jBPM] - Eclipse -jBPM5/CR1 - Human Task View
by bpmn2 user
bpmn2user [http://community.jboss.org/people/bpmn2user] created the discussion
"Eclipse -jBPM5/CR1 - Human Task View"
To view the discussion, visit: http://community.jboss.org/message/578519#578519
--------------------------------------------------------------
Following error gets generated while trying to use the refresh button.
It perhaps looking for the older drools class instead of using 'org.jbpm.task.service.Command'.
Any comments?
Caused by: java.lang.ClassNotFoundException: org.drools.task.service.Command
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
-------------------------------------------------------------------------------------------------------------------------------
Here is the test code snippet:
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import org.drools.SystemEventListenerFactory;
import org.jbpm.task.service.TaskService;
import org.jbpm.task.service.TaskServiceSession;
import org.jbpm.task.service.mina.MinaTaskServer;
import org.jbpm.task.User;
public class TestJBPMHumanTask {
@SuppressWarnings("unchecked")
public static void main(String[] args) throws InterruptedException {
EntityManagerFactory emf = Persistence.createEntityManagerFactory("org.jbpm.task");
TaskService taskService = new TaskService(emf, SystemEventListenerFactory.getSystemEventListener());
TaskServiceSession taskSession = taskService.createSession();
taskSession.addUser(new User("Administrator"));
// start server
MinaTaskServer server = new MinaTaskServer(taskService);
Thread thread = new Thread(server);
thread.start();
System.out.println("Server started ...");
Thread.sleep(5000);
//taskSession.dispose();
}
}
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/578519#578519]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 1 month
[jBPM] - jBPM 5 Loop Type support?
by byungwoojun
byungwoojun [http://community.jboss.org/people/byungwoojun] created the discussion
"jBPM 5 Loop Type support?"
To view the discussion, visit: http://community.jboss.org/message/589366#589366
--------------------------------------------------------------
1) Subprocess Loop Type:
According to the jBPM 5 user guide and some jBPM 5 blogs, the "looping back" seems to be supported from the subprocess (and multi instance). However, from the Eclipse BPMN2 Process editor (which came with the jBPM 5 installation), I couldn't find any subprocess property field for the subprocess looping. How do I set the subprocess loop type from the Eclipse BPMN2 Process editor?
The Oryx-based designer integrated with Guvnor has the subprocess loop type, but this designer does NOT allow me to "save" any process defintion with the subprocess (does NOT support the subprocess enum yet),as I reported earlier.
So, I cannot use either BPMN 2 designer to define the looping subprocess. Does anyone have a suggestion for this? Any help will be appreciated.
2) Process Loop back:
For putting the loop back in a process, one blog suggested using a converging parallel gateway and a diverging gateway as follows:
http://community.jboss.org/servlet/JiveServlet/showImage/2-589366-11474/l... http://community.jboss.org/servlet/JiveServlet/downloadImage/2-589366-114...
But, the "Hello Again" acitivity was never executed. It seems to me that the converging parellel gatway <+> is waiting for the "Hello Back" before it goes to the "Hello Again" activity. It is possible my configuration is incorrect. If the process loop back is possible, how do I do it?
Thanks,
bwj
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/589366#589366]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 1 month