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
5 replies
Subscribers
8 subscribers
Views
2532 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
I'm having a problem with timer event..Before it works well but now it actin
Jess
over 11 years ago
I'm having a problem with timer event..Before it works well but now it acting weird. Here's the condition i used for the timer event: or(and(pv!scheduledDate-1=todate(now()),totime(text(now(),"hh:mm AM/PM"))>=cons!CONS_CutOffTime),and(pv!status="Reassigned to Contractor/Team",pv!scheduledDate=todate(now())))
The problem is that,let's say i started a task and its 11:00AM; the cons!cutofftime is 11:30AM - i supposed that if the current time reached 11:30AM, the timer event should execute right?but why is that it won't kick off? but if i create the task @11:31, the timer will kick off? What should be the problem?...
OriginalPostID-73787
OriginalPostID-73787
Discussion posts and replies are publicly visible
0
Jess
over 11 years ago
anyone who had encountered this issue?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Sanjay
over 11 years ago
Hi Jessica,
Timer events normally expect time/datetime/date. The posted expression evaluates to a boolean. Is it being used on a rule event or on a task exception rule?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Jess
over 11 years ago
i used a timer node and under setup i choose dalay for 0 minutes after activation of the timer event and at the lower part i add an expression rule which contains the above expression. I assume that it will still evaluate the condition set and when its true the timer will kick off?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Sanjay
over 11 years ago
I realize "Show Advanced Options" at the bottom enables Timer Conditions to be set. When Timer is active, unless there is a change in PV values, it may not evaluate expression continuously. Try setting
Timer Recurrence > At an interval > Every 5 minutes
That should make it evaluate the expression every 5 mins and kick-off as soon as condition met. Might need another flag to disable/enable timer depending on when you want to turn it off.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Jess
over 11 years ago
thanks for your suggestion i'll try it first then let you know it this works.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel