net.corda.core.node / ServiceHub / invokeFlowAsync

invokeFlowAsync

abstract fun <T : Any> invokeFlowAsync(logicType: Class<out FlowLogic<T>>, vararg args: Any?): FlowStateMachine<T>

Will check logicType and args against a whitelist and if acceptable then construct and initiate the flow. Note that you must be on the server thread to call this method.

Exceptions

IllegalFlowLogicException - or IllegalArgumentException if there are problems with the logicType or args.