Skip to Content (Press Enter)
Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Home
Jobs
Ideas
Members
Mentorship
User Groups
Tools
Tools
ODC
O11
Platforms
OutSystems.com
Personal Edition
Community
Resources
Support
Search in OutSystems
Log in
Get Started
Community
›
Forge
›
Assets list
›
Environment Info
Environment Info
Stable version
1.1.0
(Compatible with
OutSystems 11
)
Uploaded
on
4 Jan (3 days ago)
by
5.0
(4 ratings)
Overview
Reviews
Versions
Documentation
Support
Environment Info
Documentation
1.1.0
Draft
Environment Info
is a utility extension for OutSystems that provides runtime introspection capabilities. It allows applications to retrieve critical environment details, such as server modes (e.g., Development vs. Production) and DNS hostnames, by interfacing directly with the
OutSystems.HubEdition.RuntimePlatform
APIs.
Features
Environment Detection:
Identify if the code is running in a Production or a non Production environment.
Dynamic Mode Listing:
Retrieve a complete list of valid server modes supported by the platform.
Hostname Resolution:
Access the configured default DNS name for the environment.
Environment Information:
Know the name and the key identifier of the environment.
Server Actions
IsProductionEnvironment
Performs a quick boolean check to determine if the current environment is
Production.
Returns
true
for Production;
false
for all other modes (Development, Non-Production, Management, etc.).
GetEnvironmentServerMode
Retrieves the specific configuration of the currently running environment.
Accesses the active
AppInfo
to return the current environment's mode
ID
and
Name
.
GetEnvironmentServerModes
Retrieves a complete list of all server modes supported by the OutSystems platform.
Iterates through the internal
ServerModes
enum to generate a dynamic list of valid modes. This ensures the list is always up-to-date with the platform version.
GetEnvironmentHostname
Retrieves the default DNS hostname configured for the environment.
Uses
EspaceProperties
to fetch the
DefaultDnsName
. This is effective even in background contexts (Timers, BPT) where an HTTP context might not be available.
GetEnvironmentKey
Retrieves the key of the current running environment.
GetEnvironmentName
Retrieves the name of the current running environment.
Technical Dependencies
OutSystems.HubEdition.RuntimePlatform
Provides
AppInfo
for current runtime data and
ServerModes
enum for mode definitions.
1.0.0
Draft
Environment Info
is a utility extension for OutSystems that provides runtime introspection capabilities. It allows applications to retrieve critical environment details, such as server modes (e.g., Development vs. Production) and DNS hostnames, by interfacing directly with the
OutSystems.HubEdition.RuntimePlatform
APIs.
Features
Environment Detection:
Identify if the code is running in a Production or a non Production environment.
Dynamic Mode Listing:
Retrieve a complete list of valid server modes supported by the platform.
Hostname Resolution:
Access the configured default DNS name for the environment.
Server Actions
IsProductionEnvironment
Performs a quick boolean check to determine if the current environment is
Production.
Returns
true
for Production;
false
for all other modes (Development, Non-Production, Management, etc.).
GetEnvironmentServerMode
Retrieves the specific configuration of the currently running environment.
Accesses the active
AppInfo
to return the current environment's mode
ID
and
Name
.
GetEnvironmentServerModes
Retrieves a complete list of all server modes supported by the OutSystems platform.
Iterates through the internal
ServerModes
enum to generate a dynamic list of valid modes. This ensures the list is always up-to-date with the platform version.
GetEnvironmentHostname
Retrieves the default DNS hostname configured for the environment.
Uses
EspaceProperties
to fetch the
DefaultDnsName
. This is effective even in background contexts (Timers, BPT) where an HTTP context might not be available.
Technical Dependencies
OutSystems.HubEdition.RuntimePlatform
Provides
AppInfo
for current runtime data and
ServerModes
enum for mode definitions.
Loading
Loading...