/*
* $Id: InvokeImplFactory.java,v 1.6 2004/11/22 08:46:46 kowap Exp $
*
* Copyright (c) 2004 Patric Fornasier, Pawel Kowalski
* Berne University of Applied Sciences
* School of Engineering and Information Technology
* All rights reserved.
*/
package bexee.model.xmltobpel;
import org.xml.sax.Attributes;
/**
* This class is used by the <a
* href="http://jakarta.apache.org/commons/digester/">Digester </a> for the
* transformation of Invoke activities from a BPEL document into
* <code>InvokeImpl</code> objects. The creation of those objects is delegated
* to the <code>BPELElementFactory</code>.
*
* @author Pawel Kowalski
* @version $Revision: 1.6 $, $Date: 2004/11/22 08:46:46 $
*/
public class InvokeImplFactory extends AbstractObjectCreationFactory {
//**************************************************/
// create object
//**************************************************/
/**
* Create a <code>InvokeImpl</code> activity instance using delegation to
* a <code>BPELElementFactory</code>.
*
* @param attributes
* an <code>Attributes</code> value
* @return an <code>InvokeImpl</code> value
* @exception Exception
* if an error occurs
*/
public Object createObject(Attributes attributes) throws Exception {
String partnerLink = attributes.getValue(PARTNER_LINK);
String portType = attributes.getValue(PORT_TYPE);
String operation = attributes.getValue(OPERATION);
String inVariable = attributes.getValue(INPUT_VARIABLE);
String outVariable = attributes.getValue(OUTPUT_VARIABLE);
return getElementFactory().createInvoke(
getStandardAttributes(attributes), partnerLink, portType,
operation, inVariable, outVariable);
}
}
|