cancel
Showing results for 
Search instead for 
Did you mean: 

DataGrid in start form

alexbt
Champ in-the-making
Champ in-the-making
Hello The Activiti Team.

I have a question regarding the way to use DataGrid in the process start form that is externally rendered.
My process has about 11 parameters, some of them are a must and others may vary from process to process.
3 of them are separate ones that can be displayed as separate fields in the form.
3-4 parameters must be represented as Map<String, String> and displayed as GridData.
Other 3-4 parameters must be also represented as another Map<String, String> and displayed as another GridData.
As far as I see from your documentation, in FormProperty and FormType classes there is no support for displaying Java Maps.
Can you advise me on the way to overcome the limitation? I can't just split the maps into separated fields, as I don't know in advance the number of key-value pairs that a process will need.

Regards,
Alex
4 REPLIES 4

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
Can you advise me on the way to overcome the limitation?
Create your own forms in whatever ui technology you choose is always an option

alexbt
Champ in-the-making
Champ in-the-making
Ronald,

It's clear that I can create a form in whatever UI technology I want.
My question is about mapping UI DataGrid to Map. I need to overcome the limitation of FormProperty that doesn't support Map. 
There are BooleanFormType, StringFormType, DateFormType, EnumFormType, LongFormType, but no MapFormType for describing table like fields in the UI form, where a single logical field is represented by 2 UI fields holding (as field value) property name and value correspondingly.
You even may consider it a feature request. I think many people may need such functionality.

Thanks in advance,
Alex

trademak
Star Contributor
Star Contributor
Hi Alex,

What Ronald means is that you can define your own Form types quite easily.
So adding a MapFormType would also not be too hard.
But you can of course also ask for adding this as a new feature in JIRA.

Best regards,

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
Sorry, for not stating it clearly enough, but we do not use the form properties either. We fully define forms separate from the flow. Activiti is a great workflow engine, but other technologies are better for creating forms.