fabric/

directory
v0.2.0-develop.76 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2019 License: BSD-3-Clause

README

Flogo extension for Hyperledger Fabric chaincode

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).

With these extensions, Hyperledger Fabric chaincode can be designed and implemented with zero code. Refer to samples marble-app and marble-private for more details about implementing chaincode for Hyperledger Fabric.

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.6 or Dovetail v0.2.0 as an extension, and so they are available for modeling chaincode.

Directories

Path Synopsis
activity
cid
get
put
trigger

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL