IBM Support

JR51738: REST APIS CANNOT HANDLE A JSON VALUE FOR A VARIABLE OF TYPE MAP

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The following REST APIs return the error “CWTBG0535E: Property
    'key1' could not be set on a variable of class 'Map'.” if a JSON
    object such as ä“key1”:”value1”,”key2”,”value2”ü is specified
    for a variable of type Map as part of the request data:
    
    - Start Process (/rest/bpm/wle/v1/process?action=start)
    - Set Task Data (/rest/bpm/wle/v1/task/ätaskIdü?action=setData)
    - Finish Task (/rest/bpm/wle/v1/task/ätaskIdü?action=finish)
    

Local fix

Problem summary

  • JSON input data is converted correctly only if the variable is
    persisted as an instance of class TWObject. The conversion fails
    if the variable is persisted as an instance of a complex java
    type like java.util.Map.
    

Problem conclusion

  • A fix is/will be available that allows you to pass an input
    parameter of type Map for REST APIs.
    
    On Fix Central (http://www.ibm.com/support/fixcentral), search
    for JR51738:
    
    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 JR51738, 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

  • Not applicable
    

Comments

APAR Information

  • APAR number

    JR51738

  • Reported component name

    BPM ADVANCED

  • Reported component ID

    5725C9400

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2014-11-06

  • Closed date

    2015-01-12

  • Last modified date

    2015-01-12

  • 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

  • R850 PSY

       UP

  • R855 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSFTDH","label":"IBM Business Process Manager Standard"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.5","Edition":"","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
12 January 2015