View Javadoc

1   /*
2    * $Id: CompensateImpl.java,v 1.1 2004/12/15 14:18:13 patforna Exp $
3    *
4    * Copyright (c) 2004 Patric Fornasier, Pawel Kowalski
5    * Berne University of Applied Sciences
6    * School of Engineering and Information Technology
7    * All rights reserved.
8    */
9   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.1 $, $Date: 2004/12/15 14:18:13 $
22   * @author Patric Fornasier
23   * @author Pawel Kowalski
24   */
25  public class CompensateImpl extends AbstractActivity implements Compensate {
26  
27      private Scope scope = null;
28  
29      //***************************************************/
30      // c'tors
31      //***************************************************/
32  
33      public CompensateImpl() {
34          this(null);
35      }
36  
37      public CompensateImpl(StandardAttributes standardAttributes) {
38          super(standardAttributes);
39      }
40  
41      //***************************************************/
42      // bexee.model.activity.Compensate
43      //***************************************************/
44  
45      /*
46       * (non-Javadoc)
47       * 
48       * @see bexee.model.activity.Compensate#setScope(bexee.model.activity.Scope)
49       */
50      public void setScope(Scope scope) {
51          this.scope = scope;
52      }
53  
54      /*
55       * (non-Javadoc)
56       * 
57       * @see bexee.model.activity.Compensate#getScope()
58       */
59      public Scope getScope() {
60          return scope;
61      }
62  
63      //***************************************************/
64      // bexee.core.BPELElement
65      //***************************************************/
66  
67      /*
68       * (non-Javadoc)
69       * 
70       * @see bexee.core.BPELElement#accept(bexee.core.ProcessControllerImpl,
71       *      bexee.core.ProcessInstance)
72       */
73      public void accept(ProcessController controller, ProcessInstance instance)
74              throws Exception {
75          controller.process(this, instance);
76      }
77  
78      /*
79       * (non-Javadoc)
80       * 
81       * @see bexee.model.BPELElement#accept(bexee.model.BPELElementVisitor)
82       */
83      public void accept(BPELElementVisitor elementVisitor) {
84          elementVisitor.visit(this);
85      }
86  
87  }