IBM Support

JR57019: YOU EXPERIENCE PROBLEMS WHEN YOU USE TW.SYSTEM.CALCULATEBUSINESSDATE()

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The tw.system.calculateBusinessDate JavaScript function
    determines an expiration date (in this case, SLA date) based on
    a start date, a time, and a calendar.
    
    For example, if the calendar is (M-T 8: 00-18:00 / F
    8:00-15:00), when Thursday at 16:00 is the starting date of the
    calculation and date requested is 1 business day after, Friday
    at 8:00 is the return date when it should be Monday at 8:00.
    
    This issue occurs with any start time on Thursday after 15:00.
    For example, if the start date and end date of the calculation
    have different hours for the end of day, this issue also occurs.
    
    Therefore, for all requests that start after 15:00 with SLA time
    of X days and beginning X days before Friday,
    tw.system.calculateBusinessDate is miscalculated.
    

Local fix

Problem summary

  • When the JavaScript function 'targetDate =
    calculateBusinessDate( startDate, n, "Day", workSchedule)' is
    evaluated, the returned targetDate might be incorrect in the
    following scenarios:
    
    -When the intermediate result 'startDate + n working days' is
      not within the workSchedule's time schedule. The beginning of
      the next working day is incorrectly used on the interim date
      as final result.
    
    -When the final result is on a holiday. The result is not
      corrected to the beginning of the following working day.
    

Problem conclusion

  • A fix is available for IBM BPM V8.0.1.3 that uses the beginning
    of the next working day as the correct interim result and the
    following working day as the final result if the interim result
    is on a holiday.
    
    On Fix Central (http://www.ibm.com/support/fixcentral), search
    for JR57019:
    
    1. Select IBM Business Process Manager with your edition from
      the product selector, the installed version to the fix pack
      level, and your platform, and then click Continue.
    
    2. Select APAR or SPR, enter JR57019, and click Continue.
    
    When you download fix packages, ensure that you also download
    the readme file for each fix. Review each readme file for
    additional installation instructions and information about the
    fix.
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR57019

  • Reported component name

    BPM ADVANCED

  • Reported component ID

    5725C9400

  • Reported release

    801

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-11-17

  • Closed date

    2017-01-19

  • Last modified date

    2017-01-19

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    BPM STANDARD

  • Fixed component ID

    5725C9500

Applicable component levels

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSFTDH","label":"IBM Business Process Manager Standard"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0.1","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
04 September 2023