1   
2   
3   
4   
5   
6   
7   
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      
31      //***************************************************/
32  
33      public CompensateImpl() {
34          this(null);
35      }
36  
37      public CompensateImpl(StandardAttributes standardAttributes) {
38          super(standardAttributes);
39      }
40  
41      //***************************************************/
42      
43      //***************************************************/
44  
45      
46  
47  
48  
49  
50      public void setScope(Scope scope) {
51          this.scope = scope;
52      }
53  
54      
55  
56  
57  
58  
59      public Scope getScope() {
60          return scope;
61      }
62  
63      //***************************************************/
64      
65      //***************************************************/
66  
67      
68  
69  
70  
71  
72  
73      public void accept(ProcessController controller, ProcessInstance instance)
74              throws Exception {
75          controller.process(this, instance);
76      }
77  
78      
79  
80  
81  
82  
83      public void accept(BPELElementVisitor elementVisitor) {
84          elementVisitor.visit(this);
85      }
86  
87  }