Table of Contents

Search

  1. Preface
  2. Overview, Downloading, and Installing
  3. Administration API
  4. Identity Service API
  5. Screenflow Programming and SDK
  6. ActiveVOS WSHT API
  7. Embedding Request Forms in Standalone Web Pages
  8. XML-JSON for Process Central

7. APIs, SDKs, and Services

7. APIs, SDKs, and Services

Setting Business Days in a Calendar

Setting Business Days in a Calendar

When setting a dates, you may want your users to set date intervals using business days rather than normal calendar days. While Guide Designer does understand that a business week differs from a normal week in that it only has five days, it doesn't know what holidays your company offers. Set your company's holidays using a
HolidayCalendar
element. Here's an example:
<HolidayCalendar xmlns="http://schemas.active-endpoints.com/appmodules/screenflow/2012/12/avosHostCalendar.xsd"> <WeekendDay name="Saturday" dayOfWeek="Saturday" endDate=""/> <WeekendDay name="Sunday" dayOfWeek="Sunday"/> <AnnualMonthDayHoliday name="New Year's Day" month="January" day="1" weekendMoveToNext="Monday"/> <AnnualDayOfWeekInMonthHoliday name="President's Day" month="February" dayOfWeek="Monday" occurance="Third"/> <AnnualDayOfWeekInMonthHoliday name="Memorial Day" month="May" dayOfWeek="Monday" occurance="Last"/> <AnnualMonthDayHoliday name="Independence Day" month="July" day="4" weekendMoveToNext="Monday"/> <SpecificDateHoliday name="Day After Independence Day" startDate="2013-07-05"/> <AnnualDayOfWeekInMonthHoliday name="Labor Day" month="September" dayOfWeek="Monday" occurance="First"/> <AnnualDayOfWeekInMonthHoliday name="Columbus Day" month="October" dayOfWeek="Monday" occurance="Second"/> <AnnualDayOfWeekInMonthHoliday name="Thanksgiving" month="November" dayOfWeek="Thursday" occurance="Fourth"/> <AnnualDayOfWeekInMonthHoliday name="Day After Thanksgiving" month="November" dayOfWeek="Friday" occurance="Fourth"/> <AnnualMonthDayHoliday name="Christmas Day" month="December" day="25"/> </HolidayCalendar>
Notice the
avosHostCalendar.xsd
namespace. If this isn't declared, Guide Designer will not know that this is a calendar file.
After you deploy your XML file, Guide Designer will understand your company's holidays.