bpm:getAbsoluteDurationFromBusinessCalendar function does not return expected duration (Doc ID 2258798.1)

Last updated on SEPTEMBER 18, 2017

Applies to:

Oracle Business Process Management Suite - Version 12.2.1.2.0 and later
Information in this document applies to any platform.

Symptoms

The bpm:getAbsoluteDurationFromBusinessCalendar function does not returns expected duration.

For example:

1. Create a business calendar and name it "IndiaCalendar". Select the timezone as (GMT+5:30). Define the Start Time and Finish Time as 8:00 -12:00 and 13:00-17:00.
2. Create a BPM Process and use this method in the script task: bpm:getAbsoluteDurationFromBusinessCalendar(xp20:current-dateTime(), 'PT2H', 'IndiaCalendar')
3. At 9:00 in India time zone it is expected to return PY0M0D0T2H0M0.000S but instead it returns PY0M0D0T10H0M0.000S

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms