1
2
3
4
5
6
7
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 }