atfrys
Hot Shot
Hot Shot

Printing out the workflow version

Jump to solution

I am trying to use System.log(workflow.version) to print out the workflow version and am getting undefined as a response.  I know this is a valid call since its in API explorer.  workflod.name and ID work though.

Thank you

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
iiliev
VMware Employee
VMware Employee

Another option is workflow.currentWorkflow.version

Usually rootWorkflow and currentWorkflow are pointing to the same workflow, but may differ if your workflow contains nested workflows.

View solution in original post

0 Kudos
3 Replies
cdecanini_
VMware Employee
VMware Employee

Try workflow.rootWorkflow.version

Worflow is of type worflowToken, not workflow

Le 14 mai 2014 à 19:24, "atfrys" <communities-emailer@vmware.com<mailto:communities-emailer@vmware.com>> a écrit :

VMware Communities<https://communities.vmware.com/index.jspa>

Printing out the workflow version

created by atfrys<https://communities.vmware.com/people/atfrys> in Orchestrator - View the full discussion<https://communities.vmware.com/message/2380256#2380256>

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

Another option is workflow.currentWorkflow.version

Usually rootWorkflow and currentWorkflow are pointing to the same workflow, but may differ if your workflow contains nested workflows.

0 Kudos
atfrys
Hot Shot
Hot Shot

That worked like a champ.  How did you come across the .currentworkflow attribute?  I am trying to fish for my self in the API explorer.

Thank you

0 Kudos