01: /*
02: * $Id: AwaitMessageException.java,v 1.3 2004/11/22 08:47:26 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.activity.Receive;
12:
13: /**
14: * While the Process Controller is executing a process, it will necessarily
15: * arrive at a Receive activity without the message for the receive, there the
16: * process execution must stop and wait for a right message to resume execution.
17: * In order to suspend process execution and to enter the state of awaiting a
18: * message, this execption will be used.
19: *
20: * @version $Revision: 1.3 $, $Date: 2004/11/22 08:47:26 $
21: * @author Patric Fornasier
22: * @author Pawel Kowalski
23: */
24: public class AwaitMessageException extends Exception {
25:
26: private Receive receive;
27:
28: /**
29: * Create an AwaitMessageException with the correspondent receive, where it
30: * stopped.
31: *
32: * @param receive
33: * The Receive activity where this exception occured
34: */
35: public AwaitMessageException(Receive receive) {
36: this .receive = receive;
37: }
38:
39: /**
40: * Get the Receive activity where this exception occured.
41: *
42: * @return
43: */
44: public Receive getReceive() {
45: return receive;
46: }
47: }
|