Package de.danet.an.workflow.api

Examples of de.danet.an.workflow.api.Application


     * @param id the given id of the application to be found.
     * @throws InvalidIdException If no such application be found
     * @return the dedicated application.
     */
    public Application applicationById (String id) throws InvalidIdException {
  Application a = (Application)applications.get (id);
  if (a == null) {
      throw new InvalidIdException ("No application with Id = " + id);
  }
  return a;
    }
View Full Code Here


      procdef.applicationById("Dummy");
  } catch (InvalidIdException exc) {
      gotException = true;
  }
  assertTrue(gotException);
  Application appl = procdef.applicationById("dummy");
  assertTrue(appl.description().equals("Dummy application for testing"
               + " purposes only."));
  assertTrue(appl.id().equals("dummy"));
  assertTrue(procdef.applications().size() == 1);
  assertTrue(((Application)procdef.applications().iterator().next())
       .id().equals("dummy"));
  gotException = false;
  try {
View Full Code Here

TOP

Related Classes of de.danet.an.workflow.api.Application

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.