I have created a process definition in Activiti (5.14) which is made up of a mixture of user and service tasks. I have created two versions, in one version the user tasks have forms so they can be run in Activiti Explorer. In the second version the user tasks do not have forms so everything needs to be done programmatically.
I am able to unit test both process definitions using Eclipse with no problems. I can start the process instance, set process variables, get tasks, complete tasks, etc. All of this is done using Java calls, none of it uses REST. I can also start a process instance (with forms) and run through it using Activiti Explorer.
Using REST I am able to start a process instance and get tasks; however, I cannot complete the tasks. I have tried to complete tasks with and without forms and I keep running into the same issue. I am making REST calls using the Advanced REST client app in Chrome. All calls have the Content-Type set to application/json in the header. Below are my calls and responses the the process-instance without forms in the user task.
Much Thanks vasile! I did it successfully when I passed the object TaskActionRequest directlly. post request object directlly. No need to "objectMapper.writeValueAsString".