Eichenbaum
Contributor
Contributor

3-Way Decision or Repeat Loop

Jump to solution

I'm wondering how to do the following in vCO. in another vendor's orchestration product, this is rather simple to do.

Workflow Step = Run SSH Command

Error code is returned; 0 = success, move on the subsequent workflow step; 3 = failure - fail/exit workflow; other value = wait a bit and re-run SSH command.

I figure II could add a decision after the Run SSH Command and evaluate the errorCode returned for 0 (success) and all else results in failure path. Then I would add another decision on the failure path to again evaluate errorCode returned for 3 (failure path); but it isn't clear HOW TO link the success path back to the initial SSH Command. Setting a counter to only allow this to cycle x number of times (with a wait between cycles) further complicates.

Someone please tell me there's a prebuilt method to accomplish this.

Thanks.


0 Kudos
1 Solution

Accepted Solutions
Burke-
VMware Employee
VMware Employee

You just use multiple decisions.. Here's something I threw together based on the the description of the "return" output... Feel free to modify to suit your needs Smiley Happy

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 vRealize Orchestrator tips and tutorials - @TechnicalValues on Twitter

View solution in original post

0 Kudos
1 Reply
Burke-
VMware Employee
VMware Employee

You just use multiple decisions.. Here's something I threw together based on the the description of the "return" output... Feel free to modify to suit your needs Smiley Happy

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 vRealize Orchestrator tips and tutorials - @TechnicalValues on Twitter

View solution in original post

0 Kudos