Fixes are 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 of BPM Express, Standard and * * Advanced. * **************************************************************** * PROBLEM 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 */}" * **************************************************************** * RECOMMENDATION: * **************************************************************** 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"
Problem conclusion
REST API was fixed to handle map variable types. The fix is available on fix central http://www-933.ibm.com/support/fixcentral/
Temporary fix
Comments
APAR Information
APAR number
JR42095
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-02-28
Closed date
2012-05-02
Last modified date
2012-05-02
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