A fix is available
APAR status
Closed as program error.
Error description
The REST API is not handling the Map variable type when this type belongs to another data type. In other words, say that a complex data object [in BPM] was defined to have as one one of its members a Map object, then the REST API fails parsing this object (i.e., it does not create the corresponding JSON representation for the object). Instead of parsing the Map object, BPM is returning an error message to the clients. "map":null /* ERROR: 1 Unsupported type java.util.HashMap */}" Steps to reproduce: 1. Define a business object with a variable of the type of Map 2. Define a process definition containing a variable at the process level of the business object type from step 1. In some initialize block, set some values on the Map variable 3. Start the process 4. Invoke REST API: .../rest/bpm/wle/v1/process/${instanceId} 5 Observe the response containing an error with the following explanation: "Unsupported type java.util.HashMap"
Local fix
n/a
Problem summary
**************************************************************** * USERS AFFECTED: Users using REST API with business objects * * of type Map. * **************************************************************** * PROBLEM DESCRIPTION: REST API is not handling the Map * * object correctly and returns an error. * **************************************************************** * RECOMMENDATION: * **************************************************************** When invoking a process using REST API which contains a Map object, an error is seen in the response. A similar error will be thrown:""map":null /* ERROR: 1 Unsupported type java.util.HashMap */}" The Map object is not parsed properly and the corresponding JSON representation for the object is not created.
Problem conclusion
Code changes have been made to parse the Map object properly and the correct response is returned. An interim fix is available for v7.5.1.1 and code changes will be integrated into the next fix pack.
Temporary fix
Comments
APAR Information
APAR number
JR44513
Reported component name
BPM ADVANCED
Reported component ID
5725C9400
Reported release
751
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2012-10-24
Closed date
2012-12-31
Last modified date
2012-12-31
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 ADVANCED
Fixed component ID
5725C9400
Applicable component levels
R750 PSY
UP
[{"Line of Business":{"code":"LOB45","label":"Automation"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSFTN5","label":"IBM Business Process Manager Advanced"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.5.1"}]
Document Information
Modified date:
07 October 2021