View Javadoc

1   /*
2    * $Id: ScopeImpl.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.Activity;
16  import bexee.model.activity.CompensationHandler;
17  import bexee.model.activity.Scope;
18  import bexee.model.elements.CorrelationSets;
19  import bexee.model.elements.EventHandlers;
20  import bexee.model.elements.FaultHandlers;
21  import bexee.model.elements.Variables;
22  
23  /***
24   * Default implementation of the <code>Scope</code> activity.
25   * 
26   * @version $Revision: 1.1 $, $Date: 2004/12/15 14:18:13 $
27   * @author Patric Fornasier
28   * @author Pawel Kowalski
29   */
30  public class ScopeImpl extends AbstractActivity implements Scope {
31  
32      private boolean varAccessSerializable = false;
33  
34      private Variables variables = null;
35  
36      private CorrelationSets correlationSets = null;
37  
38      private FaultHandlers faultHandlers = null;
39  
40      private CompensationHandler compensationHandler = null;
41  
42      private EventHandlers eventHandlers = null;
43  
44      private Activity activity = null;
45  
46      //***************************************************/
47      // c'tors
48      //***************************************************/
49  
50      public ScopeImpl() {
51          this(null);
52      }
53  
54      public ScopeImpl(StandardAttributes standardAttributes) {
55          super(standardAttributes);
56      }
57  
58      //***************************************************/
59      // bexee.model.activity.Scope
60      //***************************************************/
61  
62      public void setVariableAccessSerializable(boolean varAccessSerializable) {
63          this.varAccessSerializable = varAccessSerializable;
64      }
65  
66      public boolean isVariableAccessSerializable() {
67          return varAccessSerializable;
68      }
69  
70      public void setVariables(Variables variables) {
71          this.variables = variables;
72      }
73  
74      public Variables getVariables() {
75          return variables;
76      }
77  
78      public void setCorrelationSets(CorrelationSets correlationSets) {
79          this.correlationSets = correlationSets;
80      }
81  
82      public CorrelationSets getCorrelationSets() {
83          return correlationSets;
84      }
85  
86      public void setFaultHandlers(FaultHandlers faultHandlers) {
87          this.faultHandlers = faultHandlers;
88      }
89  
90      public FaultHandlers getFaultHandlers() {
91          return faultHandlers;
92      }
93  
94      public void setCompensationHanlder(CompensationHandler compensationHandler) {
95          this.compensationHandler = compensationHandler;
96      }
97  
98      public CompensationHandler getCompensationHandler() {
99          return compensationHandler;
100     }
101 
102     public void setEventHandlers(EventHandlers eventHandlers) {
103         this.eventHandlers = eventHandlers;
104     }
105 
106     public EventHandlers getEventHandlers() {
107         return eventHandlers;
108     }
109 
110     public void setActivity(Activity activity) {
111         this.activity = activity;
112     }
113 
114     public Activity getActivity() {
115         return activity;
116     }
117 
118     //***************************************************/
119     // bexee.core.BPELElement
120     //***************************************************/
121 
122     public void accept(ProcessController controller, ProcessInstance instance)
123             throws Exception {
124         controller.process(this, instance);
125     }
126 
127     public void accept(BPELElementVisitor elementVisitor) {
128         elementVisitor.visit(this);
129     }
130 
131 }