[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...]
13 years, 9 months
[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...]
13 years, 9 months