Save customized form data

Hi, I wonder if I can use some rest api to save my customized form data or any customized data as resources in the database somewhere.

Regards,
Ziwen

1 Like

Hi,

Yes, have a look on flowable-task implementation of save-form REST endpoint
org.flowable.app.rest.runtime.TaskFormResource#saveTaskForm

Martin

Hi @ziwenzhao,

We had the similar requirement. So by looking at the FormField class,

public class FormField implements Serializable {
private static final long serialVersionUID = 1L;
protected String id;
protected String name;
protected String type;
protected Object value;
protected boolean required;
protected boolean readOnly;
protected boolean overrideId;
protected String placeholder;
protected Map<String, Object> params;

We see a params Map, which can take any Object as value. So we defined our personal key “meta” in the params which itself is a Map and used it to store any extra information related to form. Also, we made some changes in modeler to support it from UI also.

Hope this helps :slight_smile:

Thank You,
Arpit Agrawal

1 Like

Thanks for your example,Arpit.

Regards,
Ziwen