net.corda.core.node / ServiceHub / invokeProtocolAsync

# invokeProtocolAsync

`abstract fun <T : Any> invokeProtocolAsync(logicType: Class<out ProtocolLogic<T>>, vararg args: Any?): ProtocolStateMachine<T>`

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

### Exceptions

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