Examples of activityUniqueKey()


Examples of de.danet.an.workflow.tools.util.SimpleApplicationInfo.activityUniqueKey()

       + "canceled because is does not exist.");
      return;
  }
  Object timer = ((Object[])info.state())[0];
  timerHandler().removeTimer (timer);
  ActivityUniqueKey auk = info.activityUniqueKey();
  Activity act = null;
  try {
      act = toolAgentContext().lookupActivity(auk);
  } catch (InvalidKeyException e) {
      logger.warn (auk + " is unknown, cannot cancel wait tool.");
View Full Code Here

Examples of de.danet.an.workflow.tools.util.SimpleApplicationInfo.activityUniqueKey()

            } catch (InvalidKeyException e) {
                logger.warn ("Application " + applId + " removed without removing "
                        + "associated timer (may be race condition).");
                return;
            }
            auk = applInfo.activityUniqueKey();
            if (logger.isDebugEnabled ()) {
                logger.debug
                ("Handling timeout for application " + applId
                        + (auk == null ? "" : (", " + auk)));
            }
View Full Code Here

Examples of de.danet.an.workflow.tools.util.SimpleApplicationInfo.activityUniqueKey()

            .infosByResource(APPLICATION_NAME, resource.resourceKey());
        for (Iterator i = infos.iterator(); i.hasNext();) {
            SimpleApplicationInfo info = (SimpleApplicationInfo)i.next();
            Activity activity = null;
            try {
                activity = pd.lookupActivity(info.activityUniqueKey());
                assignments.add (new AssignmentData (resource, info, activity));
            } catch (InvalidKeyException e) {
                logger.warn("Assignment for no longer existing activity, "
                            + "ignored: " + e.getMessage());
            }
View Full Code Here

Examples of de.danet.an.workflow.tools.util.SimpleApplicationInfo.activityUniqueKey()

            try {
                SimpleApplicationInfo info = applicationDirectory()
                    .instanceInfo(chosenInstanceId.longValue());
                ProcessDirectory pd
                    = wsc.getWorkflowService().processDirectory();
                Activity activity = pd.lookupActivity(info.activityUniqueKey());
                chosenInstance = new AssignmentData (null, info, activity);
            } catch (InvalidKeyException e) {
                // Must have been removed by concurrent action
                chosenInstanceId = null;
            }
View Full Code Here

Examples of de.danet.an.workflow.tools.util.SimpleApplicationInfo.activityUniqueKey()

            assertTrue (infos.size() == 1);
            SimpleApplicationInfo info
                = (SimpleApplicationInfo)infos.iterator().next();
            assertTrue (info.state() instanceof Object[]);
            WfActivity actFound = workflowService.processDirectory()
                .lookupActivity(info.activityUniqueKey());
            actFound.complete ();
            ad.removeInstance(info.id());
           
            assertTrue (stateReached (process, "closed.completed"));
      procDir.removeProcess(process);
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.