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
2019-04-20, 241👍, 0💬
Popular Posts:
What is EPUB 2.0 Metadata "dc:creator" and "dc:contributor" elements? EPUB 2.0 Metadata "dc:creator"...
How to add request query string Parameters to my Azure API operation to make it more user friendly? ...
FYIcenter.com Online Tools: FYIcenter JSON Validator and Formatter FYIcenter JSON to XML Converter F...
How to add request URL Template Parameters to my Azure API operation to make it more user friendly? ...
How to access Request body from "context.Request.Body" object in Azure API Policy? Request body is t...