Description

This bundle contains a set of Joget plugins to query and invoke transactions on a Hyperledger Fabric blockchain network.
For detailed instructions and an introduction to Hyperledger Fabric, please refer to the article
Blockchain Made Simple: No-Code Apps with Hyperledger Fabric and Joget.

This plugin source code is available in a new open source repository at https://github.com/jogetoss/. JogetOSS is a community-led team for open source software related to the Joget no-code/low-code application platform. Projects under JogetOSS are community-driven and community-supported, and you are welcome to contribute to the projects.

Plugin Info

Plugins available in the bundle:

  1. Hyperledger Fabric Tool

  2. Hyperledger Fabric Datalist Binder

  3. Hyperledger Fabric Form Binder

This plugin bundle is compatible with Joget DX 7 and Joget Workflow v6.

Source Code

The source code for the plugin is available at https://github.com/jogetoss/joget-hyperledger-fabric.

Installing the Plugin

  1. To download the plugin file (.jar), do look for the latest plugin release at JogetOSS: https://github.com/jogetoss/joget-hyperledger-fabric/releases

  2. Upload the downloaded .jar file into your Joget platform via Manage Plugins.

  3. Map and configure the Hyperledger Fabric Tool plugin to any Process Tool or Post Form Submission Processing.

  4. Map and configure the Hyperledger Fabric Datalist Binder to any Datalist Binder.

  5. Map and configure the Hyperledger Fabric Form Binder to any Form Load Binder.

Sample App

This sample app reuses the "fabcar" example from this Hyperledger Fabric - Writing Your First Application Guide.

For summarized setup steps & info on how to configure this sample app prior to usage, you may refer to the related Joget Blog - Blockchain Made Simple: No-Code Apps with Hyperledger Fabric and Joget.

After performing the necessary prerequisites and installing the required samples & binaries, simply download the sample app below, import the app into your Joget instance and publish the app.

APP_fabcar-fabric2.0-20200310143047.jwa

Sample connection profile to the Fabcar network:
connection-fabcar.json

Screenshots

Figure 1: Hyperledger Fabric configuration


Figure 2: Fabric Transaction options


Figure 3: Storing transaction status to form field


Figure 4: Storing transaction status to workflow variable

Changelog

VersionItems
7.0.0

Updated for compatibility with Joget DX7

Upgraded to fabric-sdk-java 2.2.19
Upgraded to gson 2.9.1
Upgraded to bouncycastle 1.70

6.2.2Upgraded to fabric-sdk-java 2.2.6
Upgraded to commons-io 2.8.0
Upgraded to guava 3.1.1-jre
6.2.1Updated for Hyperledger Fabric 2.2
6.2.0Updated for Hyperledger Fabric 2.0
6.1.0Updated for Hyperledger Fabric 1.4 on IBM Blockchain Platform
6.0.0Initial release

Common Errors And Troubleshooting

If you are hitting a similar error such as below:-

WARN  12 Feb 2023 21:48:11 org.hyperledger.fabric.sdk.PeerEventServiceClient - PeerEventServiceClient{id: 151, channel: mychannel, peerName: peer0.org1.example.com, url: grpcs://peer0.org1.example.com:7051} PeerEventServiceClient{id: 151, channel: mychannel, peerName: peer0.org1.example.com, url: grpcs://peer0.org1.example.com:7051} attempts 10 Status returned failure code 403 (FORBIDDEN) during peer service event registration

The solution is to delete the wflow/hf_users folder.




  • No labels