1 package org.jbpm.bpel.service.def; 2 3 import java.io.Serializable; 4 5 import org.apache.commons.lang.enum.Enum; 6 7 14 public class Correlation implements Serializable { 15 16 long id; 17 private CorrelationSetDefinition set; 18 private Initiate initiate; 19 20 private static final long serialVersionUID = 1L; 21 22 public CorrelationSetDefinition getSet() { 23 return set; 24 } 25 26 public void setSet(CorrelationSetDefinition set) { 27 this.set = set; 28 } 29 30 public Initiate getInitiate() { 31 return initiate; 32 } 33 34 public void setInitiate(Initiate initiate) { 35 this.initiate = initiate; 36 } 37 38 42 public static final class Initiate extends Enum { 43 44 47 public static final Initiate YES = new Initiate("yes"); 48 49 52 public static final Initiate NO = new Initiate("no"); 53 54 58 public static final Initiate RENDEZVOUS = new Initiate("rendezvous"); 59 60 private static final long serialVersionUID = 1L; 61 62 66 private Initiate(String name) { 67 super(name); 68 } 69 70 76 public static Initiate valueOf(String name) { 77 return name != null ? (Initiate) getEnum(Initiate.class, name) : Initiate.NO; 78 } 79 } 80 81 86 public static final class Pattern extends Enum { 87 88 91 public static final Pattern IN = new Pattern("in"); 92 93 96 public static final Pattern OUT = new Pattern("out"); 97 98 101 public static final Pattern OUT_IN = new Pattern("out-in"); 102 103 private static final long serialVersionUID = 1L; 104 105 109 private Pattern(String name) { 110 super(name); 111 } 112 113 119 public static Pattern valueOf(String name) { 120 return (Pattern) getEnum(Pattern.class, name); 121 } 122 } 123 } 124 | Popular Tags |