Skip to content
Block R Engagement Tracker
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Engagement Tracker of the Block R Series

The lifecycle of a Member is made up of events that occur at Local, State or National level. Events can be committee assignments, attendence at meetings, participation in workgroups, etc. Today, these events are tracked by each association and the information is not shared. This system organizes event information by member instead of by association.

The elements of this business network are:

Participant User

The User represents the reporting Associations.

Assets EventType

EventType is metadata for ReportedEvents. Instances are prepopulated and are used to classify ReportedEvents.

Transaction ReportedEvent

ReportedEvents provides the intersection of Member, Association and the event.

Event EngagementEvent

EngagementEvents are emitted by the system to inform listening application that events have been reported.


  1. Install [Hyperledger Development Tools] (

You should always use the documentation, but the following sequence is close. It assumes, as does the documentation, that you will be building everything in your home account is a directory called "fabric-tools". Substitute the directory of your choice.

$ mkdir ~/fabric-tools && cd ~/fabric-tools
$ curl -O
$ tar xzf fabric-dev-servers.tar.gz
  1. Start Fabric
$ cd ~/fabric-tools
$ ./
$ ./

You may find that some directories need to be shared with Docker on OSX.

Hyperledger is now running.

Stopping fabric is as sinple as

$ cd ~/fabric-tools
$ ./
  1. You need to create a connection profile for the network only once:
$ cd ~/fabric-tools
$ ./

This creates a connection.json connection profile in the directory "~/.composer-connection-profiles/hlfv1".

$ cd ~/.composer-connection-profiles
$ mkdir block_r && cd block_r
$ cp ../hlfv1/connection.json .

This connection profile is needed later in step #6,

  1. Install Composer tools

From the directory of your choice, install the node-base Composer tools. There will be many warnings about deprecated packages, these are safe to ignore at the moment.

npm install -g composer-cli
npm install -g generator-hyperledger-composer
npm install -g composer-rest-server
npm install -g yo
  1. Install this package

From the root of this repository:

npm install

You should end up with a .bpa file in the ./dist directory

  1. Install the .bpa into a running Fabric system from step #2 above
composer network deploy -p block_r -a ./dist/block-r-engagement-tracker.bna -i PeerAdmin -s x

The -p argument identifies the connection profile you set up in step #3 above.

  1. Start the Composer REST Server with Fabric running from step #2 above


To test this Business Network Definition in the Test tab:

Create a User participant:

  "$class": "org.block_r.engagement_tracker.User",
  "userId": "userId:89505",
  "firstName": "Tobias",
  "lastName": "Hunter",
  "organization": "Heavenly AOR",
  "phoneNumber": "800.555.1212",
  "email": "",
  "mobileNumber": "888.555.1212"

Create a EventType asset:

  "$class": "org.block_r.engagement_tracker.EventType",
  "eventTypeId": "eventTypeId:3",
  "description": "Committee Appointment"

Submit a ReportedEvent transaction for a member using the memberId from the NRDS system:

  "$class": "org.block_r.engagement_tracker.ReportedEvent",
  "memberId": "987456123",
  "description": "Leadership Team",
  "reportedBy": "userId:89505",
  "eventType": "eventTypeId:3"

After submitting this transaction, you should now see the transaction in the Transaction Registry and that a SampleEvent has been emitted. As a result, the value of the assetId:1 should now be new value in the Asset Registry.

You can’t perform that action at this time.