Package de.danet.an.workflow.omgcore

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


    /* Comment copied from interface. */
    public boolean isMemberOfPerformers(WfProcess wfProcess)
  throws RemoteException {
  for (Iterator ps = performers().iterator(); ps.hasNext();) {
      WfProcess p = (WfProcess)ps.next();
      if (p.key().equals (wfProcess.key())) {
    return true;
      }
  }
  return false;
    }
View Full Code Here


      Exception e = mir.firstException ();
      assertTrue ("Problem executing batch: " + e.getMessage(), false);
  }
  Object[] results = mir.results();
  WfProcess proc = (WfProcess)results[0];
  assertTrue (proc.key().equals (results[1]));
    }

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

     */
    public ActivityUniqueKey (WfActivity activity)
  throws RemoteException {
  actKey = activity.key();
  WfProcess proc = activity.container();
  procKey = proc.key();
  String mgrName = proc.manager().name();
    }

    /**
     * Creates an instance of <code>ActivityUniqueKey</code>
View Full Code Here

     */
    public boolean isMemberOfPerformers(WfProcess member) {
        for (Iterator ps = performers().iterator(); ps.hasNext();) {
            WfProcess p = (WfProcess)ps.next();
            try {
                if (p.key().equals (member.key())) {
                    return true;
                }
            } catch (RemoteException e) {
                throw new EJBException (e);
            }
View Full Code Here

      }
      Set assocKeys = (Set)procKeysByReq.get (reqRef);
      Collection perfs = ((WfRequester)req).performers();
      for (Iterator p = perfs.iterator(); p.hasNext();) {
          WfProcess perf = (WfProcess)p.next();
          String pk = perf.key();
          reqsByProcKey.put (pk, reqRef);
          assocKeys.add (pk);
          if (pk.equals (procKey)) {
        requester = req;
        break found;
View Full Code Here

  assertTrue (c.contains(procThat2.key ()));

  c = pmgr.findByDataItem ("testValue", dummyText);
  assertTrue (c.size () == 1);
  c = toKeys (c);
  assertTrue (c.contains(procLong.key ()));

  // Cleanup
  oldProcs = pmgr.processes();
  for (Iterator i = oldProcs.iterator(); i.hasNext ();) {
      procDir.removeProcess ((Process)i.next());
View Full Code Here

        String requestedAsapState = getChildsTextContent(action, "State");
        String newAsapState;
        try {
            if (logger.isDebugEnabled()) {
                logger.debug("changing state of " + proc.name() + "/"
                        + proc.key() + " to '" + requestedAsapState + "'...");
            }

            String requestedOmgState
                = StateMapper.asap2omgState(requestedAsapState);
View Full Code Here

        SOAPElement newStateElement
            = stateNode.addChildElement("State", Consts.ASAP_PREFIX);
        newStateElement.addTextNode(newAsapState);
   
        if (logger.isDebugEnabled()) {
            logger.debug("changed state of " + proc.name() + "/" + proc.key()
                    + " from " + requestedAsapState + " to " + newAsapState);
        }
    }

    /**
 
View Full Code Here

     * @exception Exception if an error occurs
     */
    public void timeoutSynchr() throws Exception {
  ProcessMgr mgr = defDir.processMgr("SystemTest", "timeoutSynchr");
  WfProcess proc = mgr.createProcess(requester);
  String procKey = proc.key();
  proc.start();
  assertTrue(stateReached(proc, "closed.completed"));
  ProcessData data = proc.processContext();
  String path = (String)data.get("TransitionPath");
  assertTrue(path, path.equals("PATH:act1:act2:to"));
View Full Code Here

  assertTrue(path, path.equals("PATH:act1:act2:to"));
  procDir.removeProcess(proc);

  mgr = defDir.processMgr("SystemTest", "timeoutSynchrDefault");
  proc = mgr.createProcess(requester);
  procKey = proc.key();
  proc.start();
  assertTrue(stateReached(proc, "closed.completed"));
  data = proc.processContext();
  path = (String)data.get("TransitionPath");
  assertTrue(path, path.equals("PATH:act1:act2:def"));
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.