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

org.hyperledger.fabric.sdk.shim.fsm.EventDesc Maven / Gradle / Ivy

There is a newer version: 1.1
Show newest version
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;
		}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy