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
3 replies
Subscribers
6 subscribers
Views
2061 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
I have set up 2 timers on start event of a process model. First timer runs
pallavis
over 9 years ago
I have set up 2 timers on start event of a process model.
First timer runs on 2nd Monday of every month.Second timer should be triggered on 9th day after first email.
I have used an expression rule to get 9 th day after 2nd Monday.But timer is getting triggered wrongly.
e.g In Sept, first email was sent on 14th. As per logic second email should be sent on 23rd Sept. But email got triggered on 19th Sept (19 value was generated in August).
Do we need to republish PM after first timer so that it takes new value for second trigger for every month?
OriginalPostID-168130
OriginalPostID-168130
Discussion posts and replies are publicly visible
0
GouthamKrishna
over 9 years ago
Yes I think, because any changes to timer's settings (like the day, interval, month etc) will require republishing of the process model. In your case you can think of any alternative design, for example, consider having only one timer that runs daily, and then have a gateway sit in the process that decides whether the process continues on that day or not. Let us see if any other suggestions come up.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Stefan Helzle
A Score Level 3
over 9 years ago
AFAIK the expressions for timers of the start event are evaluated once when published. So this will not help you. I would implement it the way gouthamk suggested.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Chris
over 9 years ago
This is correct, using a constant or expression on a start event timer will not cause re-evaluation after the model is published. We handle this by starting the process on a regular schedule, then letting a Rule or Timer node determine when to continue. Alternatively you could have the process start daily, then use a single decision node to determine if the timing is correct to run the process, or end it immediately if not yet satisfied.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel