You can use the StatePlugin interface to develop application states.
The SmappStatePlugin class is a base abstract class that implements the StatePlugin interface. Most custom states should extend SmappStatePlugin, which provides basic implementations that are common to most custom states, as well as helper methods that are commonly used in state implementations.
Two important methods in the StatePlugin interface are processMessage and processState, which are integral parts of application life cycles. Some of the methods in the StatePlugin interface customize the state editor, for example, supportsOkTransition and getStateNotes.