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
6 subscribers
Views
2337 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
I have a PM that is built to run daily at 1pm. I now have a requirement to have
prestonb
over 10 years ago
I have a PM that is built to run daily at 1pm. I now have a requirement to have it run at 5pm as well. I tried using a constant containing a list of times but it is still only running once a day. Any suggestions?...
OriginalPostID-131969
OriginalPostID-131969
Discussion posts and replies are publicly visible
0
Chris
over 10 years ago
Instead of configuring one timer to run twice, you may have better luck configuring a second timer - leave the first set to 1 pm and set the second timer to 5 pm. I don't believe you can set a single timer recurrence value to an array.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
aayusha
Certified Senior Developer
over 10 years ago
This can be done. But not in 1 PM. My method will require 3 PM.
1. - Which will have actual nodes to execute (without any timer on start event).
2. - A PM with timer on start event scheduled for 1300 hrs (Use PM 1 as subprocess)
3. - PM with timer on start event scheduled for 1700 hrs (Use PM 1 as subprocess)
This way you have your code base at one place and executed multiple times. Any change in business can be achieved by doing changes in PM 1.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 10 years ago
Also keep in mind that if you use constants in timers then every time you change the constant you need to republish the model too for the change to be picked up by the model. This is because the timer gets activated at design time after publishing the model creating a snapshot of the current value of the constant.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Chris
over 10 years ago
Thanks Eduardo - that is good to know. To clarify, is this for all timers or is that limited to start event timers?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Chris
over 10 years ago
Also, Eduardo, are there any other situations where constants do not get updated without a model republish?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
prestonb
over 10 years ago
Eduardo, thanks for that information. I didn't realize that.
For now I added a second timer. If the users request a third instance, I'll use Aayush's approach. Thanks for the input!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel