Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
10 replies
Subscribers
7 subscribers
Views
5079 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Administration
Is there a function I can use to identify which Appian instance a process is run
paule
over 9 years ago
Is there a function I can use to identify which Appian instance a process is running in - so that we can have different behaviour in test environments from the production environment?
OriginalPostID-204408
OriginalPostID-204408
Discussion posts and replies are publicly visible
Parents
0
PhilB
A Score Level 1
over 9 years ago
We have a rule named along the lines of isDevelopmentEnvironment, which looks something like this:
= with(
local!siteURL: lower(
rule!APN_getSiteUrl()
),
or(
find(
"dev",
local!siteURL
),
find(
"test",
local!siteURL
)
)
)
In case you don't have the Appian common objects installed, the rule APN_getSiteUrl just does extract(linktodocument(0, "doc"), """", "doc/")
Obviously this relies on your environments having some element of the URL that allows you to identify the environment...
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
PhilB
A Score Level 1
over 9 years ago
We have a rule named along the lines of isDevelopmentEnvironment, which looks something like this:
= with(
local!siteURL: lower(
rule!APN_getSiteUrl()
),
or(
find(
"dev",
local!siteURL
),
find(
"test",
local!siteURL
)
)
)
In case you don't have the Appian common objects installed, the rule APN_getSiteUrl just does extract(linktodocument(0, "doc"), """", "doc/")
Obviously this relies on your environments having some element of the URL that allows you to identify the environment...
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data