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, ∼1343🔥, 0💬
Popular Posts:
How to detect errors occurred in the json_decode() call? You can use the following two functions to ...
How to use "{{...}}" Liquid Codes in "set-body" Policy Statement? The "{{...}}" Liquid Codes in "set...
How to create a "Sign-up or Sign-in" user flow policy in my Azure AD B2C directory? If you want to b...
What is EPUB 3.0 Metadata "dc:description" Element? EPUB 3.0 Metadata "dc:description" is an optiona...
Where to find tutorials on JSON (JavaScript Object Notation) text string format? I want to know how ...