View Javadoc

1   /*
2    * $Id: TerminateImpl.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.Terminate;
16  
17  /***
18   * Default implementation of the <code>Terminate</code> activity.
19   * 
20   * @version $Revision: 1.1 $, $Date: 2004/12/15 14:18:13 $
21   * @author Patric Fornasier
22   * @author Pawel Kowalski
23   */
24  public class TerminateImpl extends AbstractActivity implements Terminate {
25  
26      //***************************************************/
27      // c'tors
28      //***************************************************/
29  
30      public TerminateImpl() {
31          this(null);
32      }
33  
34      public TerminateImpl(StandardAttributes standardAttributes) {
35          super(standardAttributes);
36      }
37  
38      //***************************************************/
39      // bexee.core.BPELElement
40      //***************************************************/
41  
42      public void accept(ProcessController controller, ProcessInstance instance)
43              throws Exception {
44          controller.process(this, instance);
45      }
46  
47      public void accept(BPELElementVisitor elementVisitor) {
48          elementVisitor.visit(this);
49      }
50  
51  }