[jboss-user] [JBoss jBPM] - Re: jBPM 4 : Can we get Task by using ProcessInstance?
Or we have to keep taskId in our business model as well? if so how to get this taskId and assign it to our model? We want to do something like 1. create new model 2. start process 3. assign processInstance and active taskIds to model. 4.when user view/edit the business model we display process information(eg. history completed task, current task, future task) which belong to that process instance, and also offer button to take/complete the current Task (of course if that user is one of that task's candidates) Is it possible to to this in jBPM 4? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4244028#4244028 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4244028 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jBPM 4 : Can we get Task by using ProcessInstance?
There was some discussion that the addition of this feature where you could pull the tasks related to a processInstance from within the TaskService API itself, I do not think this is in the release as yet, So in the meanwhile you could always do this, fairly simple and quick to implement: You could only assign the processInstance ID to your model and whenever you want to load tasks, you would use that value to fire off a custom query to jbpm4_task that would give you the list of tasks for that processInstance. something like: FROM Task t where t.PROCINST_ = ? get the drift? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4244050#4244050 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4244050 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jBPM 4 : Can we get Task by using ProcessInstance?
Sorry those are 2 more question :) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4244067#4244067 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4244067 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jBPM 4 : Can we get Task by using ProcessInstance?
Thank you for your quick response, shekharv. Now I think I see the way to do it as your suggestion. One more question. 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? 2.How does the jBPM keep orignal process definition? If It keep in database Is it possible to query and reconstruct? We just want to show user the simple process diagram like: previous task - current task - next task Thank you & appreciate your help View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4244066#4244066 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4244066 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jBPM 4 : Can we get Task by using ProcessInstance?
You don't have to rely on Hibernate/SQL queries. Acquiring tasks using a process instance id is covered by the API: List 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 jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jBPM 4 : Can we get Task by using ProcessInstance?
Yes! This was not in CR!, but did make it to GA, I knew there was a discussion to add it, but then I guess I looked in the wrong place when I checked :P. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4244321#4244321 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4244321 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jBPM 4 : Can we get Task by using ProcessInstance?
Yes, when I change from CR to GA I can see the api of querying task by the process Id Thank you all for your help. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4244452#4244452 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4244452 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user