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

2009-07-20 Thread rujimethut
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

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

2009-07-20 Thread shekharv
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 c

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

2009-07-20 Thread rujimethut
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 l

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

2009-07-20 Thread rujimethut
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 orig

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

2009-07-20 Thread jbarrez
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 t

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

2009-07-20 Thread shekharv
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/

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

2009-07-20 Thread rujimethut
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&