IBM Support

JR55986: YOU RECEIVE THE CWTBG0570 ERROR WHEN YOU TRY TO INVOKE JAVASCRIPT API FUNCTIONS TO ACCESSING TWTASK DATE INFORMATION

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • You can use the JavaScript API to retrieve the task object from
    the database. This API contains multiple date fields that are
    accessible, such as startDate, activationTime, completionTime,
    or atRiskDate. These properties are implemented as objects of
    type TWDate, an object that, in turn, provides several
    JavaScript API functions. Invoking those API functions result in
    the following error:
    
    CWTBG0570E: A 'start' action could not be performed due to
    [<358message:Runtime error in script ("TypeError"
    4:-1).TypeError: Cannot find function getDate in object Mon Jun
    06 13:52:29 CEST 2016. (<JSScript>#4)
    
    The error does not occur for the dueDate field.
    

Local fix

  • In IBM Process Designer, create a local variable of type Date
    and initialize it with the value from the task. You can then use
    the local variable for accessing the JavaScript APIs for the
    date fields.
    

Problem summary

  • This issue occurs because the TWDate objects are not created in
    the correct scope.
    

Problem conclusion

  • A fix will be included in  IBM BPM V8.5.7 cumulative fix 2016.06
    that creates the TWDate objects in the correct scope so that the
    underlying functions are accessible.
    
    To determine whether the cumulative fix is available and
    download it if it is, complete the following steps on Fix
    Central:
    
    1. On the Select product tab, select WebSphere as the product
      group, IBM Business Process Manager with your edition from the
      WebSphere options, All as the installed version, and All as
      the platform, and then click Continue.
    
    2. In the Text field, enter "cumulative fix?, and click
      Continue.
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR55986

  • Reported component name

    BPM ADVANCED

  • Reported component ID

    5725C9400

  • Reported release

    856

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-05-25

  • Closed date

    2016-07-08

  • Last modified date

    2016-07-08

  • 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":"856","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
04 September 2023