Mostrar datos de una variable de procesos de tipo List en una tabla en el UI Designer

1
0
-1

Buenos Dias estoy utilizando la herramienta Bonita BPM 7.1.3 Community para mi tesis de grado en Ingenería Informática
Me esta dando el siguiente problema no logro mostrar los datos obtenidos de la BD guardados en una variable de procesos de tipo List en una tabla en el UI Designer.
Utilizo para ello el API ../API/bpm/activityVariable/{{taskId}}/nombre_variable_proceso_tipoList

Le agradezco mucho si me pueden ayudar o me pueden recomendar otra vía por la que me puedo guiar para mostrar datos obtenidos de la BD en una Tabla.

Comments

Submitted by fzapata_1367109 on Thu, 05/03/2018 - 17:17

Buenos dias tengo el mismo problema. usando ../API/bpm/activityVariable/{{taskId}}/nombre_variable_proceso_tipoList cuento con una variable en el UI Designer para asociarla a un widget de tabla, pero no logro definir correctamente el column keys del widget, para que se muestre correctamente en la tabla.

Submitted by szapatag_1349039 on Tue, 06/05/2018 - 22:49

Hola

Estoy igual que fzapata_1367109, si has logrado hacer algo desde entonces agradezco lo aportes. No me dejo hacer un comentario.

quedo atento y muchas gracias

Submitted by yuniet_1384540 on Fri, 04/12/2019 - 17:59

tengo el mismo problema con el 7.8.0 community, alguna idea

1 answer

1
0
-1

Sorry I'll provide an answer in English but I think might still be helpful.

In Bonita, process variable are Java objects. The storage of the data will depend of the data type.

Integer, Long, Boolean, Float, Double, String (shorter than 255 characters) are stored in a table with appropriate SQL type. For those data types you can get a usable value when accessing the information using REST API.

Complex data type such as List will be stored using Java serialization as BLOB in the database. If you try to access such data using REST API you will get the serialized information. As you will get this in the web browser environment you will not be able to use Java deserialization and data will not be usable.

So my recommendation and the easiest solution is to always use Bonita BDM feature. BDM let you define in one single, easy to use interface both the database tables (structured, it won't use Java serialization) and the Java classes. Moreover it provides API out of the box that will give you the business variables value using JSON. JSON can be easily used in Bonita forms and pages to define form variables values and then those values can be displayed in forms widgets.

Notifications