Bonita 7.0: How to use the value of a complex variable in a form built with UI designer ???

1
0
-1

Hello

I am trying to convert a 6.5 form to the new system in order to manage manually the behaviour and the data of a grid, since it does not work well in 6.5 with some browsers.

However it seems that it is even harder and less usable in 7.0 than in 6.5.

I have a few complex variables (contact, ...) that I can manage easily using Java methods in 6.5 (getXxxx, setXxxx, etc.). There is nothing like that in 7.0. After reading some variable related questions, I understood that maybe I could access a process variable value with an URL such as /bonita/API/bpm/caseVariable/(case)/(variable) but for complex variable one get only the STRING representation of the variable (toString()) whatever it is.

This is not usable for this quite simple usage.

My need with 6.5 was to edit a list of complex values through a table (editable grid). I could fill an HTML table and use a widget to manage the user interface, but I can't see how to retrieve the data from my list.

What do to in both cases (one complex variable, a list of variables) to display the data in the form ?

Thank you

3 answers

1
+1
-1

Hi,

Alternatively, you can convert your complex type into JSON and store this JSON representation in a process variable (as a String). Then, you can retrieve it in the form using the API and convert it to a JavaScript object you can bind to any properties of your widgets.

Hope this helps

Quentin

1
0
-1

Hello Charles,

Ok thank you for the explanation.

This means that I should not plan to move to version 7 till I am ready to change the design of the process data completely from scratch. This is a huge change and I cannot in any way do that in the near future.

In version 6, we had no business data, but the ability to manage our own data structure through additional jars and connectors. In version 7, we have business data, but we completely lost the possibility to integrate our business code. I am not sure at all that the business data feature will be flexible and open enough for specific data management.

I am afraid that many community users will also have this kind of problem, excepted for those with extremely basic data structure.

Thank you Michel

1
0
-1

Hello,

unfortunately there is no easy way to do this. Complex data in processes are Java based and the brand new UI Designer is a full front end technology. You should envisage moving fro Complex Type to business data feature so that you can leverage all the tooling.

Hope this helps, Charles

Notifications