Package de.danet.an.workflow.api

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


  assertTrue (c1.size() == 2);
  boolean foundA = false
  boolean foundB = false;
  for (Iterator i = c1.iterator(); i.hasNext();) {
      Process p = (Process)i.next();
      if (p.key().equals (proc1a.key())) {
    foundA = true;
      }
      if (p.key().equals (proc1b.key())) {
    foundB = true;
      }
View Full Code Here


  for (Iterator i = c1.iterator(); i.hasNext();) {
      Process p = (Process)i.next();
      if (p.key().equals (proc1a.key())) {
    foundA = true;
      }
      if (p.key().equals (proc1b.key())) {
    foundB = true;
      }
  }
  assertTrue (foundA && foundB);
  Thread.sleep (2000);
View Full Code Here

    public void removeClosedProcessjut1() throws Exception {
  WfRequester req = new DefaultRequester(workflowService);
  ProcessDirectory procDir = processDirectory();
  // create the process
  Process process = (Process)(createProcess("ut-process", "jut5", req));
  String processKey = process.key();
  assertTrue(process.state().equals("open.not_running.not_started"));
  // start the process
  process.start();
  assertTrue(process.state().startsWith("open.running"));
  Thread.sleep (1000);
View Full Code Here

        ProcessDefinition procdef = proc.processDefinition();
        try {
            ObserverRegistry obs = getObserverRegistry();
            obs.subscribe
                (observer, procdef.packageId(),
                 procdef.processId(), proc.key(),
                 getResourceReference().getBaseUrl());
        } catch (SQLException e) {
            FaultUtils.setFault(respMsg, e);
           
            return;
View Full Code Here

        ProcessDefinition procdef = proc.processDefinition();
        try {
            ObserverRegistry obs = getObserverRegistry();
            obs.unsubscribe(observer, procdef.packageId(), procdef.processId(),
                    proc.key());
        } catch (SQLException e) {
            FaultUtils.setFault(respMsg, e);
           
            return;
        }
View Full Code Here

        this.resource = AbstractResponseGenerator.RESOURCE_ACTIVITY;
        Process process = (Process)activity.container();
        ProcessDefinition procDef = process.processDefinition();
        this.packageId = procDef.packageId();
        this.processId = procDef.processId();
        this.processKey = process.key();
        this.activityKey = activity.key();
    }

    /**
     * Constructs a new object.
View Full Code Here

        if (observer != null) {
            try {
                ProcessDefinition procdef = proc.processDefinition();
                ObserverRegistry obs = getObserverRegistry();
                obs.subscribe(observer, procdef.packageId(), procdef
                        .processId(), proc.key(), getResourceReference()
                        .getBaseUrl());
            } catch (SQLException e) {
                FaultUtils.setFault(respMsg, e);

                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.