TS: 7.1
WFM: 7.1.0.0 (Build 1264)
I'm fairly new to WFM and still figuring things out, so sorry if this seems a simplistic question.
I have a worfklow that needs to perform 2 deployments - one to a Pre-Prod environment and then one to Prod. I have a configurable deployment scheme where I pass the "level" as a substitution string. I want to use a task variable to act as a flag for the JavaScript in the OD Variable script.
When setting variables I appear to have these options:
- Configurable - accessible through $IW_CV
- Datasource - accessible through $IW_DS
- Script - accessible through $IW_SCRIPT
- System - $IW_HOME, $IW_PORT, etc.
- Hardcoded (not set by any of the above) - how to access?
How can I access the hardcoded variable in my "script" variable below? I have a task variable "deployLevel" hardcoded to "QA" in one task and "Prod" in another.
Code for OD Variable $IW_SCRIPT(level):
if ( "$IW_SERVER" == "devserver" ){
level = "Dev";
}
if ( "$IW_SERVER" == "prodserver" ){
if ( "????(deployLevel)" == "QA" ){
level = "PreProd";
} else {
level = "Prod";
}
}
$IW_CV, $IW_DS or $IW_SCRIPT in place of ???? won't work, so what will?
Thanks,
Mark