AnsweredAssumed Answered

FormService.getTaskFormData return empty FormProperty LIst

Question asked by campa on Jun 10, 2011
Latest reply on Jun 10, 2011 by campa
I'm trying to retrieve the list of FormProperty of a defined form in process definition, here the part of the code I'm using:

                Task selectMedia = taskService.createTaskQuery().singleResult();
      Assert.assertEquals("selectMedia", selectMedia.getName());
      TaskFormData selectMediaForm = formService.getTaskFormData(selectMedia.getId());
      List<FormProperty> formFields = selectMediaForm.getFormProperties();

I obtain the the formFields is always empty, however the task is correct and have e form definition as below:

   <startEvent id="startevent1" name="Start"></startEvent>
    <userTask id="selectMedia" name="selectMedia" activiti:candidateGroups="ControlloCrediti.solleciti" activiti:formKey="ControlloCrediti.solleciti">
        <activiti:formProperty id="media" name="Media" type="string" required="true" readable="false" writable="true"></activiti:formProperty>

Do you see my error ?
Any Ideas ?
Thx in advance