VMware Cloud Community
zdickinson
Expert
Expert
Jump to solution

Wait For Tools Question

Good morning all, I am using the vim3WaitToolsStarted action in a work flow.  My problem is that if the timeout is reached, it just fails and the workflow ends.  On success the workflow can end, but on failure I would like to continue with the workflow.

I tried creating a custom exception in vim3WaitToolsStarted and then having the next step be a decision, but I don't think the exception is getting passed as the Tools step just fails.

Thank you, Zach.

0 Kudos
1 Solution

Accepted Solutions
iiliev
VMware Employee
VMware Employee
Jump to solution

Hi Zach,

When the timeout is reached, vim3WaitToolsStarted just throws an exception. You can try with 'Handle error' element (near the bottom of elements in 'Generic' palette), or write some Javascript code to wrap the call of the vim3WaitToolsStarted action in try .. catch/finally block.

View solution in original post

0 Kudos
2 Replies
iiliev
VMware Employee
VMware Employee
Jump to solution

Hi Zach,

When the timeout is reached, vim3WaitToolsStarted just throws an exception. You can try with 'Handle error' element (near the bottom of elements in 'Generic' palette), or write some Javascript code to wrap the call of the vim3WaitToolsStarted action in try .. catch/finally block.

0 Kudos
zdickinson
Expert
Expert
Jump to solution

That was correct.  I copied it and then at the very end changed the "throw" to a "return".  Then the set exception worked with my decision.  Thank you, Zach.

0 Kudos