BOM class attribute incorrectly passes the value as undefined

BOM class attribute incorrectly passes the value as undefined

book

Article ID: KB0071250

calendar_today

Updated On:

Products Versions
TIBCO BPM Enterprise (formerly TIBCO ActiveMatrix BPM) 4.3.0, 4.3.1, 4.3.2

Description

While passing the data from BOM class attribute to the data field or a parameter, the BOM class attribute passes an undefined value incorrectly.

In the form, the data field is displayed as undefined - "com.tibco.n2.javascript.Undefined@3cd59d8a".



Also, undefined is seen while printing the data field using log.write in a script -

13 Jul 2023 04:34:49,888 [PVM:DB Process Worker-8] [INFO ] stdout - Value of auth.x_auth_Z = undefined
13 Jul 2023 04:34:49,889 [PVM:DB Process Worker-8] [INFO ] stdout - Value of z_auth = undefined
13 Jul 2023 04:34:49,889 [PVM:DB Process Worker-8] [INFO ] stdout - Value of auth_text = Omkar


Steps to Reproduce this issue:

  1. Create BOM Class with the attribute name "x_auth".
  2. In a business process, read the data using the BOM Class created in step #1
  3. Display the BOM data read in step #2. It will display the value as "com.tibco.n2.javascript.Undefined@3cd59d8a".
Cause: 

The BOM attribute is passing an undefined value because the BOM attribute name used in the BOM class, had an incorrect attribute name. In this example, the problematic BOM class attribute name is of the pattern <single-alphabet>_*.

Any BOM attribute having a naming convention as the below pattern will fail to pass or hold the correct data:
[a-zA-Z]_[A-Z a-z]+

Problematic BOM class attribute name example:
  •  x_amz_date
  • x_auth_z

Issue/Introduction

While passing the data from BOM class attribute to the data field or a parameter, the BOM class attribute passes an undefined value "com.tibco.n2.javascript.Undefined@3cd59d8a" incorrectly.

Environment

All

Resolution

Change the attribute name to follow camel case naming convention with a lowercase first character. 

From the example followed in this article, the problematic BOM class attributes can be changed to:
  • xAmzDate
  • xAuthZ

Additional Information

BOM class and attribute naming convention - https://docs.tibco.com/pub/business-studio-bpm-edition/4.3.0/doc/html/GUID-9234FD02-8307-4572-90CD-A81B8D9406F4.html
Internal case id: 02148444 
Sample test application: passValueTest.zip

Attachments

BOM class attribute incorrectly passes the value as undefined get_app