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 _______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
