As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Note that if a value is submitted as true (instead of "true") it will be treated as a Boolean even if no descriptor is used. The same is also valid for number, i.e., 123 will become an Integer but "123" will become a String (unless a descriptor is defined).
Could you post the json you submit?
{"myEntityID":462,"myCustomData":"hello world"}
{"myEntityID":"462","myCustomData":"hello world"}
<br><userTask id="task"><br> <extensionElements><br> <br> <activiti:formProperty id="duration" type="long"/><br><br> </extensionElements><br></userTask><br>
Read our userguide on form-properties.You an type the properties you submit:<br><userTask id="task"><br> <extensionElements><br> <br> <activiti:formProperty id="duration" type="long"/><br><br> </extensionElements><br></userTask><br>
Sorry for the misunderstanding.
Indeed, the rest-methods don't expose the form-service but just accept the properties and uses their string-values. The same applies for starting a workflow.
Ideally, starting a workflow through the form-service should be possible through our REST-service. This shouldn't be too hard, since the value-conversion is done in the engine itself, we can just chuck in all json-properties to the submitStartForm() instead.
Perhaps you're willing to contribute these additional REST-resources to the activiti-project?
The existing "start process" and "complete task" rest-calls should stay as they are. 2 new rest-resources should be added, having similar behavior to the two existing ones, but instead of calling startProcessInstance() and completeTask() they should be calling submitStartForm() and submitTaskForm() on the form service.