Package org.uengine.smcp.twister.engine.priv.core.definition

Examples of org.uengine.smcp.twister.engine.priv.core.definition.TwisterProcess


    GlobalElement doc = un.unmarshal(is, "file:///C:/Java/xml/xgen/docsoapxdk/BPELv1_1.xsd");
*/

    InputStream defIS = (InputStream)extendedContext.get("wsdl");
   
    TwisterProcess tp = (new TwisterBPELToolkit()).read(is, defIS);
    Adapter apt = new TwisterProcessAdapter();
    ProcessDefinition pd = (ProcessDefinition)apt.convert(tp, null);
       
    return pd;
  }
View Full Code Here


            log.debug("begin transaction");
            TransactionManager.beginTransaction();

            Element processElement = processDoc.getRootElement();
            log.debug("<process>");
            TwisterProcess tp = deployProcessElement(processElement);
            Document defDoc = definitionDoc;
            if (definitionDoc == null) {
                defDoc = getProcessDefDoc(processElement);
            }
            deployDefinitions(defDoc, tp);
            deployVariables(processElement.element("variables"), tp);
            deployCorrelationSets(processElement.element("correlationSets"), tp);

            // todo implements 'partnerLinks' elements
            // todo implements 'partners' elements
            // todo implements 'faultHandlers' elements
            // todo implements 'compensationHandlers' elements
            // todo implements 'eventHandlers' elements

            deployActivity(processElement, tp);
            log.debug("</process> ");

            saveProcess(processDoc, defDoc, tp.getNamespace()+tp.getName());

            log.debug("commit transaction");
            TransactionManager.commitTransaction();
        } catch (TransactionException e) {
            try {
View Full Code Here

//        String expressionLanguage = processElement.valueOf("@expressionLanguage");
//        String suppressJoinFailure = processElement.valueOf("@suppressJoinFailure");
//        String enableInstanceCompensation = processElement.valueOf("@enableInstanceCompensation");
//        String abstractProcess = processElement.valueOf("@abstractProcess");
//        String xmlns = processElement.valueOf("@xmlns");
        TwisterProcess tp = null;
        try {
            tp = ProcessFactory.createProcess(name, targetNamespace);
        } catch (DBSessionException e) {
            TransactionManager.rollbackTransaction();
            throw new DeploymentException(e);
View Full Code Here

TOP

Related Classes of org.uengine.smcp.twister.engine.priv.core.definition.TwisterProcess

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.