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

## org.jbpm.services.task.commands
Class GetTasksByVariousFieldsCommand

    java.lang.Object
      org.jbpm.services.task.commands.TaskCommand<T>
          org.jbpm.services.task.commands.UserGroupCallbackTaskCommand<List<TaskSummary>>
              org.jbpm.services.task.commands.GetTasksByVariousFieldsCommand

All Implemented Interfaces:
  Serializable, org.drools.core.command.impl.GenericCommand<List<TaskSummary>>, Command<List<TaskSummary>>

    public class GetTasksByVariousFieldsCommand

extends UserGroupCallbackTaskCommand<List<TaskSummary>>

See Also:
  Serialized Form

Field Summary

Fields inherited from class org.jbpm.services.task.commands.TaskCommand
`DESCRIPTION_PROPERTY, EXPIRATION_DATE_PROPERTY, FAULT_PROPERTY, groupsIds, OUTPUT_PROPERTY, PRIORITY_PROPERTY, SKIPPABLE_PROPERTY, SUB_TASK_STRATEGY_PROPERTY, targetEntityId, TASK_NAMES_PROPERTY, taskId, userId`

Constructor Summary
`GetTasksByVariousFieldsCommand()`
`GetTasksByVariousFieldsCommand(List<Long> workItemIds, List<Long> taskIds, List<Long> procInstIds, List<String> busAdmins, List<String> potOwners, List<String> taskOwners, List<Status> statuses, boolean union)`
`GetTasksByVariousFieldsCommand(List<Long> workItemIds, List<Long> taskIds, List<Long> procInstIds, List<String> busAdmins, List<String> potOwners, List<String> taskOwners, List<Status> statuses, List<String> language, boolean union)`
`GetTasksByVariousFieldsCommand(List<Long> workItemIds, List<Long> taskIds, List<Long> procInstIds, List<String> busAdmins, List<String> potOwners, List<String> taskOwners, List<Status> statuses, List<String> language, boolean union, Integer maxResults)`
`GetTasksByVariousFieldsCommand(Map<String,List<?>> params, boolean union)`
`GetTasksByVariousFieldsCommand(Map<String,List<?>> params, boolean union, Integer maxResults)`

Method Summary
`List<TaskSummary>` | `execute(org.kie.internal.command.Context cntxt)`
`List<String>` | `getBusAdmins()`
`List<String>` | `getLanguage()`
`Integer` | `getMaxResults()`
`List<String>` | `getPotOwners()`
`List<Long>` | `getProcInstIds()`
`List<Status>` | `getStatuses()`
`List<Long>` | `getTaskIds()`
`List<String>` | `getTaskOwners()`
`Boolean` | `getUnion()`
`List<Long>` | `getWorkItemIds()`
`protected List<String>` | `populateOrganizationalEntityWithGroupInfo(List<String> entities, TaskContext context)` Populates given list with group information taken from UserGroupCallback implementation to allow proper query for tasks based on user assignments.
`void` | `setBusAdmins(List<String> busAdmins)`
`void` | `setLanguage(List<String> language)`
`void` | `setMaxResults(Integer maxResults)`
`void` | `setPotOwners(List<String> potOwners)`
`void` | `setProcInstIds(List<Long> procInstIds)`
`void` | `setStatuses(List<Status> statuses)`
`void` | `setTaskIds(List<Long> taskIds)`
`void` | `setTaskOwners(List<String> taskOwners)`
`void` | `setUnion(Boolean union)`
`void` | `setWorkItemIds(List<Long> workItemIds)`

Methods inherited from class org.jbpm.services.task.commands.UserGroupCallbackTaskCommand
`addGroupFromCallbackOperation, addUserFromCallbackOperation, doCallbackGroupOperation, doCallbackGroupsOperation, doCallbackOperationForAttachment, doCallbackOperationForComment, doCallbackOperationForPeopleAssignments, doCallbackOperationForPotentialOwners, doCallbackOperationForTaskData, doCallbackOperationForTaskDeadlines, doCallbackUserOperation, doUserGroupCallbackOperation, filterGroups, persistIfNotExists`

Methods inherited from class org.jbpm.services.task.commands.TaskCommand
`getGroupsIds, getTargetEntityId, getTaskId, getUserId, setGroupsIds, setTargetEntityId, setTaskId, setUserId`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### GetTasksByVariousFieldsCommand

    public GetTasksByVariousFieldsCommand()

### GetTasksByVariousFieldsCommand

    public GetTasksByVariousFieldsCommand(List<Long> workItemIds,
                                          List<Long> taskIds,
                                          List<Long> procInstIds,
                                          List<String> busAdmins,
                                          List<String> potOwners,
                                          List<String> taskOwners,
                                          List<Status> statuses,
                                          boolean union)

### GetTasksByVariousFieldsCommand

    public GetTasksByVariousFieldsCommand(List<Long> workItemIds,
                                          List<Long> taskIds,
                                          List<Long> procInstIds,
                                          List<String> busAdmins,
                                          List<String> potOwners,
                                          List<String> taskOwners,
                                          List<Status> statuses,
                                          List<String> language,
                                          boolean union)

### GetTasksByVariousFieldsCommand

    public GetTasksByVariousFieldsCommand(List<Long> workItemIds,
                                          List<Long> taskIds,
                                          List<Long> procInstIds,
                                          List<String> busAdmins,
                                          List<String> potOwners,
                                          List<String> taskOwners,
                                          List<Status> statuses,
                                          List<String> language,
                                          boolean union,
                                          Integer maxResults)

### GetTasksByVariousFieldsCommand

    public GetTasksByVariousFieldsCommand(Map<String,List<?>> params,
                                          boolean union)

### GetTasksByVariousFieldsCommand

    public GetTasksByVariousFieldsCommand(Map<String,List<?>> params,
                                          boolean union,
                                          Integer maxResults)

Method Detail

### execute

    public List<TaskSummary> execute(org.kie.internal.command.Context cntxt)

  Specified by:
    `execute` in interface `org.drools.core.command.impl.GenericCommand<List<TaskSummary>>`
  Overrides:
    `execute` in class `UserGroupCallbackTaskCommand<List<TaskSummary>>`

### getWorkItemIds

    public List<Long> getWorkItemIds()

### setWorkItemIds

    public void setWorkItemIds(List<Long> workItemIds)

### getTaskIds

    public List<Long> getTaskIds()

### setTaskIds

    public void setTaskIds(List<Long> taskIds)

### getProcInstIds

    public List<Long> getProcInstIds()

### setProcInstIds

    public void setProcInstIds(List<Long> procInstIds)

### getBusAdmins

    public List<String> getBusAdmins()

### setBusAdmins

    public void setBusAdmins(List<String> busAdmins)

### getPotOwners

    public List<String> getPotOwners()

### setPotOwners

    public void setPotOwners(List<String> potOwners)

### getTaskOwners

    public List<String> getTaskOwners()

### setTaskOwners

    public void setTaskOwners(List<String> taskOwners)

### getStatuses

    public List<Status> getStatuses()

### setStatuses

    public void setStatuses(List<Status> statuses)

### getLanguage

    public List<String> getLanguage()

### setLanguage

    public void setLanguage(List<String> language)

### getUnion

    public Boolean getUnion()

### setUnion

    public void setUnion(Boolean union)

### getMaxResults

    public Integer getMaxResults()

### setMaxResults

    public void setMaxResults(Integer maxResults)

### populateOrganizationalEntityWithGroupInfo

    protected List<String> populateOrganizationalEntityWithGroupInfo(List<String> entities,
                                                                     TaskContext context)

  Populates given list with group information taken from UserGroupCallback implementation to allow proper query for tasks based on user assignments.

  Parameters:
    `entities` - - "raw" list of organizational entities
  Returns:
    if list is not null and not empty returns list of org entities populated with group info, otherwise same as argument

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| jBPM distribution 6.2.0.Beta1
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.