View Javadoc

1   /*
2    * $Id: AssignImpl.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.Assign;
16  import bexee.model.elements.Copy;
17  
18  /***
19   * This is a default implementation of the <code>Assign</code> 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 AssignImpl extends AbstractActivity implements Assign {
26  
27      private Copy copy = null;
28  
29      //***************************************************/
30      // c'tors
31      //***************************************************/
32  
33      public AssignImpl() {
34          this(null);
35      }
36  
37      /***
38       * @param standardAttributes
39       */
40      public AssignImpl(StandardAttributes standardAttributes) {
41          super(standardAttributes);
42      }
43  
44      //***************************************************/
45      // bexee.model.activity.Assign
46      //***************************************************/
47  
48      // TODO there may exist multiple copies within one assign copy multiplicity
49      //
50      public void setCopy(Copy copy) {
51          this.copy = copy;
52      }
53  
54      public Copy getCopy() {
55          return copy;
56      }
57  
58      //***************************************************/
59      // bexee.core.BPELElement
60      //***************************************************/
61  
62      public void accept(ProcessController controller, ProcessInstance instance)
63              throws Exception {
64          controller.process(this, instance);
65      }
66  
67      public void accept(BPELElementVisitor elementVisitor) {
68          elementVisitor.visit(this);
69      }
70  
71  }