Activiti 6 problem rendering form variables

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2017 09:50 AM
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?
- Labels:
-
Alfresco Process Services

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2017 10:28 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2017 10:26 AM
Hi!
The filelds from form and variables as different thinks. You do need assign fields values to variables.
Regards.
