AnsweredAssumed Answered

Not able to get values of Enum property

Question asked by bhupendra1 on Oct 19, 2012
Latest reply on Oct 22, 2012 by frederikheremans1
We have a got a Task form associated with the task.
The form has enum type field as

<activiti:formProperty id="cpApproved" name="Approve Contractor proposal" type="enum" required="false" readable="true" writable="true">
<activiti:value id="yes" name="Yes"></activiti:value>
<activiti:value id="no" name="No"></activiti:value>

In the listner associated with this task, we are getting form values as below:

TaskFormData taskFormdata =new GetTaskFormCmd(task.getId()).execute( Context.getCommandContext() );
List<FormProperty> formList= taskFormdata.getFormProperties();

And finaly getting values as


While it returns values for other fields like date, string correctly, it returns the value of enum field as null. Please suggest how should be value of selected enum value should be fetched.