Class LoadBalanceAssignmentStrategy
- java.lang.Object
-
- org.jbpm.services.task.assignment.impl.strategy.LoadBalanceAssignmentStrategy
-
- All Implemented Interfaces:
org.kie.internal.task.api.assignment.AssignmentStrategy
public class LoadBalanceAssignmentStrategy extends Object implements org.kie.internal.task.api.assignment.AssignmentStrategy
Assignment strategy that uses a plug-able approach for calculating the load that potential task owners have. It then assigns the task to the user with the lightest load.
-
-
Constructor Summary
Constructors Constructor Description LoadBalanceAssignmentStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.kie.internal.task.api.assignment.Assignment
apply(org.kie.api.task.model.Task task, org.kie.api.task.TaskContext taskContext, String excludedUser)
String
getIdentifier()
-
-
-
Constructor Detail
-
LoadBalanceAssignmentStrategy
public LoadBalanceAssignmentStrategy() throws InstantiationException, IllegalAccessException, ClassNotFoundException
-
-
Method Detail
-
getIdentifier
public String getIdentifier()
- Specified by:
getIdentifier
in interfaceorg.kie.internal.task.api.assignment.AssignmentStrategy
-
apply
public org.kie.internal.task.api.assignment.Assignment apply(org.kie.api.task.model.Task task, org.kie.api.task.TaskContext taskContext, String excludedUser)
- Specified by:
apply
in interfaceorg.kie.internal.task.api.assignment.AssignmentStrategy
-
-