public class UserWithLowestLoadSelectionStrategy extends java.lang.Object implements UserSelectionStrategy
UserSelectionStrategy
UserWithLowestLoadSelectionStrategy selects a user UserModel which have lowest number of tasks assigned to it| Constructor and Description |
|---|
UserWithLowestLoadSelectionStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Set<PrincipalModel> |
getPosEmployees(WorkflowModel workflow,
PrincipalGroupModel principalGroup)
Finds the employees linked to the warehouse which the workflow attached consignment is allocated to.
|
UserModel |
getUserForConsignmentAssignment(WorkflowModel workflow)
Gets the
UserModel to which a consignment should be assigned |
protected WorkflowService |
getWorkflowService() |
void |
setWorkflowService(WorkflowService workflowService) |
protected UserModel |
userWithLowestLoad(WorkflowModel workflow,
WorkflowActionModel workflowAction)
Finds the
UserModel with the lowest load |
public UserModel getUserForConsignmentAssignment(WorkflowModel workflow)
UserSelectionStrategyUserModel to which a consignment should be assignedgetUserForConsignmentAssignment in interface UserSelectionStrategyworkflow - the WorkflowModel to which the ConsignmentModel is attachedUserModel to which the workflow should be assignedprotected UserModel userWithLowestLoad(WorkflowModel workflow, WorkflowActionModel workflowAction)
UserModel with the lowest loadworkflow - the WorkflowModelworkflowAction - the WorkflowActionModelprotected java.util.Set<PrincipalModel> getPosEmployees(WorkflowModel workflow, PrincipalGroupModel principalGroup)
workflow - the given consignment workflowprincipalGroup - the principle group which assigned to the workflow actionprotected WorkflowService getWorkflowService()
public void setWorkflowService(WorkflowService workflowService)
Copyright © 2018 SAP SE. All Rights Reserved.