06-06-2012 12:13 PM
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).
06-07-2012 04:15 AM
06-07-2012 06:09 AM
Could you post the json you submit?if I submit something like:
{"myEntityID":462,"myCustomData":"hello world"}only myCustomData will be available as execution variable, but if I submit something like:{"myEntityID":"462","myCustomData":"hello world"}also myEntityID will be available, as a String. 06-13-2012 04:31 AM
<userTask id="task">
<extensionElements>
<activiti:formProperty id="duration" type="long"/>
</extensionElements>
</userTask>
06-15-2012 06:31 AM
Read our userguide on form-properties.
You an type the properties you submit:
<userTask id="task">
<extensionElements>
<activiti:formProperty id="duration" type="long"/>
</extensionElements>
</userTask>
06-15-2012 06:49 AM
06-15-2012 08:46 AM
Sorry for the misunderstanding.No problem
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.Yes, but I don't understand why the server accept only text values, there is some reason?
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.We can do it simply by improving the corrent Start Process Instance and Perform Task Operation REST-services, correct?
Perhaps you're willing to contribute these additional REST-resources to the activiti-project?We can think about it!
06-15-2012 08:51 AM
06-15-2012 09:52 AM
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.
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.