01: /*
02: * $Id: ProcessInstance.java,v 1.9 2004/11/22 08:47:16 kowap Exp $
03: *
04: * Copyright (c) 2004 Patric Fornasier, Pawel Kowalski
05: * Berne University of Applied Sciences
06: * School of Engineering and Information Technology
07: * All rights reserved.
08: */
09: 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.9 $, $Date: 2004/11/22 08:47:16 $
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: }
|