package org.myeslib.core;

import org.myeslib.data.Command;
import org.myeslib.data.Event;
import org.myeslib.infra.SagaInteractionContext;

import java.util.List;

public interface Saga extends EventSourced {

    SagaInteractionContext getInteractionContext();

    void setInteractionContext(SagaInteractionContext interactionContext);

    default void emit(Event event) {
        getInteractionContext().emit(event);
    }

    default List<Event> getEmitedvents() {
        return getInteractionContext().getEmittedEvents();
    }

    default void emit(Command command) {
        getInteractionContext().emit(command);
    }

    default List<Command> getEmitedCommands() {
        return getInteractionContext().getEmittedCommands();
    }

}

@@ -447,24 +447,25 @@
 Event%3E getEm
+m
 itedvents() 
@@ -660,16 +660,17 @@
  getEmit
+t
 edComman

fix typo