package org.webpieces.javasm.api;
<BUG>import java.awt.event.ActionListener;
public interface StateMachine</BUG>
{
public Memento createMementoFromState(String stateMachineId, State state);
<BUG>public void fireEvent(Memento currentState, Object event);
</BUG>
public State createState(String name);

package org.webpieces.javasm.api;
import java.awt.event.ActionListener;
import java.util.concurrent.CompletableFuture;
public interface StateMachine
{
public Memento createMementoFromState(String stateMachineId, State state);
public CompletableFuture<State> fireEvent(Memento currentState, Object event);
public State createState(String name);
