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
6 replies
Subscribers
7 subscribers
Views
2056 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
I need to read a SERVER_AND_PORT from the custom.property file. let me know how
Sumeet Khare
over 11 years ago
I need to read a SERVER_AND_PORT from the custom.property file. let me know how to do that?...
OriginalPostID-72419
OriginalPostID-72419
Discussion posts and replies are publicly visible
0
Eduardo Fuentes
Appian Employee
over 11 years ago
You can create a custom function that returns the following:
ConfigurationLoader.getConfiguration().getServerAndPort();
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
moritzw
over 11 years ago
I am using
=extract(linktodocument(0, "doc"), """", "doc/")
to get the currently configured base url.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
jorgea272
over 11 years ago
I keep them in a constants and leverage a rule to build URLs.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Sumeet Khare
over 11 years ago
What if I need to see whether the given environment is production or development? As I need to create some different folder based on the environments.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 11 years ago
Any of these solutions will apply to this other requirement. Usually DEV environments have a different URL such as "
myappiandev.appiancloud.com"
in that case you can use any of the suggested approaches (mine, Jorge's, Moritz's) and parse the returned value in a gateway (e.g. XOR) and configure it with a condition of type: if the URL matches/contains DEV then take this path in the model, otherwise take another path
To parse the URL you can use the find() function
forum.appian.com/.../Text_Functions
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Sumeet Khare
over 11 years ago
in our case, the url is not specifing whether the url is related to development or production
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel