Package org.apache.ode.bpel.iapi

Examples of org.apache.ode.bpel.iapi.ProcessConf


      return new WSDLReference(wsdlDefinition, targetWSDLFile.toURI());
    }

    private File findWSDLFile(BPELEngineImpl engine, QName processId, QName serviceName, String portName)
    {
      ProcessConf pconf = engine._store.getProcessConfiguration(processId);
      List<File> files = pconf.getFiles();
      File targetWsdlFile = null;
      for(File f : files)
      {
        if(f.getName().endsWith(".wsdl"))
        {
View Full Code Here


      return targetWsdlFile;
    }
   
    private Definition getWSDLDefinition(BPELEngineImpl engine, QName processId, QName serviceName)
    {
      ProcessConf pconf = engine._store.getProcessConfiguration(processId);
      Definition wsdl = pconf.getDefinitionForService(serviceName);
      if (wsdl == null)
        throw new ContextException("Unable to access WSDL definition to activate MyRole endpoint for service " + serviceName
            + " on process "+ processId);

      return wsdl;
View Full Code Here

        return qName;
    }

    private InputStream getBpelDescriptor(QName qName)
    {
        ProcessConf pconf = ((BPELEngineImpl)engine)._store.getProcessConfiguration(qName);

        try {
            File deployDir = new File(pconf.getBaseURI());
            File bpelDoc = new File(deployDir, pconf.getBpelDocument());
            return new FileInputStream(bpelDoc);
        } catch (FileNotFoundException e) {
            throw new RuntimeException("Faile to load bpel file", e);
        }
    }
View Full Code Here

        store.registerListener(new ProcessStoreListener() {
            public void onProcessStoreEvent(ProcessStoreEvent event) {
                // bounce the process
                _bpelServer.unregister(event.pid);
                if (event.type != ProcessStoreEvent.Type.UNDEPLOYED) {
                    ProcessConf conf = (ProcessConf) store.getProcessConfiguration(event.pid);
                    // Test processes always run with in-mem DAOs
                    // conf.setTransient(true);  //FIXME: what should we use for ProcessConfImpl
                    _bpelServer.register(conf);
                }
            }
View Full Code Here

            throw new ODEDeploymentException(errMsg,ex);
        }
       
        try {
            for (QName procName : procs) {
                ProcessConf conf = (ProcessConf) store.getProcessConfiguration(procName);
                // Test processes always run with in-mem DAOs
                //conf.setTransient(true); //FIXME: what should we use for ProcessConfImpl
                _bpelServer.register(conf);
            }
        } catch (Exception ex) {
View Full Code Here

        store.registerListener(new ProcessStoreListener() {
            public void onProcessStoreEvent(ProcessStoreEvent event) {
                // bounce the process
                _bpelServer.unregister(event.pid);
                if (event.type != ProcessStoreEvent.Type.UNDEPLOYED) {
                    ProcessConf conf = (ProcessConf) store.getProcessConfiguration(event.pid);
                    // Test processes always run with in-mem DAOs
                    // conf.setTransient(true);  //FIXME: what should we use for ProcessConfImpl
                    _bpelServer.register(conf);
                }
            }
View Full Code Here

        switch (pse.type) {
        case ACTVIATED:
        case RETIRED:
            // bounce the process
            _server.unregister(pse.pid);
            ProcessConf pconf = _store.getProcessConfiguration(pse.pid);
            if (pconf != null)
                _server.register(pconf);
            else {
                __log.debug("slighly odd: recevied event " + pse + " for process not in store!");
            }
View Full Code Here

                        response.addChild(nameElmt);
                    }
                    sendResponse(factory, messageContext, "listProcessResponse", response);
                } else if (operation.equals("getProcessPackage")) {
                    OMElement qnamePart = messageContext.getEnvelope().getBody().getFirstElement().getFirstElement();
                    ProcessConf process = _store.getProcessConfiguration(OMUtils.getTextAsQName(qnamePart));
                    if (process == null) {
                      throw new OdeFault("Could not find process: " + qnamePart.getTextAsQName());
                    }
                    String packageName = _store.getProcessConfiguration(OMUtils.getTextAsQName(qnamePart)).getPackage();
                    OMElement response = factory.createOMElement("packageName", null);
View Full Code Here

            __log.debug("Activate endpoint: " + endpoint);
        }

        OdeService service = new OdeService(this, endpoint);
        try {
            ProcessConf pc = _store.getProcessConfiguration(pid);
            Serializer ofh = new Serializer(pc.getCBPInputStream());
            OProcess compiledProcess = ofh.readOProcess();
            QName portType = null;
            for (Map.Entry<String, Endpoint> provide : pc.getProvideEndpoints().entrySet()) {
                if (provide.getValue().equals(endpoint)) {
                    OPartnerLink plink = compiledProcess.getPartnerLink(provide.getKey());
                    portType = plink.myRolePortType.getQName();
                    break;
                }
            }
            if (portType == null) {
                if (__log.isDebugEnabled()) {
                    __log.debug("Could not find PortType for endpoint");
                }
            } else {
                Definition def = pc.getDefinitionForService(endpoint.serviceName);
                if (def == null) {
                    __log.debug("Could not find definition for service: " + endpoint.serviceName);
                } else {
                    def = new WSDLFlattener(def).getDefinition(portType);
                    Document doc = WSDLFactory.newInstance().newWSDLWriter().getDocument(def);
View Full Code Here

            }

            // We have to do this after we set the property, since the
            // ProcessConf object
            // is immutable.
            ProcessConf proc = _store.getProcessConfiguration(pid);
            if (proc == null)
                throw new ProcessNotFoundException("ProcessNotFound:" + pid);

            fillProcessInfo(pi, proc, new ProcessInfoCustomizer(ProcessInfoCustomizer.Item.PROPERTIES));
View Full Code Here

TOP

Related Classes of org.apache.ode.bpel.iapi.ProcessConf

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.