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
9 subscribers
Views
1702 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Hi, When you configure an escalation for a task (ie. 2 days), does it look
garym
over 9 years ago
Hi,
When you configure an escalation for a task (ie. 2 days), does it look at the calendar and base it on working days only or is it just a straight 2 days from the time the task is initiated?
Thanks,
Gary
OriginalPostID-181188
OriginalPostID-181188
Discussion posts and replies are publicly visible
0
TJ
A Score Level 2
over 9 years ago
No, Its depends on # of days from task activation.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
garym
over 9 years ago
Is there any way to configure it so that it takes into account the calendar non-working days?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
TJ
A Score Level 2
over 9 years ago
You may use following steps to do it:
1. Use custom calendar to mark holidays
2. Use following code to calculate non working days and escalation deadline
with(
local!days:fn!enumerate(ri!days)+today(),
local!nonWorkDays:fn!apply(fn!calisworkday,local!days),
local!NWDCount:fn!count(fn!wherecontains(false(),local!nonWorkDays)),
ri!days+local!NWDCount)
3. Currently fn!calIsWorkDay() shall return weekend and non working day. You may use your custom calendar for personalized holidays.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
TJ
A Score Level 2
over 9 years ago
Here ri!days are # of days after which form should be escalated.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
PhilB
A Score Level 1
over 9 years ago
Or you could just use caladddays()...?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
chetany
A Score Level 1
over 9 years ago
caladddays() would be appropriate. It will automatically take into account weekends and non working days. You can even pass the specific calendar you want to use. If you want it to be even more precise use caladdhours() which will exclude non-working hours also.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel