Determine widget data

1
0
-1

Hi, I'm looking to build a form from data pulled from the Bonita Java API 6.2, But I can't seem to find a way of getting information such as the options of a select box, or even know whether a field is a select box, or an editable grid for example. is there any way of getting this information ? Because knowing the java class of a field just isn't enough. Thanks in advance :)

Comments

Submitted by ryan.herbert on Tue, 05/13/2014 - 11:46

The Expression class seems to be the key, but I can only get the defaultValueExpression of and element, and so i can only get the default selected value of a select box. Does anyone have something to add that might help ?

1 answer

1
0
-1

Hi,

Currently, here is no API available to retrieve the data of the forms designed in the studio. A forms.xml is exported in the business archive of your process (.bar) and is used in the web forms module of the portal. So if you don't want to use bonita portal's forms I guess you can read this forms.xml in order to generate your own forms. But be aware that the structure of this XML file may change from one version to another.

Comments

Submitted by ryan.herbert on Tue, 06/10/2014 - 15:19

Hi, unfortunately this is the path we need to take, and we realise the risks of such a method, so we're doing our best to make it modular and maintainable. Thanks for the answer though :)

Notifications