001: /*
002: * $Id: ScopeImpl.java,v 1.12 2004/12/09 12:34:22 kowap Exp $
003: *
004: * Copyright (c) 2004 Patric Fornasier, Pawel Kowalski
005: * Berne University of Applied Sciences
006: * School of Engineering and Information Technology
007: * All rights reserved.
008: */
009: package bexee.model.activity.impl;
010:
011: import bexee.core.ProcessController;
012: import bexee.core.ProcessInstance;
013: import bexee.model.BPELElementVisitor;
014: import bexee.model.StandardAttributes;
015: import bexee.model.activity.Activity;
016: import bexee.model.activity.CompensationHandler;
017: import bexee.model.activity.Scope;
018: import bexee.model.elements.CorrelationSets;
019: import bexee.model.elements.EventHandlers;
020: import bexee.model.elements.FaultHandlers;
021: import bexee.model.elements.Variables;
022:
023: /**
024: * Default implementation of the <code>Scope</code> activity.
025: *
026: * @version $Revision: 1.12 $, $Date: 2004/12/09 12:34:22 $
027: * @author Patric Fornasier
028: * @author Pawel Kowalski
029: */
030: public class ScopeImpl extends AbstractActivity implements Scope {
031:
032: private boolean varAccessSerializable = false;
033:
034: private Variables variables = null;
035:
036: private CorrelationSets correlationSets = null;
037:
038: private FaultHandlers faultHandlers = null;
039:
040: private CompensationHandler compensationHandler = null;
041:
042: private EventHandlers eventHandlers = null;
043:
044: private Activity activity = null;
045:
046: //**************************************************/
047: // c'tors
048: //**************************************************/
049:
050: public ScopeImpl() {
051: this (null);
052: }
053:
054: public ScopeImpl(StandardAttributes standardAttributes) {
055: super (standardAttributes);
056: }
057:
058: //**************************************************/
059: // bexee.model.activity.Scope
060: //**************************************************/
061:
062: public void setVariableAccessSerializable(
063: boolean varAccessSerializable) {
064: this .varAccessSerializable = varAccessSerializable;
065: }
066:
067: public boolean isVariableAccessSerializable() {
068: return varAccessSerializable;
069: }
070:
071: public void setVariables(Variables variables) {
072: this .variables = variables;
073: }
074:
075: public Variables getVariables() {
076: return variables;
077: }
078:
079: public void setCorrelationSets(CorrelationSets correlationSets) {
080: this .correlationSets = correlationSets;
081: }
082:
083: public CorrelationSets getCorrelationSets() {
084: return correlationSets;
085: }
086:
087: public void setFaultHandlers(FaultHandlers faultHandlers) {
088: this .faultHandlers = faultHandlers;
089: }
090:
091: public FaultHandlers getFaultHandlers() {
092: return faultHandlers;
093: }
094:
095: public void setCompensationHanlder(
096: CompensationHandler compensationHandler) {
097: this .compensationHandler = compensationHandler;
098: }
099:
100: public CompensationHandler getCompensationHandler() {
101: return compensationHandler;
102: }
103:
104: public void setEventHandlers(EventHandlers eventHandlers) {
105: this .eventHandlers = eventHandlers;
106: }
107:
108: public EventHandlers getEventHandlers() {
109: return eventHandlers;
110: }
111:
112: public void setActivity(Activity activity) {
113: this .activity = activity;
114: }
115:
116: public Activity getActivity() {
117: return activity;
118: }
119:
120: //**************************************************/
121: // bexee.core.BPELElement
122: //**************************************************/
123:
124: public void accept(ProcessController controller,
125: ProcessInstance instance) throws Exception {
126: controller.process(this , instance);
127: }
128:
129: public void accept(BPELElementVisitor elementVisitor) {
130: elementVisitor.visit(this);
131: }
132:
133: }
|