01: package org.obe.xpdl.model.ext;
02:
03: import org.obe.util.AbstractBean;
04:
05: /**
06: * Defines the strategy for work item assignment.
07: *
08: * @author Adrian Price
09: */
10: public final class AssignmentStrategyDef extends AbstractBean {
11: private static final long serialVersionUID = -6818952189605162164L;
12: /**
13: * The default work item assignment strategy. The default expands groups
14: * and assigns work items to all users.
15: */
16: public static final AssignmentStrategyDef DEFAULT = new AssignmentStrategyDef(
17: "ALL", true);
18: private String _id;
19: private boolean _expandGroups = true;
20:
21: public AssignmentStrategyDef() {
22: }
23:
24: public AssignmentStrategyDef(String id, boolean expandGroups) {
25:
26: _id = id;
27: _expandGroups = expandGroups;
28: }
29:
30: public String getId() {
31: return _id;
32: }
33:
34: public void setId(String id) {
35: _id = id;
36: }
37:
38: public boolean getExpandGroups() {
39: return _expandGroups;
40: }
41:
42: public void setExpandGroups(boolean expandGroups) {
43: _expandGroups = expandGroups;
44: }
45:
46: public String toString() {
47: return "AssignmentStrategyDef[id=" + _id + ", expandGroups="
48: + _expandGroups + ']';
49: }
50: }
|