org.jbpm.db
Class TaskMgmtSession

java.lang.Object
  extended by org.jbpm.db.TaskMgmtSession

public class TaskMgmtSession
extends Object


Constructor Summary
TaskMgmtSession(JbpmSession jbpmSession)
          Deprecated. use TaskMgmtSession(Session) instead
TaskMgmtSession(org.hibernate.Session session)
           
 
Method Summary
 List findPooledTaskInstances(List actorIds)
          get the task instances for which the given actor is in the pool.
 List findPooledTaskInstances(String actorId)
          get the task instances for which the given actor is in the pool.
 List findTaskInstances(List actorIds)
          get all the task instances for all the given actor identifiers.
 List findTaskInstances(String actorId)
          get the task list for a given actor.
 List findTaskInstances(String[] actorIds)
          get all the task instances for all the given actorIds.
 List findTaskInstancesByIds(List taskInstanceIds)
           
 List findTaskInstancesByProcessInstance(ProcessInstance processInstance)
          get active task instances for a given process instance.
 List findTaskInstancesByToken(long tokenId)
          get active task instances for a given token.
 TaskInstance getTaskInstance(long taskInstanceId)
          get the task instance for a given task instance-id.
 TaskInstance loadTaskInstance(long taskInstanceId)
          get the task instance for a given task instance-id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskMgmtSession

public TaskMgmtSession(JbpmSession jbpmSession)
Deprecated. use TaskMgmtSession(Session) instead


TaskMgmtSession

public TaskMgmtSession(org.hibernate.Session session)
Method Detail

findTaskInstances

public List findTaskInstances(String actorId)
get the task list for a given actor.


findTaskInstances

public List findTaskInstances(List actorIds)
get all the task instances for all the given actor identifiers.

Returns:
a list of task instances. An empty list is returned in case no task instances are found.

findTaskInstances

public List findTaskInstances(String[] actorIds)
get all the task instances for all the given actorIds.


findPooledTaskInstances

public List findPooledTaskInstances(String actorId)
get the task instances for which the given actor is in the pool.


findPooledTaskInstances

public List findPooledTaskInstances(List actorIds)
get the task instances for which the given actor is in the pool.


findTaskInstancesByToken

public List findTaskInstancesByToken(long tokenId)
get active task instances for a given token.


findTaskInstancesByProcessInstance

public List findTaskInstancesByProcessInstance(ProcessInstance processInstance)
get active task instances for a given process instance.


loadTaskInstance

public TaskInstance loadTaskInstance(long taskInstanceId)
get the task instance for a given task instance-id.


getTaskInstance

public TaskInstance getTaskInstance(long taskInstanceId)
get the task instance for a given task instance-id.


findTaskInstancesByIds

public List findTaskInstancesByIds(List taskInstanceIds)


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.