corda/tools
Dan Newton 4bae045a58 ENT-4601 Public API to run external operations from a flow (#5833)
Deprecate FlowAsyncOperation and reimplement public versions FlowExternalOperation and FlowExternalAsyncOperation.

await added to FlowLogic to allow easy calling from both Java and Kotlin. There are two overrides of await (one for FlowExternalOperation and FlowExternalAsyncOperation).

Implementations of FlowExternalOperation return a result (written as blocking code) from their execute function. This operation will then be executed using a thread provided by the externalOperationExecutor.

Implementations of FlowExternalAsyncOperation return a future from their execute function. This operation must be executed on a newly spawned thread or one provided by a thread pool. It is up to developers to handle threading in this scenario.

The default thread pool (externalOperationExecutor) can be configured through the flowExternalOperationThreadPoolSize node config.

The current implementation leaves FlowAsyncOperation alone, meaning that any developers that have used it (even though it is internal) won't need to change their apps. If this was not concern I would delete it completely and replumb the state machine code. Instead, it has been marked with @DoNotImplement and executeAsync is annotated with @Deprecated
2020-01-22 09:27:17 +00:00
..
blobinspector CORDA-3396 fixed NPE in BlobInspector. Added verbose message in the case of error. 2019-11-07 16:50:43 +00:00
bootstrapper TM-23 Fail build on compiler warnings (#5453) 2019-09-11 16:34:51 +01:00
checkpoint-agent Publish checkpoint agent jar and allow for inclusion of version id in jar upon run-time execution. (#5553) 2019-10-04 14:28:42 +01:00
cliutils CORDA-2050 Upgrade Corda to Java 11 (compatibility mode) (#5356) 2019-09-18 10:26:26 +01:00
demobench CORDA-3406: Modify DemoBench to make using the DJVM obvious and optional. 2019-11-07 12:22:40 +00:00
explorer CORDA-3224 JDK11 built and published artifacts to include classifier. (#5488) 2019-10-08 10:45:10 +01:00
graphs [CORDA-682]: Claim Jigsaw module names (#1824) 2017-10-06 15:37:33 +01:00
loadtest Fix and or suppress detekt warnings 2019-11-01 11:48:07 +00:00
network-builder Fix and or suppress detekt warnings 2019-11-01 11:48:07 +00:00
scripts Improve the upgrade-test-packages.sh script to work on macOS. Fixes an issue found by tom on pubslack. (#2894) 2018-03-29 10:47:48 +02:00
shell ENT-4601 Public API to run external operations from a flow (#5833) 2020-01-22 09:27:17 +00:00
shell-cli CORDA-3224 JDK11 built and published artifacts to include classifier. (#5488) 2019-10-08 10:45:10 +01:00
worldmap [Issue #5746] Update cities.txt (#5747) 2019-11-27 17:55:32 +00:00