net.corda.node.services.api / ServiceHubInternal / invokeFlowAsync

invokeFlowAsync

open fun <T : Any> invokeFlowAsync(logicType: Class<out FlowLogic<T>>, vararg args: Any?): FlowStateMachine<T>
Overrides ServiceHub.invokeFlowAsync

Will check logicType and args against a whitelist and if acceptable then construct and initiate the flow.

Exceptions

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