Activiti 6 problem rendering form variables

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Member II

Activiti 6 problem rendering form variables

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? 

2 Replies
Highlighted
Member II

Re: Activiti 6 problem rendering form variables

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 

Highlighted
Established Member II

Re: Activiti 6 problem rendering form variables

Hi!

The filelds from form and variables as different thinks. You do need assign fields values to variables.

Regards.