cancel
Showing results for 
Search instead for 
Did you mean: 

Is it posible to get Form properties ENUM by using REST API ?

suseno
Champ on-the-rise
Champ on-the-rise
Hi All,

Is it posible to get Form properties ENUM by using REST API ?


regards


suseno
3 REPLIES 3

trademak
Star Contributor
Star Contributor
In the form/form-data service you should get back the enum values:

http://activiti.org/userguide/index.html#N153CF

Best regards,

aurelienpel
Champ in-the-making
Champ in-the-making
is it possible to have the same result with the java api please ?
I tried with :
<code>
ProcessEngines
     .getDefaultProcessEngine()
     .getFormService()
     .getTaskFormData(taskId)
     .getFormProperties()
     .listIterator();
</code>
here is my result :
<code>
[{
"id": "__button__",
"name": "team2",
"type": {
  "name": "enum"
},
"value": null,
"readable": true,
"writable": true,
"required": false
}]
</code>
but I don't have the different values of my enum. Is my call to the engine wrong ?
Thanks for your help,

Regards

Aurelien

jbarrez
Star Contributor
Star Contributor
I don't see how you can get a json result with a java call?