{"id":116,"date":"2022-08-23T20:49:17","date_gmt":"2022-08-23T20:49:17","guid":{"rendered":"http:\/\/xpf.xhlbc.com\/XPF\/?page_id=116"},"modified":"2022-08-23T20:49:17","modified_gmt":"2022-08-23T20:49:17","slug":"xcc-blueprint","status":"publish","type":"page","link":"https:\/\/polytech.xcaliber.network\/XPF\/xcc-blueprint\/","title":{"rendered":"XCC Blueprint"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">xcc<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/******************************************************************************************************\n *                                                                                                    *\n *                                           XCC_IVP                                                  *\n *                                                                                                    *\n *        Title: XCC Verification Program                                                             *\n *      Version: 1                                                                                    *\n *    Developer: Dr.Lou.31600                                                                         *\n *   Source Codes are the intellectual property of the author.                                        *\n *   Generated by The Xcelious Programming Facility (XPF) using the XCC Blueprint.                    *\n *                                                                                                    *\n ******************************************************************************************************\/\n\npackage xcelious.blueprint.ivp;\t\t\t\t\t\/\/ Java package for XPF Library\nimport xcelious.blueprint.common.ChainCodeWorkArea;\t\t\/\/ Include the Chain Code Work Area (CCWA)\nimport com.csa.support.api.CSAPI;\t\t\t\t\/\/ Include the CSA Platform Interface\nimport com.csa.common.utils.DateUtils;\t\t\t\t\/\/ Include the Date and Time Utilities\nimport java.util.Date;\t\t\t\t\t\t\/\/ Include the standard Java Date package\nimport java.util.Iterator;\t\t\t\t\t\/\/ Include the standard Java Iterator\nimport java.util.Set;\t\t\t\t\t\t\/\/ Include the standatd Java Keyset\n\n\/******************************************************************************************************\n *                                                                                                    *\n *                                           XCC_IVP                                                  *\n *                                                                                                    *\n *                                        Object Constructor                                          *\n *                                                                                                    *\n ******************************************************************************************************\/\n\npublic class XCC_IVP1 extends CSAPI\t\t\t\t\/\/ Begin Object Constructor\n{\t\t\t\t\t\t\t\t\/\/ Create The\n\tpublic XCC_IVP1()\t\t\t\t\t\/\/   Xcelious HyperLedger\n\t{\t\t\t\t\t\t\t\/\/    Chain Code Object (XCC)\n\t    super();\t\t\t\t\t\t\/\/ Percolate Constructors\n\t}\t\t\t\t\t\t\t\/\/ End of Object Constructor\n\n\/******************************************************************************************************\n *                                                                                                    *\n *                                           XCC_IVP                                                  *\n *                                                                                                    *\n *                                        Chain Code Executor                                         *\n *                                                                                                    *\n ******************************************************************************************************\/\n\n\tpublic String execute()\t\t\t\t\t\/\/ Begin Chain Code Executor\n\t{\t\t\t\t\t\t\t\/\/ Return a task completion code\n\ttry\t\t\t\t\t\t\t\/\/ Encapsulate the program\n\t\t{\t\t\t\t\t\t\/\/  to detect any program checks\n\t\tlogicTrace(1001,\"XCC_IVP1 - Task:\" \t\t\/\/ Program logic trace\n\t\t\t\t+ tco.getTaskNmbr());\t\t\/\/ Display CSA Task Number\n\t\t\t\t\t\t\t\t\/\/\n\t\tChainCodeWorkArea ccwa = new ChainCodeWorkArea(); \/\/ Allocate Chain Code Work Area (CCWA)\n\t\t\t\t\t\t\t\t\/\/\n\t\tccwa.setParmKeyList(progParms.keySet());\t\/\/ Set the Keyset for the program paramters\n\t\tccwa.setParmKeys(ccwa.getParmKeyList().iterator()); \/\/ Get the program parameters keyset iterator\n\t\t\t\t\t\t\t\t\/\/\n\t\twhile (ccwa.getParmKeys().hasNext())\t\t\/\/ Iterate through the program\n\t\t\t{\t\t\t\t\t\/\/  parameter list\n\t\t\tccwa.setWkKey((String) ccwa.getParmKeys().next());\t\/\/ Get the paramter name\n\t\t\tccwa.setWkValue((String) progParms.get(ccwa.getWkKey())); \/\/ Get the parameter value\n\t\t\tlogicTrace(1002,\"XCC_IVP1 - Exec Parm:\" \/\/ Program logic trace\n\t\t\t\t\t\t    + ccwa.getWkKey()\t\/\/ Display parameter name\n\t\t\t\t\t\t    + \" Value:\"\t\t \/\/  and\n\t\t\t\t\t\t    + ccwa.getWkValue()); \/\/   value\n\t\t\t}\t\t\t\t\t\/\/ Continue parameter iteration\n\t\t\t\t\t\t\t\t\/\/\n\t\tccwa.setToday(new Date());\t\t\t\/\/ Get the current date and time\n       \t\tccwa.setDateUtils(new DateUtils());\t\t\/\/ Create the DateUtils Object\n       \t\tccwa.setReptDate(ccwa.getDateUtils().reptTimeStamp());\t\/\/ Retrieve the formatted date and time\n        \tccwa.setUserGreeting(ccwa.getDateUtils().getGreeting(ccwa.getToday())); \/\/ Retrieve the greeting\n\t\tlogicTrace(1003,\"XCC_IVP1 - TimeStamp:\"\t\/\/ Program logic trace\n\t\t\t\t\t\t+ ccwa.getReptDate() \t\/\/ Display the formatted date and time\n\t\t\t\t\t\t+ \" Greeting:\"\t    \t\/\/ Display the user greeting\n\t\t\t\t\t\t+ ccwa.getUserGreeting()); \/\/ i.e. Good Afternoon\n\t\t\t\t\t\t\t\t\/\/\n\t\t\t\t\t\t\t\t\/\/\n\n\t       addSymbol(\"&amp;LedgerHeader\",\"Xcelious Programming Facility (XPF)\");\n  \t       addSymbol(\"&amp;LedgerTitle\",\"HyperLedger Chain Code Workbench\");\n\t       addSymbol(\"&amp;LedgerFontColor\",\"blue\");\n\t       addSymbol(\"&amp;LedgerNoticeColor\",\"green\");\n\t       addSymbol(\"&amp;ProdLogoURL\",\"http:\/\/www.scepterx.com\/MediaLib\/XCCProdIntro.png\");\n\n\t       addSymbol(\"&amp;PageHeader\",\"Xcelious Programming Facility (XPF)\");\n\t       addSymbol(\"&amp;PageTitle\",\"HyperLedger Java Chain Code Workbench\");\n\t       addSymbol(\"&amp;PageFontColor\",\"navy\");\n\t       addSymbol(\"&amp;PageNoticeColor\",\"green\");\n\t       addSymbol(\"&amp;DevLogoURL\",\"http:\/\/www.scepterx.com\/MediaLib\/CTOLogo.png\");\n\n\t       addSymbol(\"&amp;DevName\",\"Developer: Dr.Lou.31600\");\n\t       addSymbol(\"&amp;ProgMessage1\",\"Installation Verified\");\n\n\t       addSymbol(\"&amp;PageMessage2\",ccwa.getReptDate());\t  \/\/ Symbolic substitution for PageMessage1\n\t       addSymbol(\"&amp;PageMessage3\",ccwa.getUserGreeting()); \/\/ Symbolic substitution for PageMessage2\n\n\n\/******************************************************************************************************\n *                                                                                                    *\n *                                           XCC_IVP                                                  *\n *                                                                                                    *\n *                                          Program Return                                            *\n *                                                                                                    *\n ******************************************************************************************************\/\n\n        \tccwa = null;\t\t\t\t\t\t\/\/ Free the Chain Code Work Area (CCWA)\n        \tlogicTrace(1004,\"XCC_IVP1 - Return\");\t\t\t\/\/ Program logic trace\n\t\t}\t\t\t\t\t\t\/\/ Normal end of task\n\t\tcatch (Exception servError)\t\t\t\/\/ Catch all JVM Exceptions\n\t\t\t{\t\t\t\t\t\/\/ Begin program check handler\n\t\t\tabend(servError);\t\t\t\/\/ Terminate task and report error\n\t\t\t}\t\t\t\t\t\/\/ End program check handler\n\t\t\t\t\t\t\t\t\/\/\n\treturn epilog();\t\t\t\t\t\/\/ Chain Code Program Completed\n\t}\t\t\t\t\t\t\t\/\/ End of Chain Code Executor\n\t\t\t\t\t\t\t\t\/\/\n}\t\t\t\t\t\t\t\t\/\/ End of Java Program Class\n\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>xcc<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-116","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/polytech.xcaliber.network\/XPF\/wp-json\/wp\/v2\/pages\/116","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/polytech.xcaliber.network\/XPF\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/polytech.xcaliber.network\/XPF\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/polytech.xcaliber.network\/XPF\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/polytech.xcaliber.network\/XPF\/wp-json\/wp\/v2\/comments?post=116"}],"version-history":[{"count":0,"href":"https:\/\/polytech.xcaliber.network\/XPF\/wp-json\/wp\/v2\/pages\/116\/revisions"}],"wp:attachment":[{"href":"https:\/\/polytech.xcaliber.network\/XPF\/wp-json\/wp\/v2\/media?parent=116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}