cancel
Showing results for 
Search instead for 
Did you mean: 

Activiti Rest Api for Form properties

chandraprabha
Champ in-the-making
Champ in-the-making
Hi All,

I am using below rest api to read the form properties  but  i am getting enumValues: [0] .Kindly let me know how i can get back enumValues

http://localhost:9080/activiti-rest/service/form/form-data?taskId=95010

Thanks,
Chandra
4 REPLIES 4

chandraprabha
Champ in-the-making
Champ in-the-making
I am stuck can some please suggest the options.

vasile_dirla
Star Contributor
Star Contributor
please provide a unit test, then all the community members will use it in order to understand, investigate and help.

chandraprabha
Champ in-the-making
Champ in-the-making
I have a user task defined as below
    <userTask id="Reviewed" name="Reviewed">
      <extensionElements>
        <activiti:formProperty id="outgoing" name="outgoing flow" type="enum" required="true">
          <activiti:value id="Rejected" name="Rejected"></activiti:value>
          <activiti:value id="Payment" name="Payment"></activiti:value>
          <activiti:value id="FinalReview" name="FinalReview"></activiti:value>
        </activiti:formProperty>
      </extensionElements>
    </userTask>

I am now using REST Api to get the form properties associate with user task which return the form property but does not return enum

http://localhost:9080/activiti-rest/service/form/form-data?taskId=95010

which returns

{
formKey: null
deploymentId: "49503"
processDefinitionId: null
processDefinitionUrl: null
taskId: "51221"
taskUrl: "http://cdlcapssdgwas.es.ad.adp.com/activiti-rest/service/runtime/tasks/51221"
formProperties: [1]
0:  {
id: "outgoing"
name: "outgoing flow"
type: "enum"
value: null
readable: true
writable: true
required: true
datePattern: null
enumValues: [0]
}


I am using form properties to send input to a decision task

trademak
Star Contributor
Star Contributor
This sounds like a bug. Can you please raise a JIRA issue for it?

Thanks,
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.