Transferring the asset to the transporter

To transfer an asset of the food safety network using the Hyperledger Composer Playground, take the following steps: 

  1. In the top-right corner of the application, select the My business networks option and connect as transporter.
  2. If you select Test, Assets → FoodBox, you will see that there are no assets available:

  1. Return to the Factory identity, select the Edit button on the right-hand side of the asset data, and update the JSON file with the following data:
{
"$class": "com.packtpublishing.businessnetwork.foodsafety.FoodBox",
"foodBoxIdentifier": "1",
"assetTrackingInformation": [],
"measureTrackingInformation": [],
"owner": "resource:com.packtpublishing.businessnetwork.foodsafety.Transporter#2"
}
  1. Save the asset; it will disappear from the Factory view. When you return to the Transporter view, you will find that the transporter can now see the asset.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.15.156.140