All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.codepoetics.fluvius.api.history.StepStartedEvent Maven / Gradle / Ivy

There is a newer version: 1.10
Show newest version
package com.codepoetics.fluvius.api.history;

import java.util.Map;
import java.util.UUID;

/**
 * Event representing the start of a step's execution.
 *
 * @param  The type to which event data is serialised.
 */
public final class StepStartedEvent extends FlowEvent {

  private final Map scratchpadState;

  StepStartedEvent(UUID flowId, UUID stepId, long timestamp, Map scratchpadState) {
    super(flowId, stepId, timestamp);
    this.scratchpadState = scratchpadState;
  }

  /**
   * Get the scratchpad state at the point where the step was started.
   *
   * @return The scratchpad state at the point where the step was started.
   */
  public Map getScratchpadState() {
    return scratchpadState;
  }

  @Override
  public  V translate(FlowEventTranslator translator) {
    return translator.translateStepStartedEvent(this);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy