001: /*
002: * $Id: Activity.java,v 1.14 2004/12/09 12:34:40 kowap Exp $
003: *
004: * Copyright (c) 2004 Patric Fornasier, Pawel Kowalski
005: * Berne University of Applied Sciences
006: * School of Engineering and Information Technology
007: * All rights reserved.
008: */
009:
010: package bexee.model.activity;
011:
012: import java.util.List;
013:
014: import bexee.model.BPELElement;
015: import bexee.model.elements.Source;
016: import bexee.model.elements.Target;
017: import bexee.model.expression.BooleanExpression;
018:
019: /**
020: * This interface represents a BPEL activity. To be extended by interfaces of
021: * concrete BPEL activities.
022: *
023: * @author Patric Fornasier
024: * @author Pawel Kowalski
025: * @version $Revision: 1.14 $, $Date: 2004/12/09 12:34:40 $
026: */
027: public interface Activity extends BPELElement {
028:
029: /**
030: * The default value for the suppressJoinFailure property.
031: */
032: public static final boolean DEFAULT_SUPPRESS_JOIN_FAILURE = false;
033:
034: //**************************************************/
035: // xml attributes
036: //**************************************************/
037:
038: // name
039:
040: /**
041: * Set the name of this activity.
042: *
043: * @param name
044: * a <code>String</code> value
045: */
046: public void setName(String name);
047:
048: /**
049: * Get the name of this activity.
050: *
051: * @return a <code>String</code> value
052: */
053: public String getName();
054:
055: // JoinExpression
056:
057: /**
058: * Set the joinExpression of this activity.
059: *
060: * @param joinExpression
061: * a <code>BooleanExpression</code> value
062: */
063: public void setJoinExpression(BooleanExpression joinExpression);
064:
065: /**
066: * Get the joinExpression of this activity.
067: *
068: * @return a <code>BooleanExpression</code> value
069: */
070: public BooleanExpression getJoinExpression();
071:
072: // SuppressJoinFailure
073:
074: /**
075: * Set whether to suppress a join failure on this activity.
076: *
077: * @param suppressJoinFailure
078: * a <code>boolean</code> value
079: */
080: public void setSuppressJoinFailure(boolean suppressJoinFailure);
081:
082: /**
083: * Get whether the join failure is suppressed on this activity.
084: *
085: * @return a <code>boolean</code> value
086: */
087: public boolean isSuppressJoinFailure();
088:
089: //**************************************************/
090: // xml elements
091: //**************************************************/
092:
093: // Targets
094:
095: /**
096: * Declare this activity as a named link target.
097: *
098: * @param target
099: * 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: }
|