cancel
Showing results for 
Search instead for 
Did you mean: 

how to get the forms when processInstans is fininshed?

zhuxj
Champ in-the-making
Champ in-the-making
going to show the history of finished processInstans, but how to get the forms?
"createHistoricDetailQuery().formProperties()" get the form values ,but don‘t have the name of inputs.
2 REPLIES 2

vasile_dirla
Star Contributor
Star Contributor
Hi,
have a look in the org.activiti.engine.impl.cmd.SubmitTaskFormCmd class.
This class is used when you submit some form data for a speciffic task. (see also org.activiti.engine.test.api.form.FormServiceTest / testSubmitTaskFormData())

The engine will take these submitted values and will just save these values. The form management is your application's responsibility.

So if you have to know what is the full list of fields (submitted or not) you have to consult the structure of the form used to create this task submit.

zhuxj
Champ in-the-making
Champ in-the-making
Thanks, i found a way to get the structure of the form.

repositoryService.getBpmnModel("processDefineId").getFlowElement("userTaskSid")

but i have to fill the value by myself, is any method to do this ? just like get a form from running processInstans.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.