01: /*
02: * $Id: CompensateImpl.java,v 1.10 2004/12/09 12:34:20 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.activity.impl;
10:
11: import bexee.core.ProcessController;
12: import bexee.core.ProcessInstance;
13: import bexee.model.BPELElementVisitor;
14: import bexee.model.StandardAttributes;
15: import bexee.model.activity.Compensate;
16: import bexee.model.activity.Scope;
17:
18: /**
19: * Default implementation of the <code>Compensate</code> BPEL activity.
20: *
21: * @version $Revision: 1.10 $, $Date: 2004/12/09 12:34:20 $
22: * @author Patric Fornasier
23: * @author Pawel Kowalski
24: */
25: public class CompensateImpl extends AbstractActivity implements
26: Compensate {
27:
28: private Scope scope = null;
29:
30: //**************************************************/
31: // c'tors
32: //**************************************************/
33:
34: public CompensateImpl() {
35: this (null);
36: }
37:
38: public CompensateImpl(StandardAttributes standardAttributes) {
39: super (standardAttributes);
40: }
41:
42: //**************************************************/
43: // bexee.model.activity.Compensate
44: //**************************************************/
45:
46: /*
47: * (non-Javadoc)
48: *
49: * @see bexee.model.activity.Compensate#setScope(bexee.model.activity.Scope)
50: */
51: public void setScope(Scope scope) {
52: this .scope = scope;
53: }
54:
55: /*
56: * (non-Javadoc)
57: *
58: * @see bexee.model.activity.Compensate#getScope()
59: */
60: public Scope getScope() {
61: return scope;
62: }
63:
64: //**************************************************/
65: // bexee.core.BPELElement
66: //**************************************************/
67:
68: /*
69: * (non-Javadoc)
70: *
71: * @see bexee.core.BPELElement#accept(bexee.core.ProcessControllerImpl,
72: * bexee.core.ProcessInstance)
73: */
74: public void accept(ProcessController controller,
75: ProcessInstance instance) throws Exception {
76: controller.process(this , instance);
77: }
78:
79: /*
80: * (non-Javadoc)
81: *
82: * @see bexee.model.BPELElement#accept(bexee.model.BPELElementVisitor)
83: */
84: public void accept(BPELElementVisitor elementVisitor) {
85: elementVisitor.visit(this);
86: }
87:
88: }
|