Tools, FAQ, Tutorials:
What Is JS Scripting Language
What is Business Network JS Scripting Language?
✍: FYIcenter.com
Business Network JS Scripting Language is the standard JavaScript language
to define business logics on how each transaction is processed.
JavaScript source code can be stored in a single or multiple files with the *.js file extension.
Each JavaScript source code file should contrain set of function statement blocks.
/* function to process a specific type of transactions * defined in a business network model file. * @transaction */ function ... { ... JavaScript statements ... } ... /* function to perform a specfic task to support other functions. */ function ... { ... JavaScript statements ... }
Here is an example of a JavaScript file, lib/hello.js:
/* Copyright (c) FYIcenter.com */ /* @transaction * @param {com.fyicenter.hyperledger.hello.Hello} req */ function helloProcessor(req) { console.log("Hello "+req.name+"!"); }
Â
⇒ "transaction" Process Function Syntax
⇠Business Network JS Scripting Language
2021-06-05, 573👍, 0💬
Popular Posts:
How to add an API to an API product for internal testing on the Publisher Portal of an Azure API Man...
How to add a new operation to an API on the Publisher Portal of an Azure API Management Service 2017...
How to use the urllib.request.Request object to build more complex HTTP request? The urllib.request....
How to search for the first match of a regular expression using re.search()? The re.search() functio...
Where is API Management Service on my Azure Portal? If your IT department has signed up for an Azure...