Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| jBPM distribution 6.2.0.CR3
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.kie.api.task
Interface TaskService

All Superinterfaces:
  CommandExecutor

All Known Subinterfaces:
  org.kie.internal.task.api.InternalTaskService, TaskServiceEJBLocal

All Known Implementing Classes:
  CommandBasedTaskService, SynchronizedTaskService, TaskServiceEJBImpl

    public interface TaskService

extends CommandExecutor

The Task Service Entry Point serves as facade of all the other services, providing a single entry point to access to all the services

Method Summary
`void` | `activate(long taskId, String userId)`
`long` | `addTask(Task task, Map<String,Object> params)`
`void` | `claim(long taskId, String userId)`
`void` | `claimNextAvailable(String userId, String language)`
`void` | `complete(long taskId, String userId, Map<String,Object> data)`
`void` | `delegate(long taskId, String userId, String targetUserId)`
`void` | `exit(long taskId, String userId)`
`void` | `fail(long taskId, String userId, Map<String,Object> faultData)`
`void` | `forward(long taskId, String userId, String targetEntityId)`
`Attachment` | `getAttachmentById(long attachId)`
`Content` | `getContentById(long contentId)`
`Task` | `getTaskById(long taskId)`
`Task` | `getTaskByWorkItemId(long workItemId)`
`Map<String,Object>` | `getTaskContent(long taskId)`
`List<TaskSummary>` | `getTasksAssignedAsBusinessAdministrator(String userId, String language)`
`List<TaskSummary>` | `getTasksAssignedAsPotentialOwner(String userId, List<String> groupIds, int firstResult, int maxResults)` Deprecated.
`List<TaskSummary>` | `getTasksAssignedAsPotentialOwner(String userId, String language)`
`List<TaskSummary>` | `getTasksAssignedAsPotentialOwnerByStatus(String userId, List<Status> status, String language)`
`List<Long>` | `getTasksByProcessInstanceId(long processInstanceId)`
`List<TaskSummary>` | `getTasksByStatusByProcessInstanceId(long processInstanceId, List<Status> status, String language)`
`List<TaskSummary>` | `getTasksByVariousFields(String userId, List<Long> workItemIds, List<Long> taskIds, List<Long> procInstIds, List<String> busAdmins, List<String> potOwners, List<String> taskOwners, List<Status> status, boolean union)` Deprecated.
`List<TaskSummary>` | `getTasksByVariousFields(String userId, Map<String,List<?>> parameters, boolean union)` Deprecated.
`List<TaskSummary>` | `getTasksOwned(String userId, String language)`
`List<TaskSummary>` | `getTasksOwnedByStatus(String userId, List<Status> status, String language)`
`void` | `nominate(long taskId, String userId, List<OrganizationalEntity> potentialOwners)`
`void` | `release(long taskId, String userId)`
`void` | `resume(long taskId, String userId)`
`void` | `skip(long taskId, String userId)`
`void` | `start(long taskId, String userId)`
`void` | `stop(long taskId, String userId)`
`void` | `suspend(long taskId, String userId)`

Methods inherited from interface org.kie.api.runtime.CommandExecutor
`execute`

Method Detail

### activate

    void activate(long taskId,
                  String userId)

### claim

    void claim(long taskId,
               String userId)

### claimNextAvailable

    void claimNextAvailable(String userId,
                            String language)

### complete

    void complete(long taskId,
                  String userId,
                  Map<String,Object> data)

### delegate

    void delegate(long taskId,
                  String userId,
                  String targetUserId)

### exit

    void exit(long taskId,
              String userId)

### fail

    void fail(long taskId,
              String userId,
              Map<String,Object> faultData)

### forward

    void forward(long taskId,
                 String userId,
                 String targetEntityId)

### getTaskByWorkItemId

    Task getTaskByWorkItemId(long workItemId)

### getTaskById

    Task getTaskById(long taskId)

### getTasksAssignedAsBusinessAdministrator

    List<TaskSummary> getTasksAssignedAsBusinessAdministrator(String userId,
                                                              String language)

### getTasksAssignedAsPotentialOwner

    List<TaskSummary> getTasksAssignedAsPotentialOwner(String userId,
                                                       String language)

### getTasksAssignedAsPotentialOwner

    @Deprecated
    List<TaskSummary> getTasksAssignedAsPotentialOwner(String userId,
                                                                  List<String> groupIds,
                                                                  int firstResult,
                                                                  int maxResults)

  Deprecated.

### getTasksAssignedAsPotentialOwnerByStatus

    List<TaskSummary> getTasksAssignedAsPotentialOwnerByStatus(String userId,
                                                               List<Status> status,
                                                               String language)

### getTasksOwned

    List<TaskSummary> getTasksOwned(String userId,
                                    String language)

### getTasksOwnedByStatus

    List<TaskSummary> getTasksOwnedByStatus(String userId,
                                            List<Status> status,
                                            String language)

### getTasksByStatusByProcessInstanceId

    List<TaskSummary> getTasksByStatusByProcessInstanceId(long processInstanceId,
                                                          List<Status> status,
                                                          String language)

### getTasksByProcessInstanceId

    List<Long> getTasksByProcessInstanceId(long processInstanceId)

### addTask

    long addTask(Task task,
                 Map<String,Object> params)

### release

    void release(long taskId,
                 String userId)

### resume

    void resume(long taskId,
                String userId)

### skip

    void skip(long taskId,
              String userId)

### start

    void start(long taskId,
               String userId)

### stop

    void stop(long taskId,
              String userId)

### suspend

    void suspend(long taskId,
                 String userId)

### nominate

    void nominate(long taskId,
                  String userId,
                  List<OrganizationalEntity> potentialOwners)

### getContentById

    Content getContentById(long contentId)

### getAttachmentById

    Attachment getAttachmentById(long attachId)

### getTaskContent

    Map<String,Object> getTaskContent(long taskId)

### getTasksByVariousFields

    @Deprecated
    List<TaskSummary> getTasksByVariousFields(String userId,
                                                         List<Long> workItemIds,
                                                         List<Long> taskIds,
                                                         List<Long> procInstIds,
                                                         List<String> busAdmins,
                                                         List<String> potOwners,
                                                         List<String> taskOwners,
                                                         List<Status> status,
                                                         boolean union)

  Deprecated.

  This method will be removed in jBPM 7.x because of new methods that better implement this functionality. This method queries using the given arguments.

  Parameters:
    `userId` - Optional parameter: the task user id
    `workItemIds` - Optional parameter: a list of work item ids
    `taskIds` - Optional parameter: a list of task ids
    `procInstIds` - Optional parameter: a list of task ids
    `busAdmins` - Optional parameter: a list of business administrator ids
    `potOwners` - Optional parameter: a list of potential owners
    `taskOwners` - Optional parameter: a list of task owners
    `status` - Optional parameter: a list of status's
    `union` - Required: whether the query should be a union or intersection of the criteria
  Returns:
    a List of `TaskSummary` instances that fit the critieria given

### getTasksByVariousFields

    @Deprecated
    List<TaskSummary> getTasksByVariousFields(String userId,
                                                         Map<String,List<?>> parameters,
                                                         boolean union)

  Deprecated.

  This method will be removed in jBPM 7.x because of new methods that better implement this functionality. Using this method is not recommended.

  See Also:
    `#getTasksByVariousFields(String, List, List, List, List, List, List, List, boolean)}`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| jBPM distribution 6.2.0.CR3
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.