Get properties from modeler form

Showing results for 
Search instead for 
Did you mean: 
Senior Member

Get properties from modeler form


I need to retrieve the properties of a form from the modeler, but if I use formData.getFormProperties() does not work. Returns the properties of an internal form, not a form for the modeler.

How can I recover and manage these properties or forms fields from the modeler?


<userTask id="sid-568BA090-92A5-46A2-8680-4B2DF7A9D8D6" name="PruebaForm" activiti:assignee="$INITIATOR" activiti:formKey="4004">
<activiti:formProperty id="new_property_1" name="pruebaCampo" type="string"/>
<activiti:formProperty id="new_property_2" name="pruebaCampo2" type="string"/>
<activiti:taskListener event="create" class="com.activiti.extension.tasks.service.ComboBoxTask"/>

I access to activiti:formProperty... but not modeler:form-reference...



2 Replies
Active Member II

Re: Get properties from modeler form

What kind of Activiti are using? Activiti engine stand-alone or embedded in Alfresco?

You should consider using Activiti Community or Alfresco Process Services. This is way easier, because you can access all form properties very easy by just selecting them, but if I recall correctly with Alfresco Content Services and corresponding data model in background, you can put form properties into execution variable like this:


Senior Member

Re: Get properties from modeler form

Is Activiti stand-alone (Activiti Enterprise v1.5.3.6), my problem is add new options in a dropdown (combobox) from Java UserTask.

I access to a userTask form (via serviceForm.getDataForm()) but not a modeler form.