org.jbpm.db
Class TaskMgmtSession

java.lang.Object
  extended by org.jbpm.db.TaskMgmtSession
All Implemented Interfaces:
java.io.Serializable

public class TaskMgmtSession
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
TaskMgmtSession(JbpmSession jbpmSession)
           
TaskMgmtSession(org.hibernate.Session session)
           
 
Method Summary
 java.util.List<TaskInstance> findPooledTaskInstances(java.util.List<java.lang.String> actorIds)
          get the task instances for which the given actor is in the pool.
 java.util.List<TaskInstance> findPooledTaskInstances(java.lang.String actorId)
          get the task instances for which the given actor is in the pool.
 java.util.List<TaskInstance> findTaskInstances(java.util.List<java.lang.String> actorIds)
          get all the task instances for all the given actorIds.
 java.util.List<TaskInstance> findTaskInstances(java.lang.String actorId)
          get the tasklist for a given actor.
 java.util.List<TaskInstance> findTaskInstances(java.lang.String[] actorIds)
          get all the task instances for all the given actorIds.
 java.util.List<TaskInstance> findTaskInstancesByIds(java.util.List<java.lang.Long> taskInstanceIds)
           
 java.util.List<TaskInstance> findTaskInstancesByProcessInstance(ProcessInstance processInstance)
          get active task instances for a given process instance.
 java.util.List<TaskInstance> 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)

TaskMgmtSession

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

findTaskInstances

public java.util.List<TaskInstance> findTaskInstances(java.lang.String actorId)
get the tasklist for a given actor.


findTaskInstances

public java.util.List<TaskInstance> findTaskInstances(java.util.List<java.lang.String> actorIds)
get all the task instances for all the given actorIds.

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

findTaskInstances

public java.util.List<TaskInstance> findTaskInstances(java.lang.String[] actorIds)
get all the task instances for all the given actorIds.


findPooledTaskInstances

public java.util.List<TaskInstance> findPooledTaskInstances(java.lang.String actorId)
get the task instances for which the given actor is in the pool.


findPooledTaskInstances

public java.util.List<TaskInstance> findPooledTaskInstances(java.util.List<java.lang.String> actorIds)
get the task instances for which the given actor is in the pool.


findTaskInstancesByToken

public java.util.List<TaskInstance> findTaskInstancesByToken(long tokenId)
get active task instances for a given token.


findTaskInstancesByProcessInstance

public java.util.List<TaskInstance> 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 java.util.List<TaskInstance> findTaskInstancesByIds(java.util.List<java.lang.Long> taskInstanceIds)


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