1
2
3
4
5
6
7
8
9 package bexee.model.xmltobpel;
10
11 import org.xml.sax.Attributes;
12
13 /***
14 * This class is used by the <a
15 * href="http://jakarta.apache.org/commons/digester/">Digester </a> for the
16 * transformation of Invoke activities from a BPEL document into
17 * <code>InvokeImpl</code> objects. The creation of those objects is delegated
18 * to the <code>BPELElementFactory</code>.
19 *
20 * @author Pawel Kowalski
21 * @version $Revision: 1.1 $, $Date: 2004/12/15 14:18:09 $
22 */
23 public class InvokeImplFactory extends AbstractObjectCreationFactory {
24
25 //***************************************************/
26
27 //***************************************************/
28
29 /***
30 * Create a <code>InvokeImpl</code> activity instance using delegation to
31 * a <code>BPELElementFactory</code>.
32 *
33 * @param attributes
34 * an <code>Attributes</code> value
35 * @return an <code>InvokeImpl</code> value
36 * @exception Exception
37 * if an error occurs
38 */
39 public Object createObject(Attributes attributes) throws Exception {
40
41 String partnerLink = attributes.getValue(PARTNER_LINK);
42 String portType = attributes.getValue(PORT_TYPE);
43 String operation = attributes.getValue(OPERATION);
44 String inVariable = attributes.getValue(INPUT_VARIABLE);
45 String outVariable = attributes.getValue(OUTPUT_VARIABLE);
46
47 return getElementFactory().createInvoke(
48 getStandardAttributes(attributes), partnerLink, portType,
49 operation, inVariable, outVariable);
50 }
51 }