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

io.statusmachina.core.api.TransitionData Maven / Gradle / Ivy

Go to download

Core functionality for Status Machina, a small, simple and pragmatic state machine for resilient microservices orchestration.

The newest version!
package io.statusmachina.core.api;

import java.util.Map;
import java.util.Optional;

public interface TransitionData extends StateMachineData{
    /**
     * @return the state from which the machine was transitioning out
     */
    S getFrom();

    /**
     * @return the state to which the machine was transitioning to
     */
    S getTo();

    /**
     * @return the event that triggered the transition, empty optional if STP
     */
    Optional getEvent();

    /**
     * @return the context as it was in the source state
     */
    Map getContext();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy