org.hyperledger.fabric.sdk.shim.fsm.EventDesc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fabric-java-sdk Show documentation
Show all versions of fabric-java-sdk Show documentation
This is a fork of Hyperledger Fabric fabric-sdk-java
package org.hyperledger.fabric.sdk.shim.fsm;
/**
* Represents an event when initializing the FSM.
* The event can have one or more source states that is valid for performing
* the transition. If the FSM is in one of the source states it will end up in
* the specified destination state, calling all defined callbacks as it goes.
*/
public class EventDesc {
/** The event name used when calling for a transition */
String name;
/** A slice of source states that the FSM must be in to perform a state transition */
String[] src;
/** The destination state that the FSM will be in if the transition succeeds */
String dst;
public EventDesc(String name, String dst, String... src) {
this.name = name;
this.src = src;
this.dst = dst;
}
}