InvokeImplFactory.java :  » Workflow-Engines » bexee » bexee » model » xmltobpel » Java Open Source

Java Open Source » Workflow Engines » bexee 
bexee » bexee » model » xmltobpel » InvokeImplFactory.java
/*
 * $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);
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.