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
2756 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
I am trying to set a timer for an exception flow in a user input task. I am usin
maheshp460
Certified Associate Developer
over 9 years ago
I am trying to set a timer for an exception flow in a user input task. I am using this expression:
tostring(totime(local(now(),timezoneid()))) = pv!scheduleTime. I have played with different values for pv!scheduleTime e.g. "9:15 PM" etc. I have verified this resolve to true in the expression editor but apparently it is not evaluating to same here.
Any pointers?
OriginalPostID-194674
OriginalPostID-194674
Discussion posts and replies are publicly visible
0
fabienb
A Score Level 1
over 9 years ago
Hello, I had a similar issue few days ago. Here is the answer from the Appian Support :
"today() or now() is not a valid trigger in a rule event -- rule events are only triggered off of changes to PVs and constants. It will thus only be triggering based on other elements in the expression for the event. You should be using a daily timer event for a daily check; a timer event on a daily check is very quick and efficient.
You can configure your task with a timer and trigger the exception using:
"Skip this node at the date and time specified by this expression: =pv!targetdate"
Your initial approach is not valid in Appian."
Best regards
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
maheshp460
Certified Associate Developer
over 9 years ago
Hello, appreciate your input. I need to setup this as repeating daily at a certain time.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
maheshp460
Certified Associate Developer
over 9 years ago
I got it working with this expression:
=userdatetime(right(tostring((today())),4),left(tostring((today())),1),extract(tostring((today())),"/","/"),8,45,0)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel