01: package org.obe.runtime.strategy;
02:
03: import java.security.Principal;
04: import org.obe.spi.WorkflowContext;
05: import org.wfmc.wapi.WMWorkflowException;
06:
07: /**
08: * Assigns work items to all candidates.
09: *
10: * @author Adrian Price
11: */
12: public class AllAssignmentStrategy extends AbstractAssignmentStrategy {
13: public AllAssignmentStrategy() {
14: }
15:
16: public Principal[] apply(Principal[] candidates,
17: boolean expandGroups, WorkflowContext ctx)
18: throws WMWorkflowException {
19:
20: if (expandGroups)
21: candidates = expandGroups(candidates);
22:
23: return candidates;
24: }
25: }
|