Package org.apache.ode.bpel.rapi

Examples of org.apache.ode.bpel.rapi.Serializer


     * @throws java.io.IOException
     * @throws ClassNotFoundException
     */
    private ProcessModel deserializeCompiledProcess(InputStream is) throws IOException, ClassNotFoundException {
        ProcessModel compiledProcess;
        Serializer ofh = new Serializer(is);
        compiledProcess = (ProcessModel) ofh.readPModel();
        return compiledProcess;
    }
View Full Code Here


            } else {
                throw new IllegalStateException("must setOutputStream() or setOutputDirectory()!");
            }

            try {
                Serializer fileHeader = new Serializer(System.currentTimeMillis());
                fileHeader.writePModel(pmodel, _outputStream);
            } finally {
                // close & mark myself invalid
                this.invalidate();
            }
        }
View Full Code Here

     */
    private CBPInfo loadCBPInfo(File f) {
        InputStream is = null;
        try {
            is = new FileInputStream(f);
            Serializer ofh = new Serializer(is);
            return new CBPInfo(ofh.getType(), ofh.getGuid(), f);
        } catch (Exception e) {
            throw new ContextException("Couldn't read compiled BPEL process " + f.getAbsolutePath(), e);
        } finally {
            try {
                if (is != null)
View Full Code Here

            public boolean accept(File dir, String name) {
                return name.startsWith("sa");
            }
        })) {
            ExecutionQueueImpl soup = new ExecutionQueueImpl(CoreBpelTest.class.getClassLoader());
            Serializer ser = new Serializer(CompatibilityTest.class.getClassLoader().getResourceAsStream("TestActivityFlow.cbp"));
            soup.setReplacementMap(new ReplacementMapImpl((OProcess) ser.readPModel()));

            soup.read(new FileInputStream(soupState));

//            JacobVPU vpu = new JacobVPU(soup);
//            CoreBpelTest instance = new CoreBpelTest();
View Full Code Here

import org.apache.ode.bpel.rapi.ProcessModel;

public class TestOModelVersions extends TestCase {

    public void testVersionReload() throws Exception {
        Serializer ser = new Serializer(getClass().getClassLoader().getResourceAsStream("TestActivityFlow-v1.cbp"));
        ProcessModel op = ser.readPModel();
        assertEquals("org.apache.ode.bpel.rtrep.v1.OProcess", op.getClass().getName());

        ser = new Serializer(getClass().getClassLoader().getResourceAsStream("TestActivityFlow-v2.cbp"));
        op = ser.readPModel();
        assertEquals("org.apache.ode.bpel.rtrep.v2.OProcess", op.getClass().getName());
    }
View Full Code Here

        try {
            ProcessConf pc = _store.getProcessConfiguration(pid);
            ProcessModel compiledProcess = null;
            InputStream is = pc.getCBPInputStream();
            try {
                Serializer ofh = new Serializer(is);
                compiledProcess = ofh.readPModel();
            } finally {
                is.close();             
            }
            QName portType = null;
            for (Map.Entry<String, Endpoint> provide : pc.getProvideEndpoints().entrySet()) {
View Full Code Here

TOP

Related Classes of org.apache.ode.bpel.rapi.Serializer

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.