Examples of state()


Examples of com.thoughtworks.xstream.io.StatefulWriter.state()

                statefulWriter.flush();
            }

            @Override
            public void close() {
                if (statefulWriter.state() != StatefulWriter.STATE_CLOSED) {
                    statefulWriter.endNode();
                    statefulWriter.close();
                }
            }
        });
View Full Code Here

Examples of de.danet.an.workflow.api.Activity.state()

            boolean found = false;
            for (Iterator i = process.steps().iterator(); i.hasNext();) {
                WfActivity act = (WfActivity)i.next ();
                if (act.name().equals("Generic")) {
                    found = true;
                    assertTrue (act.state().startsWith("closed.completed"));
                }
            }
            assertTrue (found);
            procDir.removeProcess(process);
        } finally {
View Full Code Here

Examples of de.danet.an.workflow.api.Process.state()

    public void createProcess1AndRemoveProcessDef() throws Exception
  ProcessDefinitionDirectory pdd = null;
  try {
      WfRequester cont = new DefaultRequester(workflowService());
      Process process = (Process)createProcess("ut-process", "jut1", cont);
      assertTrue(process.state().startsWith("open.not_running.not_started"));
      process.start();
      assertTrue(process.state().startsWith("open.running"));
      // remove its process definition
      pdd = workflowService().processDefinitionDirectory ();
      ProcessDefinition pd
View Full Code Here

Examples of de.danet.an.workflow.api.Process.state()

  try {
      WfRequester cont = new DefaultRequester(workflowService());
      Process process = (Process)createProcess("ut-process", "jut1", cont);
      assertTrue(process.state().startsWith("open.not_running.not_started"));
      process.start();
      assertTrue(process.state().startsWith("open.running"));
      // remove its process definition
      pdd = workflowService().processDefinitionDirectory ();
      ProcessDefinition pd
    = pdd.lookupProcessDefinition("ut-process", "jut1");
      assertTrue(pd!=null);
View Full Code Here

Examples of de.danet.an.workflow.localcoreapi.WfActivityLocal.state()

    try {
        // Due to concurrency, an activity
        // could be started interim.
        if (!a.workflowState()
      .equals(State.CLOSED)
      && a.state()
      .equals("open.not_running.not_runnable")) {
      a.setProcessContext(null);
        }   
    } catch (InvalidDataException ide) {
        throw new CannotStartException("");
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfActivity.state()

      try {
          // Due to concurrency, an activity
          // could be started interim.
          if (!a.workflowState()
        .equals(State.CLOSED)
        && a.state()
        .equals("open.not_running.not_runnable")) {
        a.setProcessContext(null);
          }
      } catch (UpdateNotAllowedException ue) {
          ue.printStackTrace();
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfActivity.state()

  // get the activities
  Collection c = process.steps();
  Iterator it = c.iterator();
  while (it.hasNext()) {
      WfActivity a = (WfActivity)it.next();
      assertTrue(a.state() != null);
  }
    }

    /**
     * Create a new process for the given type and start it.
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfActivity.state()

  // get the activities
  Collection c = process.steps();
  Iterator it = c.iterator();
  while (it.hasNext()) {
      WfActivity a = (WfActivity)it.next();
      assertTrue(a.state() != null);
  }
    }

    /**
     * Create a new process for the given type and start it.
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfActivity.state()

  Collection c = process.steps();
  Iterator it = c.iterator();
  int cnt = 0;
  while (it.hasNext()) {
      WfActivity a = (WfActivity)it.next();
      if (a.state().startsWith
    (WfExecutionObject.ClosedState.COMPLETED.toString())) {
    cnt += 1;
      }
  }
  assertTrue (cnt == 5);
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfActivity.state()

  int resCnt = 0;
  while (i-- > 0) {
      boolean resd = false;
      for (Iterator it = process.steps().iterator(); it.hasNext();) {
    WfActivity a = (WfActivity)it.next();
    if (a.state().startsWith ("open.not_running.suspended")) {
        a.resume ();
        resd = true;
        resCnt += 1;
        Thread.sleep (500);
    }
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.