Skip to content

Instantly share code, notes, and snippets.

@sammcgeown
Created April 9, 2020 11:08
vRealize Orchestrator 8.1 - Multiple Language Support
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]"});
}
function Handler($context, $inputs) {
Write-Host "Welcome to PowerShell," $inputs.Name
Write-Host "*** PowerShell Version:" $PSVersionTable.PSVersion
$output=@{strOutput = '[PowerShell]'}
return $output
}
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