Examples of activitiesInState()


Examples of de.danet.an.workflow.omgcore.WfProcess.activitiesInState()

      "Do you echo?".equals(pd.get("message")));
      assertTrue (stateReached (process, "closed.completed"));
      pd = process.processContext();
      assertTrue (pd.get("feedback").equals ("Got message"));
      // cleanup
      Iterator acts = process.activitiesInState("closed").iterator();
      assertTrue (acts.hasNext ());
      Activity act = null;
      while (true) {
    act = (Activity)acts.next ();
    if (act.name().equals ("Run subflow")) {
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfProcess.activitiesInState()

      ProcessMgr pmgr = procDefDir.processMgr ("jstests", "testAbandon");
      WfProcess process
    = pmgr.createProcess(new DefaultRequester (workflowService));
      process.start();
      assertTrue (stateReached (process, "closed.completed"));
      for (Iterator i = process.activitiesInState("closed").iterator ();
     i.hasNext ();) {
    WfActivity act = (Activity)i.next ();
    if (act.name().equals ("Run JS")) {
        assertTrue (act.state().equals
        ("closed.completed.abandoned"));
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfProcess.activitiesInState()

            return;
        }
       
        Collection activities;
        try {
            activities = proc.activitiesInState("open.running");
        } catch (InvalidStateException e) {
            FaultUtils.setFault(respMsg, ASAPException.ASAP_OPERATION_FAILED,
                    e.getMessage());
           
            return;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.