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:
![](https://static.packt-cdn.com/products/9781789534887/graphics/assets/df3c0a4f-c346-4e55-bd85-1178d78802ae.png)
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):
![](https://static.packt-cdn.com/products/9781789534887/graphics/assets/0e35143e-b137-43c9-984b-f018575cef5d.png)
Remove the default generated content in these files. In earlier FarmaTrace use case analyses, we identified that we need to create the following...