[jboss-user] [JBoss jBPM] - Re: jBPM 4 : Can we get Task by using ProcessInstance?

jbarrez do-not-reply at jboss.com
Fri Jul 17 06:07:18 EDT 2009


You don't have to rely on Hibernate/SQL queries. Acquiring tasks using a process instance id is covered by the API:

 List<Task> tasks = taskService.createTaskQuery().processInstanceId(processInstanceId).list();

anonymous wrote : 1.When the process start, Does it create/persist all task defined int the process definition or it create/persist only the current active tasks? 

Tasks are only persisted when the process instance has arrived at the task activity.

anonymous wrote : 2.How does the jBPM keep orignal process definition?
  | If It keep in database Is it possible to query and reconstruct?

The process definition is persisted in the database, as a deployment lob. So you can query it an reconstruct it (this is what the engine does).

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4244276#4244276

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4244276



More information about the jboss-user mailing list