The service task is just for illustration that I can have a complex object as a process variable. What I want to know is, can the rest-api create this complex object based on the json as for example the service task does by means of a factory. What I found out so far is that activiti is able to handle simple objects.
As a footnote: In previous sofware projects I implemented a rest apis that were able to create such complex objects by using an unmashaller(jackson or jersey) passing it the json and the class model. Same behavior, I would expect from activiti when my class model is deployed to activiti.
I hope this helps to clarify my request.
Thanks, Marco