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
13 replies
Subscribers
9 subscribers
Views
12695 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Creating a Constant
venkannak1
over 7 years ago
Hi All,
Can we create a constant dynamically in the Process model or through any rule?
For Example:
Once process start execution, at particular required point can I create a constant from the output of a process variable?
OriginalPostID-270367
Discussion posts and replies are publicly visible
0
anshuk611
over 7 years ago
AFAIK,you cannot create constant dynamically from process model.You can update value of a constant using Update constant smart service.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
harshav
over 7 years ago
May I know what is the use of creating the constant dynamically, instead write the data into the database, as the number of constants also keeps on increasing per instance.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Durgesh
A Score Level 2
over 7 years ago
What is your use case here? What if you save your data in the database for future reference? Alternately, if you know the result of process instance (like status, milestone etc), you can have one array constant created which will be used/checked against process instance output.
Also, creating a constant through each process instance is not a good approach all together. Please review your use case & provide more information here. thanks.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
venkannak1
over 7 years ago
I am not trying to use this dynamic functionality in regular process models. We have to create more than 3000 constants as per requirement. So instead of creating manually, I am searching for an alternative way through one time use process model.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Durgesh
A Score Level 2
over 7 years ago
Ok, so, even if you find a way of creating these many constants, it will be very difficult to track & maintain these constants in future. One suggestion would be - can you check if you can sort and put values of similar data types into one constant? It will be easy for you to maintain, track & update the constants. Let us know your findings & final approach.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Ashvin Kapur
over 7 years ago
I agree with Durgesh. What's the use case for creating 3000 constants? This does not seem to be a typical "best practices" implementation, but if you clarify the use case, we could potentially provide other, more effective alternatives.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
venkannak1
over 7 years ago
We are looking for maintain internationalization for labels through constants. what could be the best way to handle multiple languages for same label based on locale of loggedinuser()?
We want to create constant for each label like below example in attachment.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Durgesh
A Score Level 2
over 7 years ago
Did you get a way to create these many constants (with dynamic values based on the multi language)? Can you share your experience.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Vinay Kumar Rai
over 7 years ago
Rather than creating a constant you can store all the details into the database table and the data type should be NVARCHAR, so that the Unicode characters can store directly into the database table
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
PhilB
Certified Lead Developer
over 7 years ago
in reply to
venkannak1
Have you reviewed the Application Internationalization documentation here?
docs.appian.com/.../Application_Internationalization.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
>