Examples of state()


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

     * Create a new process for the given type and start it.
     */
    public void createAndStartProcess2() throws Exception {
  WfRequester cont = new DefaultRequester(workflowService());
  WfProcess process = createProcess("ut-process", "jut2", cont);
  assertTrue(process.state().startsWith("open.not_running.not_started"));
  process.start();
  assertTrue(process.state().startsWith("open.running"));
  // get the activities
  Collection c = process.steps();
  Iterator it = c.iterator();
View Full Code Here

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

    logger.debug ("Application " + applId
            + " updated to " + activity);
      }
      SimpleApplicationInfo info
    = applicationDirectory().instanceInfo (applId);
      Object[] data = (Object[])info.state();
      data[1] = fps[1].id();
      applicationDirectory().updateState (applId, data);
      return;
  } catch (InvalidKeyException invKey) {
      if (logger.isDebugEnabled()) {
View Full Code Here

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

      if (logger.isDebugEnabled()) {
    logger.debug ("Terminating application " + info.id()
             + " invoked by " + auk);
      }
      applicationDirectory().removeInstance (info.id());
      timerHandler().removeTimer (((Object[])info.state())[0]);
  } catch (InvalidKeyException e) {
      // terminate is called by engine "to make sure"
      logger.debug ("Terminate called for " + auk + " but application "
        + "already removed (is OK): " + e.getMessage ());
  }
View Full Code Here

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

  } catch (InvalidKeyException e) {
      logger.warn ("Timer application " + applId + " could not be "
       + "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);
View Full Code Here

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

  } catch (InvalidKeyException e) {
      logger.warn (auk + " is unknown, cannot cancel wait tool.");
      return;
  }
  ProcessData res = new DefaultProcessData ();
  String resParam = (String)((Object[])info.state())[1];
  res.put (resParam, "CANCELED");
  try {
      act.setResult (res);
      act.complete ();
      if (logger.isDebugEnabled ()) {
View Full Code Here

Examples of easysm.stores.Row.state()

    Row toAdd = targetRows.elementAt(targetRows.size()-1);
    String descr = "";
   
    for (Value v : toAdd.values())
          descr += v.toString()+" ";
    descr += "| "+toAdd.state().name() +" |";
   
    jComboBox_targetRow.addItem(descr);
   
  }
 
View Full Code Here

Examples of er.bugtracker.Bug.state()

        log.debug("in: " + result);
        Bug bug = (Bug)object(context);
        // AK: this is just an illustration
        if(bug != null) {
            result = choiceByRemovingKeys(new NSArray("edit"), result);
            if(!bug.state().equals(State.ANALYZE)) {
                result = choiceByRemovingKeys(new NSArray("delete"), result);
            }
            if(!bug.state().equals(State.CLOSED)) {
                result = choiceByRemovingKeys(new NSArray(new Object[] {"reopen"}), result);
            }
View Full Code Here

Examples of er.extensions.appserver.navigation.ERXNavigationState.state()

        if(context == null) {
            context = new NSMutableDictionary();
            session().setObjectForKey(context, "navigationContext");
        }
        ERXNavigationState state = ERXNavigationManager.manager().navigationStateForSession(session());
        log.debug("NavigationState:" + state + "," + state.state() + "," + state.stateAsString());
        //log.info("navigationContext:" + session().objectForKey("navigationContext"));
        return context;
    }
}
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceProxy.state()

        String state;
        if (device != null && device.getName() != null && !"".equals(device.getName().trim())) {
            DeviceProxy proxy = getDeviceProxy(device);
            if (proxy != null) {
                try {
                    state = StateUtilities.getNameForState(proxy.state());
                }
                catch (DevFailed e) {
                    SalsaDeviceException salsaDeviceException = new SalsaDeviceException(
                            "Error while trying to read the state of the device "
                                    + device.getName() + ".", e);
View Full Code Here

Examples of io.netty.handler.timeout.IdleStateEvent.state()

        @Override
        public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception {
            if (evt instanceof IdleStateEvent) {
                IdleStateEvent evnet = (IdleStateEvent) evt;
                if (evnet.state().equals(IdleState.ALL_IDLE)) {
                    final String remoteAddress = RemotingHelper.parseChannelRemoteAddr(ctx.channel());
                    log.warn("NETTY CLIENT PIPELINE: IDLE exception [{}]", remoteAddress);
                    closeChannel(ctx.channel());
                    if (NettyRemotingClient.this.channelEventListener != null) {
                        NettyRemotingClient.this.putNettyEvent(new NettyEvent(NettyEventType.IDLE,
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.