View Javadoc

1   /*
2    * $Id: ProcessInstance.java,v 1.1 2004/12/15 14:18:10 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.core;
10  
11  import bexee.model.process.BPELProcess;
12  
13  /***
14   * The ProcessInstance contains no logic at all but merely serves as a container
15   * for encapsulating a ProcessContext instance and its corresponding BPELProcess
16   * reference.
17   * <p>
18   * Thus the fusion of the ProcessContext and the BPELProcess together form a
19   * ProcessInstance.
20   * 
21   * @version $Revision: 1.1 $, $Date: 2004/12/15 14:18:10 $
22   * @author Patric Fornasier
23   * @author Pawel Kowalski
24   */
25  public class ProcessInstance {
26  
27      private ProcessContext context;
28  
29      private BPELProcess process;
30  
31      /***
32       * Create a new ProcessInstance instance with a BPELProcess and a
33       * ProcessContext.
34       * 
35       * @param process
36       * @param context
37       */
38      public ProcessInstance(BPELProcess process, ProcessContext context) {
39          this.process = process;
40          this.context = context;
41      }
42  
43      /***
44       * Get the ProcessContext associated with this ProcessInstance.
45       * 
46       * @return a ProcessContext
47       */
48      public ProcessContext getContext() {
49          return context;
50      }
51  
52      /***
53       * Get the BPELProcess associated with this ProcessInstance.
54       * 
55       * @return a BPELProcess
56       */
57      public BPELProcess getProcess() {
58          return process;
59      }
60  
61  }