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

## org.kie.api.task
Interface TaskService

All Known Implementing Classes:
  CommandBasedTaskService, SynchronizedTaskService, TaskServiceEntryPointImpl

    public interface TaskService

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)`
`List<TaskSummary>` | `getTasksAssignedAsBusinessAdministrator(String userId, String language)`
`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(List<Long> workItemIds, List<Long> taskIds, List<Long> procInstIds, List<String> busAdmins, List<String> potOwners, List<String> taskOwners, List<Status> status, boolean union)`
`List<TaskSummary>` | `getTasksByVariousFields(Map<String,List<?>> parameters, boolean union)`
`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)`

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)

### 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)

### getTasksByVariousFields

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

### getTasksByVariousFields

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

### 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)

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

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