View Javadoc

1   /*
2    * $Id: BPELProcess.java,v 1.1 2004/12/15 14:18:09 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.model.process;
10  
11  import java.util.List;
12  
13  import javax.wsdl.Definition;
14  
15  /***
16   * This class represents a BPEL process with all necessary additional
17   * information, e.g. its WSDL description, partner WSDLs etc.
18   * 
19   * @version $Revision: 1.1 $, $Date: 2004/12/15 14:18:09 $
20   * @author Patric Fornasier
21   * @author Pawel Kowalski
22   */
23  public interface BPELProcess {
24  
25      /***
26       * Add a partner's WSDL description.
27       * 
28       * @param wsdl
29       */
30      public void addPartnerWSDL(Definition wsdl);
31  
32      /***
33       * Add partner's WSDL descriptions.
34       * 
35       * @param wsdl
36       */
37      public void addPartnerWSDL(List wsdl);
38  
39      /***
40       * Get a list of all receive activities which might cause a process instance
41       * creation.
42       * 
43       * @return
44       */
45      public List getCreationReceives();
46  
47      /***
48       * Convencience method to get the name of the underlying process. If this
49       * method is called, before a <code>Process</code> is set, it will return
50       * null.
51       * 
52       * @return the name of the underlying <code>Process</code> or null.
53       */
54      public String getName();
55  
56      /***
57       * Get a list of Partner's WSDLs.
58       * 
59       * @return
60       */
61      public List getPartnerWSDL();
62  
63      /***
64       * Get the pure BPEL process.
65       * 
66       * @return
67       */
68      public Process getProcess();
69  
70      /***
71       * Get the pure BPEL prcess' WSDL.
72       * 
73       * @return
74       */
75      public Definition getWSDL();
76  
77      /***
78       * Is this process synchronous. A BPEL process is synchronous iff it has a
79       * Reply activity.
80       * 
81       * @return
82       */
83      public boolean isSynchronous();
84  
85      /***
86       * Set the pure BPEL process.
87       * 
88       * @param process
89       */
90      public void setProcess(Process process);
91  
92      /***
93       * Set this <code>BPELProcess</code>' synchronous property.
94       * 
95       * @param synchronous
96       */
97      public void setSynchronous(boolean synchronous);
98  
99      /***
100      * Set this <code>BPELProcess</code>' own WSDL description.
101      * 
102      * @param wsdl
103      */
104     public void setWSDL(Definition wsdl);
105 }