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, 816🔥, 0💬
Popular Posts:
How to use "json-to-xml" Azure API Policy Statement? The "json-to-xml" Policy Statement allows you t...
FYIcenter.com Online Tools: FYIcenter JSON Validator and Formatter FYIcenter JSON to XML Converter F...
Can Two Forms Be Nested? Can two forms be nested? The answer is no and yes: No. You can not nest two...
How to use "{{...}}" Liquid Codes in "set-body" Policy Statement? The "{{...}}" Liquid Codes in "set...
How to use "{{...}}" Liquid Codes in "set-body" Policy Statement? The "{{...}}" Liquid Codes in "set...