Package org.eclipse.bpel.model

Examples of org.eclipse.bpel.model.Process


      bpelPackage = BPELPackage.eINSTANCE;

      this.bpelResource = resource;

      bpelNamespacePrefixManager = new NamespacePrefixManager(resource);
      Process process = resource.getProcess();
      wsdlNamespacePrefixManager = new WsdlImportsManager(process);
     
      walkExternalReferences();
     
      document = resource2XML(resource);     
View Full Code Here


      ex.printStackTrace();
    }
  }

  protected Document resource2XML(BPELResource resource) {
    Process process = resource.getProcess();
    Element procElement = process2XML(process);
    document.appendChild(procElement);   
    bpelNamespacePrefixManager.serializePrefixes(process, procElement);   
    return document;
  }
View Full Code Here

   * @return the looked up object (or null).
   */
 
  static public EObject lookup (EObject ref, QName qname, String name, String refType) {
   
    Process process = getProcess ( ref );
    if (process == null) {
      return null;
    }
   
    Iterator<?> it = process.getImports().iterator();
    EObject result = null;
   
        while ( it.hasNext() ) {
            Import imp = (Import) it.next();           
           
View Full Code Here

   
    public NamespacePrefixManager(BPELResource resource) {
      this.resource = resource;
      myNamespacePrefixMap = new Hashtable();
      // for performance, just register the process namespace map first
      Process process = resource.getProcess();
      BPELResource.NotifierMap nsMap =
        (BPELResource.NotifierMap)resource.getPrefixToNamespaceMap(process);
      myNamespacePrefixMap.put(process, nsMap.reserve());
      // listen to the process namespace map if any extension model modify this map;
      nsMap.addListener(this);
View Full Code Here

   
    /**
     * add prefix to the root of a bpel, i.e. the process level
     */
    public String addNewRootPrefix(String basePrefix, String namespace) {
      Process process = resource.getProcess();
      Map prefixNSMap = (Map)resource.getPrefixToNamespaceMap(process);
      Map nsPrefixMap = (Map)myNamespacePrefixMap.get(process);
     
      if (nsPrefixMap.get(namespace) == null) {
        // Compute unique prefix for the current namespace
View Full Code Here

      }
      return (String)nsPrefixMap.get(namespace);
    }

        public String getRootPrefix(String namespaceURI) {
            Process process = resource.getProcess();
            Map nsPrefixMap = (Map)myNamespacePrefixMap.get(process);
            return (String) nsPrefixMap.get(namespaceURI);
        }
View Full Code Here

    }
   
    public void objectAdded(Object key, Object value) {
      // we only listen the process namespace map
            if (! resource.getContents().isEmpty()) {
          Process process = resource.getProcess();
          ((Map)myNamespacePrefixMap.get(process)).put(value, key);
            }
            // TODO What should happen if the process does not yet exist?
    }
View Full Code Here

   * In pass 1, we parse and create the structural elements and attributes,
   * and add the process to the EMF resource's contents
   * @param document  the DOM document to parse
   */
  protected void pass1(Document document) {
    Process p = xml2Resource(document);
    if (p != null) {
      resource.getContents().add(p);
    }
  }
View Full Code Here

        }
       
        EObject result = null;
       
      // Try the BPEL imports if any exist.
        Process process = getProcess();
        if (process == null) {
          return result;
        }
       
       
        Iterator it = process.getImports().iterator();
        while ( it.hasNext() )
        {
            Import imp = (Import) it.next();           
           
            // The null and "" problem ...
View Full Code Here

    public List getSchemas ( boolean bIncludeXSD )
    {
      ArrayList al = new ArrayList(8);
     
      // Try the BPEL imports if any exist.
        Process process = getProcess();
        if (process == null) {
          return al;
        }
       
        Iterator it = process.getImports().iterator();
        while ( it.hasNext() )
        {
            Import imp = (Import) it.next();                                   
            if (imp.getLocation() == null ) {
              continue;
View Full Code Here

TOP

Related Classes of org.eclipse.bpel.model.Process

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.