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, 809🔥, 0💬
Popular Posts:
Where to find tutorials on API Management Services at Azure Portal? Here is a list of tutorials to a...
What is test testing area for? The testing area is provided to allow visitors to post testing commen...
How to read RSS validation errors at w3.org? If your RSS feed has errors, the RSS validator at w3.or...
How to install "The Windows SDK version 8.1"? I need to build my Visual Studio C++ applications. If ...
How To Protect Special Characters in Query String in PHP? If you want to include special characters ...