This content has been marked as final.
Show 3 replies
-
1. Re: How to get the tasks instance list when there is no swim
kukeltje Feb 8, 2008 12:01 PM (in response to vsevel)tasks do not have to be assigned to swimlanes. You can assign actors to them and those are used to get tasklists for. If they are assigned to swimlanes, actors/groups are taken from those
-
2. Re: How to get the tasks instance list when there is no swim
simonbaker Feb 8, 2008 4:55 PM (in response to vsevel)Would something like:
JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext(); ProcessInstance procinst = jbpmContext.getProcessInstance(longMyProcId); TaskMgmtInstance taskmgmtinst = procinst.getTaskMgmtInstance(); Collection collTaskInstances = taskmgmtinst.getTaskInstances();
be helpful for your application? If you need all task instances for all process instances you'd need to loop over process instances.
If you need to get all process instances you might want to check into:
JbpmContext.getGraphSession()
GraphSession.findLatestProcessDefinitions()
GraphSession.findProcessInstances(long processDefinitionId) -
3. Re: How to get the tasks instance list when there is no swim
kukeltje Feb 9, 2008 9:38 AM (in response to vsevel)Or build a custom hibernate query