Using Flowable 6.4.0 (also applies to Activiti 6.0.0) I am rendering task form in my application by reading task form properties:
for (FormProperty formProperty : formService.getTaskFormData(taskId).getFormProperties()) {
//... render form field
}
I would like to replace this with Forms that can be designed in form designer and are set on task as formKey (also formReference, seems formReference is web app feature to select form to set formKey and deploy form to app). Problem is I do not see any API method to read form properties based on form key.
Reading answers in this question using formKey is correct way since task form properties are "deprecated", but is there API support for reading form fields for given formKey
? Something like formService.getFormData(formKey, taskId).getFormProperties();
?
Documentation (Flowable, Activiti) talks only about reading deployed form resource file my-custom-form.xml
, does that mean I have to parse form file myself? I also checked Flowable Form Documentation and Sources but I do not see how to read form fields.