I have a bmp model in which I have defined some form properties in it. I have used "Acitivi Editor" to do this. A section of the bpm file is this
<activiti:formProperty id="status" name="status" type="string"></activiti:formProperty>
<activiti:formProperty id="amount" name="amount" type="string"></activiti:formProperty>
<activiti:formProperty id="file" name="file" type="string"></activiti:formProperty>
When I use the activiti-app to deploy this model to an app and run it from there the forms that are being created from the tool don't contain these form elements.
When I explore the process from the Activiti Admin I can see that variables exist for the tasks.
So the main problem is the no rendering of the form variables.
I find that same behavour has the REST API. E.g. when I call the method /runtime/tasks/{taskid} I get a JSON response with the variables key empty.
The only way to get the variables of the task is using java api and method
FormData formData = formService.getTaskFormData(task.getId());
Could you help on this?
I found this in the middle
Activiti 6 UI - built-in form rendering which explains somehow the behaviour. Is there any way then to get the form definition from the new forms using the REST API? The form/form-data?taskId={taskid} returns the OLD form properties
Hi!
The filelds from form and variables as different thinks. You do need assign fields values to variables.
Regards.
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.