cancel
Showing results for 
Search instead for 
Did you mean: 

Update form Property value using REST

sarkar92
Champ in-the-making
Champ in-the-making
Using Activiti REST API I'm able to get form property of a task.

How can set form property value using REST API.

below my activiti form

 <activiti:formProperty id="firstName" name="First Name" expression="${firstName}" writable="false"></activiti:formProperty>
          <activiti:formProperty id="lastName" name="Last Name" expression="${lastName}" writable="false"></activiti:formProperty>
          <activiti:formProperty id="groupName" name="Group Name" expression="${groupName}" writable="false"></activiti:formProperty>
          <activiti:formProperty id="decision" name="Do you approve the request ?" type="enum" required="true">
            <activiti:value id="true" name="Yes"></activiti:value>
            <activiti:value id="false" name="No"></activiti:value>
          </activiti:formProperty>

I am not able to set value of "decision" in form property using REST.
using REST how can I set value of my form property??

Please help
9 REPLIES 9

frederikherema1
Star Contributor
Star Contributor
There is currently no REST-method for posting form properties. In 5.13, the REST-service will get a major overhaul and will include this functionality.

I have the same problem , but i can't find the rest api in activiti 5.13 you said, could you tell me where it is ? thanks

sarkar92
Champ in-the-making
Champ in-the-making
thanks

sarkar92
Champ in-the-making
Champ in-the-making
can you tell me when 5.13 will release??

jbarrez
Star Contributor
Star Contributor
Planned for beginning of June. (three monthly release cycle)

stormspirit
Champ in-the-making
Champ in-the-making
Activiti 5.13 was released, but i can not find the rest api you said, where is the api ? thx

jbarrez
Star Contributor
Star Contributor
See http://activiti.org/userguide/index.html#N12B3B

The download of Activiti contains an activiti REST war file to deploy in your webcontainer.

busy
Champ in-the-making
Champ in-the-making
I´m facing the same question: how can I set value of my form property using REST?

I get task variables this way:
http://localhost:8080/activiti-rest/service/form/form-data?taskId={taskId}

What I want to do is to set "value" in "formproperties", I mean, save task variables without completing the task yet.

trademak
Star Contributor
Star Contributor
The default way to update values before a task is completed is to set or update task variables and there's a REST service provided for that.

Best regards,