This Flogo extension is designed to allow developers to design and implement Hyperledger Fabric chaincode in the Flogo visual programming environment. This extension supports the following release versions:
The Transaction Trigger allows you to configure the chaincode input and output schema, including normal and/or transient input parameters.
It supports the following activities for storing and querying data on the distributed ledger and/or on private collections.
- Put: Insert or update data on the distributed ledger or a private data collection, and optionally insert its associated compsite keys if they are specified.
- Put All: Insert a list of records on the distributed ledger or a private collection, and optionally insert composite keys of each record.
- Get: Retrieve a state by a specified key from the distributed ledger or a private collection.
- Get by Range: Retrieve all states in a specified range of keys from the distributed ledger or a private collection. It supports resultset pagination for states from the distributed ledger.
- Get by Composite Key: Retrieve all states by a composite-key filter from the distributed ledger or a private collection. It supports resultset pagination for states from the distributed ledger.
- Get History: Retrieve the history of a specified key for data on the distributed ledger.
- Query: Retrieve all states by a Couchdb query statement from the distributed ledger or a private collection. It supports resultset pagination for states from the distributed ledger.
- Delete: Mark the state as deleted for a specified key from the distributed ledger or a private collection, and deletes its composite keys. Optionally, it can delete only the state, or only a composite key.
- Set Event: Set a specified event and payload for a blockchain transaction.
- Set Endorsement Policy: Set state-based endorsement policy by adding or deleting an endorsement organization, or by specifying a new endorsement policy.
- Invoke Chaincode: Invoke a local chaincode, and returns response data from the called transaction.
- Cid: It inspects the client identification and returns the client's name, MSP, and attributes that can be used for ABAC(Attribute Based Access Control).
It also includes utility functions that can be used by Flogo models:
- dovetail: Set of functions for demonstration.
With these extensions, Hyperledger Fabric chaincode can be designed and implemented with zero code. Refer to samples for more details about using these exetentions for developing Hyperledger Fabric chaincode with zero-code.
To use this extension in Flogo model, you can create fabricExtension.zip
by using the script zip-fabric.sh
, and then upload the zip-file to the TIBCO Flogo® Enterprise 2.10
as an extension, and so they are available for modeling chaincode.