Examples of State


Examples of org.apache.servicemix.beanflow.State

                catch (Exception e) {
                    if (log.isDebugEnabled()) {
                        log.debug("Could not access field: " + field + " reason: " + e, e);
                    }
                }
                State state = toState(value);
                if (state != null) {
                    list.add(state);
                }
            }
        }
View Full Code Here

Examples of org.apache.shale.dialog.basic.model.State

        // the logical outcome received from the (current) view state
        Position position = peek();
        if (!START_OUTCOME.equals(outcome)) {
            transition(position, outcome);
        }
        State state = position.getState();
        String viewId = null;
        boolean redirect = false;

        // Advance through states until we again encounter the
        // need to render a view state
        while (true) {

            if (state instanceof ActionState) {
                ActionState astate = (ActionState) state;
                if (log().isTraceEnabled()) {
                    log().trace("-->ActionState(method=" + astate.getMethod() + ")");
                }
                try {
                    MethodBinding mb = context.getApplication().
                      createMethodBinding(astate.getMethod(), ACTION_STATE_SIGNATURE);
                    outcome = (String) mb.invoke(context, ACTION_STATE_PARAMETERS);
                } catch (Exception e) {
                    fireOnException(e);
                }
                transition(position, outcome);
                state = position.getState();
                continue;
            } else if (state instanceof EndState) {
                if (log().isTraceEnabled()) {
                    log().trace("-->EndState()");
                }
                pop();
                position = peek();
                if (position == null) {
                    stop(context);
                } else {
                    transition(position, outcome);
                    state = position.getState();
                    continue;
                }
                viewId = ((EndState) state).getViewId();
                redirect = ((EndState) state).isRedirect();
                break;
            } else if (state instanceof SubdialogState) {
                SubdialogState sstate = (SubdialogState) state;
                if (log().isTraceEnabled()) {
                    log().trace("-->SubdialogState(dialogName="
                              + sstate.getDialogName() + ")");
                }
                Dialog subdialog = (Dialog) dialogs(context).get(sstate.getDialogName());
                if (subdialog == null) {
                    throw new IllegalStateException("Cannot find dialog definition '"
                      + sstate.getDialogName() + "'");
                }
                start(subdialog);
                position = peek();
                state = position.getState();
                continue;
            } else if (state instanceof ViewState) {
                viewId = ((ViewState) state).getViewId();
                redirect = ((ViewState) state).isRedirect();
                if (log().isTraceEnabled()) {
                    log().trace("-->ViewState(viewId="
                              + ((ViewState) state).getViewId()
                              + ",redirect=" + ((ViewState) state).isRedirect()
                              + ")");
                }
                break;
            } else {
                throw new IllegalStateException
                  ("State '" + state.getName()
                   + "' of dialog '" + position.getDialog().getName()
                   + "' is of unknown type '" + state.getClass().getName() + "'");
            }
        }

        // Navigate to the requested view identifier (if any)
        if (viewId == null) {
View Full Code Here

Examples of org.apache.tez.dag.api.client.DAGStatus.State

  // Submits a simple 5 stage sleep job using the DAG submit API instead of job
  // client.
  @Test(timeout = 60000)
  public void testMRRSleepJobDagSubmit() throws IOException,
  InterruptedException, TezException, ClassNotFoundException, YarnException {
    State finalState = testMRRSleepJobDagSubmitCore(false, false, false, false);

    Assert.assertEquals(DAGStatus.State.SUCCEEDED, finalState);
    // TODO Add additional checks for tracking URL etc. - once it's exposed by
    // the DAG API.
  }
View Full Code Here

Examples of org.apache.uima.ducc.common.jd.files.IWorkItemState.State

            String id   = iws.getWiId();
            String node = iws.getNode();
            if ( node == null ) node = "<unassigned>";
            String pid  = iws.getPid();
            if ( pid == null ) pid = "<n/a>";
            State state = iws.getState();
            long  proctime = iws.getMillisProcessing();
            long  overhead = iws.getMillisOverhead();

            System.out.println(String.format(fmt, seq, id, state, overhead, proctime, node, pid));
        }
View Full Code Here

Examples of org.apache.vxquery.xtest.TestCaseResult.State

                    return o1.getKey().compareTo(o2.getKey());
                }
            };
        Collections.sort(entryList, comp);
        for (Map.Entry<TestCaseResult.State, Integer> e : entryList) {
            State key = e.getKey();
            out.print("<tr style=\"background: ");
            out.println(key.getColor());
            out.println(";\"><td>");
            out.println(key);
            out.println("</td><td>");
            out.println(e.getValue());
            out.println("</td></tr>");
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.core.builder.State

    for (int i = 0, max = elements.length; i < max; i++) {
      // collect all the java project
      IJavaElement element = elements[i];
      IJavaProject javaProject = element.getJavaProject();
      IProject project = javaProject.getProject();
      State state = null;
      State currentState = (State) projectsStates.get(project);
      if (currentState != null) {
        state = currentState;
      } else {
        state = (State) JavaModelManager.getJavaModelManager().getLastBuiltState(project, null);
        if (state != null) {
View Full Code Here

Examples of org.broadleafcommerce.profile.core.domain.State

            billingAddress.setAddressLine1(billToDTO.getAddressLine1());
            billingAddress.setAddressLine2(billToDTO.getAddressLine2());
            billingAddress.setCity(billToDTO.getAddressCityLocality());

            //TODO: what happens if State and Country cannot be found?
            State state = null;
            if(billToDTO.getAddressStateRegion() != null) {
                state = stateService.findStateByAbbreviation(billToDTO.getAddressStateRegion());
            }
            if (state == null) {
                LOG.warn("The given state from the response: " + billToDTO.getAddressStateRegion() + " could not be found"
View Full Code Here

Examples of org.camunda.bpm.engine.spring.annotations.State

    ReflectionUtils.doWithMethods(targetClass,
        new ReflectionUtils.MethodCallback() {
          @SuppressWarnings("unchecked")
          public void doWith(Method method) throws IllegalArgumentException, IllegalAccessException {

            State state = AnnotationUtils.getAnnotation(method, State.class);

            String processName = component.processKey();

            if (StringUtils.hasText(state.process())) {
              processName = state.process();
            }

            String stateName = state.state();

            if (!StringUtils.hasText(stateName)) {
              stateName = state.value();
            }

            Assert.notNull(stateName, "You must provide a stateName!");

            Map<Integer, String> vars = new HashMap<Integer, String>();
View Full Code Here

Examples of org.cfeclipse.cfml.parser.State

    endPosition = endDocPos;
    itemName = name;
   
    docNodes = new CFNodeList();
    docVariables = new ArrayList();
    parseMessages = new State("");
  }
View Full Code Here

Examples of org.cipango.kaleo.event.State

    Presence presence = document.addNewPresence();
    presence.setEntity(getUri());
    Tuple tuple = document.getPresence().addNewTuple();
    tuple.setId("123");
    tuple.addNewStatus().setBasic(Basic.CLOSED);
    return new State(PresenceEventPackage.PIDF, document);
  }
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.