Created
December 23, 2018 17:46
-
-
Save apemon/368fd4b1d093187750d3667ed3d2ebff to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @InitiatingFlow | |
| @StartableByRPC | |
| class ProxyNameAddFlow(val proxy: ProxyName): FlowLogic<Unit>() { | |
| @Suspendable | |
| override fun call() { | |
| val databaseService = serviceHub.cordaService(ProxyNameDatabaseService::class.java) | |
| databaseService.insertProxyName(proxy) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment