1. Try to get process instance diagramm by rest-webapp (/activiti-rest/service/processInstance/XXXXX/diagram)
2. After getting the response from server the following error occurs: "JSON.parse: unexpected character".
If you will look at response header 'Content-Type', you will see that it's value is 'application/json', but must be 'image/png'.