corda/samples/cordapp-configuration
josecoll 9cdda3bd77
CORDA-2149 CorDapp Contract and Workflow version identifiers (#4363)
* 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.
2018-12-14 09:39:23 +00:00
..
src [CORDA-2077] Use latest gradle plugin version (4.0.32), set target version in core and sample CorDapps (#4038) 2018-10-15 21:11:52 +01:00
build.gradle CORDA-2149 CorDapp Contract and Workflow version identifiers (#4363) 2018-12-14 09:39:23 +00:00
README.md Fixed the CorDapp configuration demo (#2967) 2018-04-16 17:23:11 +01:00

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:

  1. Run ./gradlew samples:cordapp-configuration:deployNodes to create a set of configs and installs under samples/cordapp-configuration/build/nodes
  2. Run ./samples/cordapp-configuration/build/nodes/runnodes to open up three new terminals with the three nodes
  3. 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 the someStringValue CorDapp config.

To run from the command line in Windows:

  1. Run gradlew samples:cordapp-configuration:deployNodes to create a set of configs and installs under samples\cordapp-configuration\build\nodes
  2. Run samples\cordapp-configuration\build\nodes\runnodes to open up three new terminals with the three nodes
  3. 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 the someStringValue CorDapp config.