Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

How do I find my helper-wf's name?

$
0
0

Given the simplified scenario. In my real code I have many other inputs for action "logme" which makes it "impossible" to just write the code every time, hence actions and helper workflows.


vCO Action "logme" - contains simple code: 'System.log(workflow.currentWorkflow.name);'
inside
vCO workflow "log-wf" - contains the "logme" action
inside 
vCO workflow "change-config" - changes a configuration element and uses log-wf to log the wf name (well that was the intention, for simplify troubleshooting/know where to look).
inside
vCO workflow "main-wf" - calls on change-config when needed.

What I want is that when I run "main-wf" and it calls on "change-config" the wf-name of "change-config" should be written in the System.log.

I've tried with
- workflow.name => "log-wf"
- workflow.currentWorkflow.name => "log-wf"
- workflow.rootWorkflow.name => "main-wf"

As you can see I'm either getting the "main-wf" wf name or the initial workflow that uses the action. Is there another workflow.?.name "option" I can use? Kinda like "rootChildWorkflow" or something?


Viewing all articles
Browse latest Browse all 6251

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>