Package de.danet.an.workflow.api

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


        ("Bearbeitung einer Aktivit�t �ber ein Web-Formular      "));
  appl = (ApplicationDefinition)pd.applicationById("WebFormPlus");
  assertTrue (appl != null);
  FormalParameter[] fps = appl.formalParameters();
  assertTrue (fps.length == 2);
  Participant p = pd.participantById("currentUser");
  assertTrue (p != null);
  assertTrue (p.getName().equals("Current User"));
  assertTrue (p.getParticipantType() == ParticipantType.HUMAN);
    }
View Full Code Here


  try {
      RASInvocationHandler ras = rasInvocationHandler();
      if (ras == null) {
    return;
      }
      Participant participant = null;
      if (performer() != null) {
    try {
        participant = ((ProcessLocal)containerLocal())
                        .processDefinition().participantById(performer());
    } catch (InvalidIdException e) {
View Full Code Here

     * @param id identity of the participant in string
     * @return a Participant object
     * @throws InvalidIdException if no participant with the given id exists.
     */   
    public Participant participantById(String id) throws InvalidIdException {
  Participant p = (Participant)participants.get (id);
  if (p == null) {
      throw new InvalidIdException ("No participant with Id = " + id);
  }
  return p;
    }
View Full Code Here

      if (applDef != null) {
    applications.put (applDef.id(), applDef);
    applDef = null;
      } else if (uri.equals (XPDLUtil.XPDL_NS)
           && loc.equals ("Participant")) {
    Participant p = (Participant)
        getStack().removeContextData ("Participant");
    participants.put (p.getId(), p);
      }
  }
View Full Code Here

      procdef.participantById("CurrentUser");
  } catch (InvalidIdException exc) {
      gotException = true;
  }
  assertTrue(gotException)
  Participant part = procdef.participantById("currentUser");
  assertTrue(part.getId().equals("currentUser"));
  assertTrue(part.getName().equals("Aktueller Benutzer"));
  assertTrue(part.getParticipantType()
       .equals(Participant.ParticipantType.HUMAN));
  assertTrue(procdef.participants().size() == 1);
  assertTrue(((Participant)procdef.participants().iterator().next())
       .getId().equals("currentUser"));
  assertTrue(procdef.removeClosedProcess());
View Full Code Here

TOP

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

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.