[jboss-user] [jBPM Users] - Re: Accessing the current task of a ProcessInstance and/or h

2009-10-09 Thread shiva0
The TaskQuery won't let search by Parent ProcessInstance. getActiveActivityNames return the name of the active subprocess but not the ID. So it's useless for querying with TaskQuery. getExecutions() on the Parent ProcessInstance return empty since the execution is in the sub-process And I havn

[jboss-user] [jBPM Users] - Re: Accessing the current task of a ProcessInstance and/or h

2009-10-09 Thread Krohm
I would try : List currentTasks = yourProcessEngine.getTaskService() | .createTaskQuery() | .processInstanceId(yourProcessInstanceId) | .list() You can also add various filters and/or order them by Name/ Priority, etc ... (http://docs.jboss.com/jbpm/v4/javadocs/) If you want all the subp

[jboss-user] [jBPM Users] - Re: Accessing the current task of a ProcessInstance and/or h

2009-10-08 Thread newcomer1
Have you found a solution for this? We are have the same use case were we have a process with a lot of subprocesses that create several tasks and we need a simple way to query for all the tasks for the process including tasks generated by its subprocesses. The interfaces have some limitations an