Package org.apache.ode.bpel.rapi

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


    }

    public ActivityExtInfoListDocument getExtensibilityElements(QName pid, Integer[] aids) {
        ActivityExtInfoListDocument aeild = ActivityExtInfoListDocument.Factory.newInstance();
        TActivitytExtInfoList taeil = aeild.addNewActivityExtInfoList();
        ProcessModel pmodel = _server.getProcessModel(pid);
        if (pmodel == null)
            throw new ProcessNotFoundException("The process \"" + pid + "\" does not exist.");

        for (int aid : aids) {
            ActivityModel amodel = pmodel.getChild(aid);
            if (amodel != null && amodel.getExtensibilityElements() != null) {
                for (Map.Entry<QName, Object> entry : amodel.getExtensibilityElements().entrySet()) {
                    TActivityExtInfo taei = taeil.addNewActivityExtInfo();
                    taei.setAiid("" + aid);
                    Object extValue = entry.getValue();
View Full Code Here


                propNode.appendChild(node2append);
            }
        }

        TEndpointReferences eprs = info.addNewEndpoints();
        ProcessModel pmodel = _server.getProcessModel(pconf.getProcessId());
        if (custom.includeEndpoints() && pmodel != null) {
            for (PartnerLinkModel oplink : pmodel.getAllPartnerLinks()) {
                if (oplink.hasPartnerRole() && oplink.isInitializePartnerRoleSet()) {
                    // TODO: this is very uncool.
                    EndpointReference pepr = _server.getBpelProcess(pconf.getProcessId()).getInitialPartnerRoleEPR(oplink);
                    if (pepr != null) {
                        TEndpointReferences.EndpointRef epr = eprs.addNewEndpointRef();
View Full Code Here

     * @return deserialized process representation
     * @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

            logCompilationMessage(cmsg);
            this.invalidate();
            throw new CompilationException(cmsg,ex);
        }

        ProcessModel pmodel;
        try {
            pmodel = compiler.compile(process, wf);
        }
        catch (CompilationException cex) {
            this.invalidate();
View Full Code Here

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

        }

        OdeService service = new OdeService(this, endpoint);
        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()) {
                if (provide.getValue().equals(endpoint)) {
                    PartnerLinkModel plink = compiledProcess.getPartnerLink(provide.getKey());
                    portType = plink.getMyRolePortType().getQName();
                    break;
                }
            }
            if (portType == null) {
View Full Code Here

TOP

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

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.