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

# add

`fun <T> add(logic: FlowLogic<T>): FlowStateMachine<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.

Note that you must be on the executor thread.