01: /*
02: * $Id: CorrelationImpl.java,v 1.5 2004/12/09 12:34:42 kowap Exp $
03: *
04: * Copyright (c) 2004 Patric Fornasier, Pawel Kowalski
05: * Berne University of Applied Sciences
06: * School of Engineering and Information Technology
07: * All rights reserved.
08: */
09: package bexee.model.elements.impl;
10:
11: import bexee.core.ProcessController;
12: import bexee.core.ProcessInstance;
13: import bexee.model.BPELElementVisitor;
14: import bexee.model.elements.Correlation;
15: import bexee.model.elements.CorrelationPattern;
16:
17: /**
18: * Default implementation of the <code>Correlation</code> BPEL element.
19: *
20: * @version $Revision: 1.5 $, $Date: 2004/12/09 12:34:42 $
21: * @author Patric Fornasier
22: * @author Pawel Kowalski
23: */
24: public class CorrelationImpl implements Correlation {
25:
26: private String set;
27:
28: private boolean initiate;
29:
30: private CorrelationPattern pattern;
31:
32: //**************************************************/
33: // c'tors
34: //**************************************************/
35:
36: public CorrelationImpl() {
37: super ();
38: }
39:
40: //**************************************************/
41: // bexee.model.elements.Correlation
42: //**************************************************/
43:
44: public void setSet(String set) {
45: this .set = set;
46: }
47:
48: public String getSet() {
49: return set;
50: }
51:
52: public void setInitiate(boolean initiate) {
53: this .initiate = initiate;
54: }
55:
56: public boolean isInitiate() {
57: return initiate;
58: }
59:
60: public void setPattern(CorrelationPattern pattern) {
61: this .pattern = pattern;
62: }
63:
64: public CorrelationPattern getPattern() {
65: return pattern;
66: }
67:
68: //**************************************************/
69: // bexee.model.BPELElement
70: //**************************************************/
71:
72: public void accept(ProcessController controller,
73: ProcessInstance instance) throws Exception {
74: controller.process(this , instance);
75: }
76:
77: public void accept(BPELElementVisitor elementVisitor) {
78: elementVisitor.visit(this);
79: }
80: }
|