VMware Cloud Community
sawakine
Enthusiast
Enthusiast
Jump to solution

How to use the "Custom decision" and "decesion activity" ?

Hello there

Thanks for all what you're doing in this community, I got so much help here to use vCO.

I am trying to create some workflow that based in the decision of the user it calls another workflow. In other words the user has to chose between two choices (= two workflows to run).

Here is picture that shows what I am trying to do.

decision.JPG

If the user said "Linux" for example, it is gonna be the workflow of "create linux VMs with single nic from template" that would be run, if the user said windows it is gonna be the other workflow that would be run.

So my questions are :

Is there any other method more simple ?

How can I use the "custom decision" so that the user had to answer a question before starting to fill the parameters of the workflows ? what should it have in the "in parameters" ?

Thanks!

0 Kudos
1 Solution

Accepted Solutions
cdecanini_
VMware Employee
VMware Employee
Jump to solution

If you need different inputs for the 2 workflows to appear just for one choice of the operating System you can edit the field presentation property and use the Show / Hide property and set it to #operatingSystem == "Windows"

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter

View solution in original post

0 Kudos
3 Replies
cdecanini_
VMware Employee
VMware Employee
Jump to solution

You will typically create a string workflow input "operatingSystem" and set in the presentation tab a property "Predefined answers" set with Linux and Windows string then use this as the input of your custom decision and do

if (operatingSystem == "Linux") return true;

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter
sawakine
Enthusiast
Enthusiast
Jump to solution

Thank you!

That's exactly what I was trying to do but the problem is that I don't know how to seperate the "operatingSystem' input from the inputs of the other two workflows. When I run my workflow what appears is the window with all the inputs to be filled, but What I am trying to do is having two windows that would appear, one so that the user can choose what operatingSystems he wants and based on this choice another window with the inputs of (Linx workflows or Windows workflow) would appear. I don't know if it is possible to process like this ?

0 Kudos
cdecanini_
VMware Employee
VMware Employee
Jump to solution

If you need different inputs for the 2 workflows to appear just for one choice of the operating System you can edit the field presentation property and use the Show / Hide property and set it to #operatingSystem == "Windows"

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter
0 Kudos