Created
December 24, 2015 14:39
-
-
Save vmwarecode/0d5dac722396d2761512 to your computer and use it in GitHub Desktop.
How to create Dynamically Populated Drop Downs in Orchestrtator
This file contains hidden or 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
| Action: | |
| input: Location - string | |
| return: array/string | |
| action script; | |
| if (Location == "NY") { | |
| return ["Prod", "Test"]; | |
| } else if (Location == "London") { | |
| return ["Prod", "Dev", "Test"]; | |
| } else { | |
| return ["Unknown"]; | |
| } | |
| ------------- | |
| Workflow: | |
| Input1: Location - string | |
| Input2: Hostname - string | |
| Workflow Presentation tab; | |
| Location - set the property to Predefined Answers, populate the array with London and NY | |
| Hostname - set the property to Predefined list of elements - click the puzzle button on the far right and search for your Action. This will populate a result but it's missing the call for the variable. You'll get an entry like this "GetAction("com.mine","Location").call()" and need to update to something like this "GetAction("com.mine","Location").call( #Location )" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment