¿Can I pass a complex data to a Custom Widget? for example a B D M(Bussines Data Model)

Hi all

I am a newbie at Bonita 7.2, my problem is: I have created a custom widget that is a Modal Panel or Pop-up to fill in some data from a BDM called communications and then save it in a BDM, the problem is that the parameters or properties you pass to a Custom Widget, only can be one of a reduced set of types, for example:
text
choice
html
integer
boolean
collection

And there is no way of passing my BDM, the only way that I see is to pass the different fields of the BDN individually one by one to the Custom widget, but it is a little tricky a tedious.
Is there any different way of doing it?
Of course I need a bidirectional propertie.
Thanks.

Any assistance would be greatly appreciated.

Kind regards,
Héctor

You can pass a bdm variable to a widget.
I use text to past it, the controller know that him is not a string and take it as a object, later you can use it like a object.

{{properties.bdmObject.persistenceId}} in the html template

$scope.properties.bdmObject.persistenceId in the controller