/nodejs.js Secret
Created
April 9, 2020 11:08
vRealize Orchestrator 8.1 - Multiple Language Support
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.handler = (context, inputs, callback) => { | |
console.log('Welcome to NodeJS, ' + inputs.Name); | |
console.log("*** NodeJS Version:", JSON.stringify(process.versions)); | |
callback(undefined, {LanguageList: inputs.strOutput + " [NodeJS]"}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Handler($context, $inputs) { | |
Write-Host "Welcome to PowerShell," $inputs.Name | |
Write-Host "*** PowerShell Version:" $PSVersionTable.PSVersion | |
$output=@{strOutput = '[PowerShell]'} | |
return $output | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import sys | |
def handler(context, inputs): | |
print("Welcome to Python, {0}".format(inputs["Name"])) | |
print("*** Python version: {0}".format(sys.version)) | |
outputs = { | |
"strOutput": inputs["strOutput"]+" [Python]" | |
} | |
return outputs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment