Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

Call Workflow to execute Powershell Plugin from Web App

$
0
0

Hi,

 

I'm trying to call the Powershell plugin from a Web App, but having difficulties converting the powerShellHost parameter type from String to the correct vCO type

 

I've followed this post and think I'm close, but can't seem to get the scripting part correct

 

http://www.vcoteam.info/articles/learn-vco/266-making-vco-workflow-wrappers.html

 

I've removed the powershell:powershellHost paramter and replaced it with a String called stringPowershellHost in my input to the workflow. In the visual binding I have stringPowerShellHost "In" and the powerShellHost type "Out".  Then in the scripting task I've got:

 

if (PowerShellHost.name == stringPowerShellHost){  host = stringPowerShellHost
}
system.log("PowerShellHost is " + PowerShellHost.name)

 

 

but its not working -  can anyone advise?


Viewing all articles
Browse latest Browse all 6251

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>