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, 846🔥, 0💬
Popular Posts:
How To Get the Minimum or Maximum Value of an Array in PHP? If you want to get the minimum or maximu...
Where to get the detailed description of the JSON.stringify() Function in JavaScript? Here is the de...
How to use the "send-request" Policy statement to call an extra web service for an Azure API service...
How to access URL template parameters from "context.Request.Matched Parameters"object in Azure API P...
How to install .NET Framework in Visual Studio Community 2017? I have the Visual Studio Installer in...