Initializing help system before first use

getdmplifecycleenv

Purpose
Gets the DMP lifecycle environment of the component instance executing this model, or converts an environment name into one of the constant values.
Synopsis
function getdmplifecycleenv:string
function getdmplifecycleenv(env:text):string
Argument
env 
The environment name to convert.
Return value
One of the constant values DMP_ENV_DESIGN, DMP_ENV_STAGING and DMP_ENV_PRODUCTION, or an empty string if the value of the env parameter was unrecognzed.
Further information
1. When called with no argument, returns the current DMP lifecycle environment.
2. When called with a text parameter, will attempt to convert that parameter into one of the constant strings the dmp library uses to represent environments. This can be useful when parsing environment strings returned by DMP webservice APIs.
3. If the supplied text parameter is not recognized, or an empty string, this function will return an empty string.
4. When called without an argument when not running within DMP, this function will fail with a runtime error if it was called from an Insight 5 app. Use isdmp to check if the model is running in a DMP component.

© 2001-2024 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.