VMware Cloud Community
segadson
Contributor
Contributor

Retrun Status with REST

Hello,

I am currently running workflows using both the REST and SOAP methods from the outside systems.  Since the soap system doesnt have a easy way to get a return status what is the best way to make a return status for a completed or failed workflow.  What I have been trying to do is us the workflow token object but everything I try to use that it always says that the workflow is still running.  Any help will be helpful thanks!

0 Kudos
3 Replies
Burke-
VMware Employee
VMware Employee

Have you been over my article here? http://bit.ly/restvco  -- In it, I review the state of workflow tokens, when I did that, I was getting valid returns.

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
0 Kudos
segadson
Contributor
Contributor

yea but is there a way to make that call within my vCO workflow so I can put the "completed, failed, running" as an output parameter for an outside system?

0 Kudos
Burke-
VMware Employee
VMware Employee

If you are using vCO to make the REST call to another vCO server, then of course - simply write a workflow that wraps the REST operation call, then adjust your output string as desired based on the actual return of the REST call and set that value as a workflow output.

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