View Javadoc

1   /*
2    * $Id: Activity.java,v 1.1 2004/12/15 14:18:11 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   
10  package bexee.model.activity;
11  
12  import java.util.List;
13  
14  import bexee.model.BPELElement;
15  import bexee.model.elements.Source;
16  import bexee.model.elements.Target;
17  import bexee.model.expression.BooleanExpression;
18  
19  /***
20   * This interface represents a BPEL activity. To be extended by interfaces of
21   * concrete BPEL activities.
22   * 
23   * @author Patric Fornasier
24   * @author Pawel Kowalski
25   * @version $Revision: 1.1 $, $Date: 2004/12/15 14:18:11 $
26   */
27  public interface Activity extends BPELElement {
28  
29      /***
30       * The default value for the suppressJoinFailure property.
31       */
32      public static final boolean DEFAULT_SUPPRESS_JOIN_FAILURE = false;
33  
34      //***************************************************/
35      // xml attributes
36      //***************************************************/
37  
38      // name
39  
40      /***
41       * Set the name of this activity.
42       * 
43       * @param name
44       *            a <code>String</code> value
45       */
46      public void setName(String name);
47  
48      /***
49       * Get the name of this activity.
50       * 
51       * @return a <code>String</code> value
52       */
53      public String getName();
54  
55      // JoinExpression
56  
57      /***
58       * Set the joinExpression of this activity.
59       * 
60       * @param joinExpression
61       *            a <code>BooleanExpression</code> value
62       */
63      public void setJoinExpression(BooleanExpression joinExpression);
64  
65      /***
66       * Get the joinExpression of this activity.
67       * 
68       * @return a <code>BooleanExpression</code> value
69       */
70      public BooleanExpression getJoinExpression();
71  
72      // SuppressJoinFailure
73  
74      /***
75       * Set whether to suppress a join failure on this activity.
76       * 
77       * @param suppressJoinFailure
78       *            a <code>boolean</code> value
79       */
80      public void setSuppressJoinFailure(boolean suppressJoinFailure);
81  
82      /***
83       * Get whether the join failure is suppressed on this activity.
84       * 
85       * @return a <code>boolean</code> value
86       */
87      public boolean isSuppressJoinFailure();
88  
89      //***************************************************/
90      // xml elements
91      //***************************************************/
92  
93      // Targets
94  
95      /***
96       * Declare this activity as a named link target.
97       * 
98       * @param target
99       *            a <code>Target</code> value
100      */
101     public void addTarget(Target target);
102 
103     /***
104      * Declare this activity as named link targets.
105      * 
106      * @param targets
107      *            a <code>List</code> value
108      */
109     public void setTargets(List targets);
110 
111     /***
112      * Get all target declarations of this activity.
113      * 
114      * @return a <code>List</code> value
115      */
116     public List getTargets();
117 
118     // Sources
119 
120     /***
121      * Declare this activity as a named link source.
122      * 
123      * @param source
124      *            a <code>Source</code> value
125      */
126     public void addSource(Source source);
127 
128     /***
129      * Declare this activity as named link sources.
130      * 
131      * @param sources
132      *            a <code>List</code> value
133      */
134     public void setSources(List sources);
135 
136     /***
137      * Get all source declarations of this activity.
138      * 
139      * @return a <code>List</code> value
140      */
141     public List getSources();
142 
143 }