1   
2   
3   
4   
5   
6   
7   
8   
9   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.1 $, $Date: 2004/12/15 14:18:10 $
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  }