com.r3corda.node.services.statemachine / StateMachineManager / add

# add

`fun <T> add(loggerName: String, logic: ProtocolLogic<T>): ProtocolStateMachine<T>`

Kicks off a brand new state machine of the given class. It will log with the named logger. 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.