mirror of
https://github.com/corda/corda.git
synced 2024-12-24 07:06:44 +00:00
9cdda3bd77
* Implementation of Contract and Workflow attribute identifiers. * Fixes following rebase from master. * Fix broken JUnit test. * Fix broken JUnit test. * Fix broken JUnit test. * Added missing constants. * Further clean-up. * Updated documentation. * Added changelog entry. * Updated all samples (using new Gradle Plugin 4.0.37 functionality) * Temporarily resolve gradle plugins from latest published snapshot. * Temporarily resolve gradle plugins from latest published snapshot. * Updates following feedback from PR review. * Move constants into CordappInfo companion object. * Contract and Workflow attribute `version` to `versionId` (as version is a reserved gradle variable) * Clarified warning message on incorrect version identifier. * Align version identifier processing logic with gradle cordapp plugin. * Updated comment. * Minor fixes following rebase from master. * Fixed broken unit test. * Improved exception reporting. * Update to use 4.0.37 of Gradle Plugins. * Added support for combined Contract and Workflow CorDapp info. * Updated following discussions with Shams + cleanup. * Updated following Shams PR review. * Minor API improvements. * Added missing cordapp info causing deployNodes to fail. |
||
---|---|---|
.. | ||
src | ||
build.gradle | ||
README.md |
Cordapp Configuration Sample
This sample shows a simple example of how to use per-cordapp configuration. It includes;
- A configuration file
- Gradle build file to show how to install your Cordapp configuration
- A flow that consumes the Cordapp configuration
To run from the command line in Unix:
- Run
./gradlew samples:cordapp-configuration:deployNodes
to create a set of configs and installs undersamples/cordapp-configuration/build/nodes
- Run
./samples/cordapp-configuration/build/nodes/runnodes
to open up three new terminals with the three nodes - At the shell prompt for Bank A or Bank B run
start net.corda.configsample.GetStringConfigFlow configKey: someStringValue
. This will start the flow and read thesomeStringValue
CorDapp config.
To run from the command line in Windows:
- Run
gradlew samples:cordapp-configuration:deployNodes
to create a set of configs and installs undersamples\cordapp-configuration\build\nodes
- Run
samples\cordapp-configuration\build\nodes\runnodes
to open up three new terminals with the three nodes - At the shell prompt for Bank A or Bank B run
start net.corda.configsample.GetStringConfigFlow configKey: someStringValue
. This will start the flow and read thesomeStringValue
CorDapp config.