Examples of FlowEvent


Examples of com.twitter.hraven.FlowEvent

    }

    Preconditions.checkNotNull(flowKey, String.format(
        "Can not push event type %s because flowKey is not set", event.getType()));
    FlowEventKey eventKey = new FlowEventKey(flowKey, event.getId());
    FlowEvent flowEvent = new FlowEvent(eventKey);
    flowEvent.setTimestamp(event.getTimestamp());
    flowEvent.setFramework(JobDescFactory.getFramework(jobConf));
    flowEvent.setType(event.getType().name());

    if (eventDataJson != null) {
      flowEvent.setEventDataJSON(eventDataJson);
    }

    hRavenPool.submit(new HRavenEventRunnable(flowEventService, flowEvent));
  }
View Full Code Here

Examples of org.primefaces.event.FlowEvent

    /**
     * Decide which step do display
     */
    if(success) {
      if(wizard.getFlowListener() != null) {
        FlowEvent flowEvent = new FlowEvent(wizard, currentStep, newStep);
        Object outcome = wizard.getFlowListener().invoke(facesContext.getELContext(), new Object[]{flowEvent});
        stepToDisplay = (String) outcome;
      } else {
        stepToDisplay = newStep;
      }
View Full Code Here

Examples of org.primefaces.event.FlowEvent

            if (fc.isValidationFailed()) {
                stepToDisplay = currentStep;
            } else {
                if (wizard.getFlowListener() != null) {
                    FlowEvent flowEvent = new FlowEvent(wizard, currentStep, stepToGo);
                    Object outcome = wizard.getFlowListener().invoke(fc.getELContext(), new Object[]{flowEvent});
                    stepToDisplay = (String) outcome;
                } else {
                    stepToDisplay = stepToGo;
                }
View Full Code Here

Examples of org.primefaces.event.FlowEvent

            Map<String, String> params = context.getExternalContext().getRequestParameterMap();
            String clientId = wizard.getClientId(context);
            String stepToGo = params.get(clientId + "_stepToGo");
            String currentStep = wizard.getStep();
           
            FlowEvent event = new FlowEvent(wizard, currentStep, stepToGo);
            event.setPhaseId(PhaseId.INVOKE_APPLICATION);
           
            wizard.queueEvent(event);
        }
    }
View Full Code Here

Examples of org.primefaces.event.FlowEvent

    /**
     * Decide which step do display
     */
    if(success) {
      if(wizard.getFlowListener() != null) {
        FlowEvent flowEvent = new FlowEvent(wizard, oldStep, newStep);
        Object outcome = wizard.getFlowListener().invoke(facesContext.getELContext(), new Object[]{flowEvent});
        tabIdToDisplay = (String) outcome;
      } else {
        tabIdToDisplay = newStep;
      }
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.