Examples of Step


Examples of org.olat.core.gui.control.generic.wizard.Step

    if (source == startLink){
    // use fallback translator for user property translation
    setTranslator(UserManager.getInstance().getPropertyHandlerTranslator(getTranslator()));
    userPropertyHandlers = UserManager.getInstance().getUserPropertyHandlersFor(usageIdentifyer, true);
   
    Step start = new ImportStep00(ureq, canCreateOLATPassword);
    // callback executed in case wizard is finished.
    StepRunnerCallback finish = new StepRunnerCallback() {
      public Step execute(UserRequest ureq1, WindowControl wControl1, StepsRunContext runContext) {
        // all information to do now is within the runContext saved
        boolean hasChanges = false;
View Full Code Here

Examples of org.olat.core.gui.control.generic.wizard.Step

   */
  @Override
  @SuppressWarnings("unused")
  protected void event(UserRequest ureq, Component source, Event event) {
    if(source == startWizardButton){
      Step startStep = new ZsuzStepUserData(ureq);
     
      StepRunnerCallback finishCallback = new StepRunnerCallback() {
        @SuppressWarnings({"synthetic-access","unused"})
        public Step execute(UserRequest ureq2, WindowControl control, StepsRunContext runContext) {
          MailTemplate mailtemplate = (MailTemplate)runContext.get("mailtemplate");
View Full Code Here

Examples of org.olat.core.gui.control.generic.wizard.Step

        if (identitiesToDelete != null && identitiesToDelete.size() != 0) {
          hasIdentitiesToDelete = true;
          /*
           * start step which spawns the whole wizard
           */
          Step start = new DeletStep00(ureq, hasIdentitiesToDelete, identitiesToDelete);
          /*
           * wizard finish callback called after "finish" is called
           */
          StepRunnerCallback finishCallback = new StepRunnerCallback() {
            public Step execute(UserRequest ureq, WindowControl control, StepsRunContext runContext) {
View Full Code Here

Examples of org.olat.core.gui.control.generic.wizard.Step

  protected void event(UserRequest ureq, Component source, Event event) {
    if (source == startLink) {
      /*
       * start step which spawns the whole wizard
       */
      Step start = new StartStepImpl(ureq);
      /*
       * wizard finish callback called after "finish" is called
       */
      StepRunnerCallback finishCallback = new StepRunnerCallback() {
        public Step execute(UserRequest ureq2, WindowControl control, StepsRunContext runContext) {
View Full Code Here

Examples of org.springframework.batch.core.Step

    return steps.keySet();
  }

  @Override
  public Step getStep(String stepName) throws NoSuchStepException {
    final Step step = steps.get(stepName);
    if (step == null) {
      throw new NoSuchStepException("Step ["+stepName+"] does not exist for job with name ["+getName()+"]");
    }
    return step;
  }
View Full Code Here

Examples of org.springframework.batch.core.Step

        ExecutionContext ctx = new ExecutionContext();
        ctx.putLong("crashedPosition", 7);
        JobExecution jobExec = jobRepository.createJobExecution(job.getName(), jobParameters);
        jobExec.setStartTime(new Date(0));
        jobExec.setExecutionContext(ctx);
        Step step = new StepSupport("step1");
        StepExecution stepExec = new StepExecution(step.getName(), jobExec);
        stepExec.setExecutionContext(ctx);

        jobRepository.add(stepExec);

        StepExecution retrievedStepExec = jobRepository.getLastStepExecution(jobExec.getJobInstance(), step.getName());
        assertEquals(stepExec, retrievedStepExec);
        assertEquals(ctx, retrievedStepExec.getExecutionContext());

    }
View Full Code Here

Examples of org.springframework.batch.core.Step

    if(log.isDebugEnabled()) {
      log.debug("Got StepExecution: " + stepExecution);
      log.debug("Locating Step: " + stepName);
    }

    Step step = getStepLocator().getStep(stepName);
    if(log.isDebugEnabled()) {
      log.debug("Located step: " + step);
    }

    if (step == null) {
      throw new NoSuchStepException(String.format("No Step with name [%s] could be located.", stepName));
    }

    try {
      if(log.isDebugEnabled()) {
        log.debug("Executing step: " + step + " / " + stepExecution);
      }
      step.execute(stepExecution);
    } catch (JobInterruptedException e) {
      log.error("error executing step 1", e);
      stepExecution.setStatus(BatchStatus.STOPPED);
    } catch (Throwable e) {
      log.error("error executing step 2", e);
View Full Code Here

Examples of our.apache.commons.jxpath.ri.compiler.Step

     * @param array input array. All elements of argument array must be
     * instances of {@link Step}
     * @return an array of {@link Step}s
     */
    private Step[] toStepArray(Object[] array) {
        Step stepArray[] = null;
        if (array != null) {
            stepArray = new Step[array.length];
            for (int i = 0; i < stepArray.length; i++) {
                stepArray[i] = (Step) array[i];
            }
View Full Code Here

Examples of ru.yandex.qatools.allure.annotations.Step

        Allure.LIFECYCLE.fire(new StepFinishedEvent());
    }

    public String createTitle(JoinPoint joinPoint) {
        MethodSignature methodSignature = (MethodSignature) joinPoint.getSignature();
        Step step = methodSignature.getMethod().getAnnotation(Step.class);
        return step == null ? "" : getTitle(step.value(), methodSignature.getName(), joinPoint.getThis(), joinPoint.getArgs());
    }
View Full Code Here

Examples of ru.yandex.qatools.allure.model.Step

     *
     * @return the element removed from deque
     */
    public Step pollLast() {
        Deque<Step> queue = get();
        Step last = queue.pollLast();
        if (queue.isEmpty()) {
            queue.add(createRootStep());
        }
        return last;
    }
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.