If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Runtime Variable Pass Through

Started by mwilliams, 07 May 2012 02:50:17 PM

Previous topic - Next topic

mwilliams

Within a JobStream, I have a Fact Build Node, then a Condition Node, then a Email Failure Node.  The Fact Build runs, the Condition checks for True/False, and the Email runs if the condition is False. 

Within the email node, I have a few variables.  However, I cannot seem to use, or figure out how to use, any Runtime Variables from the Fact Build Node.  Specifically, I want to use the DS_BUILD_NAME variable from the Fact Build Node within the Email Node, as I don't want to hard code the Fact Build Node for 50+ Jobs.

Any insight will be greatly appreciated.

MFGF

Hi,

The DS_BUILD_NAME variable is only valid while the build is running. Once it finishes, you will not be able to use that variable, because it is out of scope. If I were you, I would define a variable in the Jobstream, and have your build populate the jobstream variable with the contents of DS_BUILD_NAME. The jobstream variable stays in scope for the duration of your jobstream, so you will be able to interrogate it from your email node.

Regards,

MF.
Meep!

mwilliams

MFGF, thanks for your insight.  Sorry for not responding sooner, but work can get in the way. 

I have to setup a couple variables manually when creating a new job, so I simply added one more, and manually put the job name in.  Your suggestion worked perfectly. 

Thank you.