net.corda.node.services.statemachine / StateMachineManager / add

add

fun <T> add(logic: ProtocolLogic<T>): ProtocolStateMachine<T>

Kicks off a brand new state machine of the given class. The state machine will be persisted when it suspends, with automated restart if the StateMachineManager is restarted with checkpointed state machines in the storage service.