Examples of HistoryEvent


Examples of com.amazonaws.services.simpleworkflow.model.HistoryEvent

                return false;
            }
            if (replayUpToEventId == 0) {
                return true;
            }
            HistoryEvent firstEvent = next.getEvents().get(0);
            return firstEvent.getEventId() <= replayUpToEventId;
        }
View Full Code Here

Examples of com.amazonaws.services.simpleworkflow.model.HistoryEvent

                return null;
            }
            if (replayUpToEventId == 0) {
                return events;
            }
            HistoryEvent lastEvent = events.get(events.size() - 1);
            if (lastEvent.getEventId() <= replayUpToEventId) {
                return events;
            }
            List<HistoryEvent> truncated = new ArrayList<HistoryEvent>();
            for (HistoryEvent event : events) {
                if (event.getEventId() > replayUpToEventId) {
View Full Code Here

Examples of com.amazonaws.services.simpleworkflow.model.HistoryEvent

            DecisionTask result = new DecisionTask();
            Iterator<HistoryEvent> iterator = history.iterator();
            if (!iterator.hasNext()) {
                throw new IllegalStateException("empty history");
            }
            HistoryEvent startEvent = iterator.next();
            WorkflowExecutionStartedEventAttributes startedAttributes = startEvent.getWorkflowExecutionStartedEventAttributes();
            if (startedAttributes == null) {
                throw new IllegalStateException("first event is not WorkflowExecutionStarted: " + startEvent);
            }
            List<HistoryEvent> events = new ArrayList<HistoryEvent>();
            events.add(startEvent);
            EventType eventType = null;
            int lastStartedIndex = 0;
            int index = 1;
            long previousStartedEventId = 0;
            long startedEventId = 0;
            while (iterator.hasNext()) {
                HistoryEvent event = iterator.next();
                eventType = EventType.fromValue(event.getEventType());
                events.add(event);
                if (eventType == EventType.DecisionTaskStarted) {
                    previousStartedEventId = startedEventId;
                    startedEventId = event.getEventId();
                    lastStartedIndex = index;
                }
                index++;
            }
            if (events.size() > lastStartedIndex + 1) {
View Full Code Here

Examples of de.sub.goobi.beans.HistoryEvent

    // History Events

    for (Schritt s : stepList) {
      if (s.getTitel().equals("Bibliographische Aufnahme")) {
        p.getHistory().add(new HistoryEvent(pd.getDATUMAUFNAHMEWERK(), s.getReihenfolge(), s.getTitel(), HistoryEventType.stepDone, p));
      } else if (s.getTitel().equals("scannen")) {
        p.getHistory().add(new HistoryEvent(pd.getWERKSCANDATUM(), pd.getWERKSCANSEITEN(), null, HistoryEventType.imagesMasterDiff, p));
        p.getHistory().add(new HistoryEvent(pd.getWERKSCANDATUM(), s.getReihenfolge(), s.getTitel(), HistoryEventType.stepDone, p));
        p.getHistory().add(new HistoryEvent(pd.getDATUMAUFNAHMEWERK(), s.getReihenfolge(), s.getTitel(), HistoryEventType.stepOpen, p));
      } else if (s.getTitel().equals("Qualitaetskontrolle")) {
        p.getHistory().add(new HistoryEvent(pd.getWERKQKONTROLLDATUM(), pd.getWERKSCANSEITEN(), null, HistoryEventType.imagesWorkDiff, p));
        p.getHistory().add(new HistoryEvent(pd.getWERKQKONTROLLDATUM(), s.getReihenfolge(), s.getTitel(), HistoryEventType.stepDone, p));
        p.getHistory().add(new HistoryEvent(pd.getWERKSCANDATUM(), s.getReihenfolge(), s.getTitel(), HistoryEventType.stepOpen, p));
      } else if (s.getTitel().equals("Imagenachbearbeitung")) {
        p.getHistory().add(
            new HistoryEvent(pd.getImageNachbearbBitonalDatum(), s.getReihenfolge(), s.getTitel(), HistoryEventType.stepDone, p));
        p.getHistory().add(new HistoryEvent(pd.getWERKQKONTROLLDATUM(), s.getReihenfolge(), s.getTitel(), HistoryEventType.stepOpen, p));
        try {
          p.getHistory().add(
              new HistoryEvent(pd.getImageNachbearbBitonalDatum(), new Integer(pd.getBITONALIMAGENACHBEARBEITUNG()), null,
                  HistoryEventType.bitonal, p));
          p.getHistory().add(
              new HistoryEvent(pd.getImageNachbearbBitonalDatum(), new Integer(pd.getGRAUIMAGENACHBEARBEITUNG()), null,
                  HistoryEventType.grayScale, p));
          p.getHistory().add(
              new HistoryEvent(pd.getImageNachbearbBitonalDatum(), new Integer(pd.getFARBEIMAGENACHBEARBEITUNG()), null,
                  HistoryEventType.color, p));

        } catch (NumberFormatException e) {

        } catch (NullPointerException e) {
View Full Code Here

Examples of de.sub.goobi.beans.HistoryEvent

   * @return true, if changes are made and have to be saved to database
   ***************************************************************************/
  @SuppressWarnings("incomplete-switch")
  private static Boolean updateHistoryForSteps(Prozess inProcess) {
    Boolean isDirty = false;
    HistoryEvent he = null;

    /**
     * These are the patterns, which must be set, if a pattern differs from these something is wrong, timestamp pattern overrules status, in that
     * case status gets changed to match one of these pattern
     *
 
View Full Code Here

Examples of de.sub.goobi.beans.HistoryEvent

   * @param type
   * @param inProcess
   * @return History event if event needs to be added, null if event(same kind, same time, same process ) already exists
   */
  private static HistoryEvent addHistoryEvent(Date timeStamp, Integer stepOrder, String stepName, HistoryEventType type, Prozess inProcess) {
    HistoryEvent he = new HistoryEvent(timeStamp, stepOrder, stepName, type, inProcess);

    if (!getHistoryContainsEventAlready(he, inProcess)) {
      inProcess.getHistory().add(he);
      return he;
    } else {
View Full Code Here

Examples of de.sub.goobi.beans.HistoryEvent

            this.mySchritt.setBearbeitungsbeginn(myDate);
          }
          this.mySchritt
              .getProzess()
              .getHistory()
              .add(new HistoryEvent(this.mySchritt.getBearbeitungsbeginn(), this.mySchritt.getReihenfolge().doubleValue(),
                  this.mySchritt.getTitel(), HistoryEventType.stepInWork, this.mySchritt.getProzess()));
          try {
            /*
             * den Prozess aktualisieren, so dass der Sortierungshelper gespeichert wird
             */
 
View Full Code Here

Examples of de.sub.goobi.beans.HistoryEvent

          Date myDate = new Date();
          s.setBearbeitungsbeginn(myDate);
        }
        s.getProzess()
            .getHistory()
            .add(new HistoryEvent(s.getBearbeitungsbeginn(), s.getReihenfolge().doubleValue(), s.getTitel(), HistoryEventType.stepInWork,
                s.getProzess()));

        if (s.isTypImagesLesen() || s.isTypImagesSchreiben()) {
          try {
            new File(s.getProzess().getImagesOrigDirectory(false));
View Full Code Here

Examples of de.sub.goobi.beans.HistoryEvent

      temp.getEigenschaften().add(se);
      dao.save(temp);
      this.mySchritt
          .getProzess()
          .getHistory()
          .add(new HistoryEvent(myDate, temp.getReihenfolge().doubleValue(), temp.getTitel(), HistoryEventType.stepError, temp.getProzess()));
      /*
       * alle Schritte zwischen dem aktuellen und dem Korrekturschritt wieder schliessen
       */
      List<Schritt> alleSchritteDazwischen = Helper.getHibernateSession().createCriteria(Schritt.class)
          .add(Restrictions.le("reihenfolge", this.mySchritt.getReihenfolge())).add(Restrictions.gt("reihenfolge", temp.getReihenfolge()))
View Full Code Here

Examples of de.sub.goobi.beans.HistoryEvent

        temp.getEigenschaften().add(se);
        this.stepDAO.save(temp);
        this.currentStep
            .getProzess()
            .getHistory()
            .add(new HistoryEvent(myDate, temp.getReihenfolge().doubleValue(), temp.getTitel(), HistoryEventType.stepError, temp
                .getProzess()));
        /*
         * alle Schritte zwischen dem aktuellen und dem Korrekturschritt wieder schliessen
         */
        @SuppressWarnings("unchecked")
 
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.