VMware Cloud Community
WillianCardoso
Contributor
Contributor

How to view schema running on browser?

Hello everyone,

It's possible to view the schema running on browser? The same way when we view on vRO Client.

Please, only show me the way that I search.

I'm working with VMware Orchestrator 6.0

Cheers!!!

0 Kudos
5 Replies
igaydajiev
VMware Employee
VMware Employee

you can try

https://vcoip:8281/vco/api/workflows/{workflow-id}/schema

it should return .png image with the schema.

according the REST api docs it should be available since 5.5

see https://vcoip:8281/vco/api/docs/resource_Workflow%20Service.html

0 Kudos
WillianCardoso
Contributor
Contributor

igaydajiev,

Thanks for try help me, but It's almost enough. This way, I can see only the image of workflow. My intention was see something like the image of workflow, but running.

My development team builded a frontend app to launch workflows without necessary enter in vCO Client. Now I would like to show the schema (the same way with vCO Client), but not only show the image... but the execution...

I guess it's not possible.

However, thank you very much.

0 Kudos
cdecanini_
VMware Employee
VMware Employee

The workflowToken has a saveSchemaImageToFile method that should return a live view of the running workflow. By calling it several time you can certainly display a close to live update of the workflow.

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
igaydajiev
VMware Employee
VMware Employee

You could also experiment with showDetails=true parameter to workflow execution url (https://vco_ip:8281/vco/api/workflows/{workflow_id}/executions/‌{execution_id}/?showDetails=true

It will return addtional section execution-stack

<?xml version="1.0" encoding="UTF-8"?>
<workflow-execution xmlns="http://www.vmware.com/vco" href="https://localhost:8281/vco/api/workflows/ae4e2a62-f257-4f56-9298-612c511e5f25/executions/8a9be0554f6...">
 
<current-item-display-name>Scriptable task</current-item-display-name>
 
<execution-stack>
 
<workflow-item name="item1" displayName="Scriptable task">
 
<relations>
 
<link href="https://localhost:8281/vco/api/workflows/ae4e2a62-f257-4f56-9298-612c511e5f25/" rel="workflow" />
 
</relations>
 
</workflow-item>
 
</execution-stack>
</workflow-execution>

0 Kudos
paavieira
Contributor
Contributor

cdecanini_‌‌ I'm looking for the "saveSchemaImageToFile" method you've mentioned on the REST API docs, but I just can't find it... Would you mind elaborating on your answer a bit more?

PS: the method described by igaydajiev‌ (GET /workflows/{id}/schema) returns a static representation of the workflow's schema.

0 Kudos