This Flogo extension is designed to allow developers to design and implement client apps to invoke Hyperledger Fabric chaincode in the Flogo visual programming environment. This extension supports the following release versions:
The Flogo extension supports the following activity to send request of invoke
or query
to a chaincode deployed on a Hyperledger Fabric network.
- Request: Configure request type in activity setting; Use Flogo CLI plugin
flogo configfabric
to specify Fabric network configuration.
With these Flogo extensions, Hyperledger Fabric client app can be designed and implemented by using the Flogo Web UI with zero code. The client app can use any other available Flogo triggers and activities implemented by the open-source community of Flogo.
- Setup Fabric chaincode development environment as described in README.md.
- Build and run a sample Flogo app demo as described in README.md. It is an HTTP service that invokes transactions of the Fabric sample asset-transfer-basic
For smart contract developers who do not want to code, you can define chaincode transactions in a JSON file as illustrated here.
You can generate an HTTP service for the contract JSON file, e.g., sample-contract.json, and the test the chaincode for the contract by using HTTP requests as described in README.md.
You can view and edit the client app implementation in a web-browser. First, start the Flogo Web UI:
docker run -it -p 3303:3303 flogo/flogo-docker eula-accept
Open the Flogo Web UI in a web-browser by using the URL: http://localhost:3303
.
Install the following Dovetail contributions, i.e., click the link Install contribution
at the top-right corner of the UI, and then enter the following URL to install. If the installation fails, you can follow the Troubleshoot
steps below to patch Flogo libs, and then retry the installation.
- github.com/open-dovetail/fabric-client/activity/request
- github.com/open-dovetail/dovetail-contrib/function/dovetail
- github.com/open-dovetail/dovetail-contrib/trigger/rest
You can then import a sample app by selecting the model file samples/basic/demo_basic.json.
Make sure that you have installed required Flogo contributions listed above.
Refer to the resolution here.