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
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)
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
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
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.