We will use Yeoman to generate a businessnetwork project template. Here, we need to modify the provided template files.
Implementing models, transaction logic, access control, and query definitions
Getting ready
In Playground, select an empty-business-network template to start our model, logic, and ACL implementation:
We first rename the mode file under the models folder to org.packt.farmatrace.cto. Then we add a new script file by clicking on add a file, selecting Script File (.js), and adding a new Query File (.qry) by clicking add a file. You should then select Query File (.qry):
Remove the default generated content in these files. In earlier FarmaTrace use case analyses, we identified that we need to create the following...