Package org.jbpm.jpdl.par

Examples of org.jbpm.jpdl.par.ProcessArchive


  /**
   * parse a process definition from a process archive zip-stream.
   * @throws org.jbpm.jpdl.JpdlException if parsing reported an error.
   */
  public static ProcessDefinition parseParZipInputStream(ZipInputStream zipInputStream) throws IOException {
    return new ProcessArchive(zipInputStream).parseProcessDefinition();
  }
View Full Code Here


    Converter converter = new Converter();
   
    try
    {
          // Create memory version of the process archive
        ProcessArchive pa = new ProcessArchive(
        new ZipInputStream(
          this.getClass().getResourceAsStream( TESTPAR_1 ) ) );
      String result = converter.convertPar( pa );
   
      if (result == null)
View Full Code Here

    Converter converter = new Converter();
   
    try
    {
          // Create memory version of the process archive
        ProcessArchive pa = new ProcessArchive(
        new ZipInputStream(
        this.getClass().getResourceAsStream( TESTPAR_2 ) ) );
      String result = converter.convertPar( pa );
   
      if (result == null)
View Full Code Here

  {
    ZipInputStream zip = new ZipInputStream(
                new FileInputStream(
                    indir.getPath() + "/" + files[i]));
                 
    ProcessArchive pa = new ProcessArchive(zip);
   
    String xml = convertPar( pa );
   
    // Create new process archive in designated output directory
    ZipOutputStream zippo = new ZipOutputStream(
                  new FileOutputStream(
                        outdir.getPath() + "/" + files[i] ));
   
    // Copy all non-pdl entries and insert new pdl
   
    for (Iterator iter = pa.getEntries().keySet().iterator(); iter.hasNext(); )
    {
      String name = (String) iter.next();
     
      zippo.putNextEntry( new ZipEntry( name ) );
      if ("processdefinition.xml".equalsIgnoreCase(name))
      {
        zippo.write( xml.getBytes( ) );
      }
      else
      {
        zippo.write( pa.getEntry(name) );
      }
     
      zippo.closeEntry();
    }
   
View Full Code Here

   * parse a process definition from a process archive zip-stream.
   * @throws org.jbpm.jpdl.JpdlException if parsing reported an error.
   */
  public static ProcessDefinition parseParZipInputStream(ZipInputStream zipInputStream) {
    try {
      return new ProcessArchive(zipInputStream).parseProcessDefinition();
    } catch (IOException e) {
      throw new JbpmException("couldn't parse process zip file zipInputStream", e);
    }
  }
View Full Code Here

   * parse a process definition from a process archive zip-stream.
   * @throws org.jbpm.jpdl.JpdlException if parsing reported an error.
   */
  public static ProcessDefinition parseParZipInputStream(ZipInputStream zipInputStream) {
    try {
      return new ProcessArchive(zipInputStream).parseProcessDefinition();
    } catch (IOException e) {
      throw new JbpmException("couldn't parse process zip file zipInputStream", e);
    }
  }
View Full Code Here

   * parse a process definition from a process archive zip-stream.
   * @throws org.jbpm.jpdl.JpdlException if parsing reported an error.
   */
  public static ProcessDefinition parseParZipInputStream(ZipInputStream zipInputStream) {
    try {
      return new ProcessArchive(zipInputStream).parseProcessDefinition();
    } catch (IOException e) {
      throw new JbpmException("couldn't parse process zip file zipInputStream", e);
    }
  }
View Full Code Here

TOP

Related Classes of org.jbpm.jpdl.par.ProcessArchive

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.