Hi Andre,
thanks for your answer.
I've created a model for tasks.svc now, but it still doesn't work:
claimTask : function(taskId) { var tasksSvcURL = "/bpmodata/tasks.svc"; var tasksODataModel = new sap.ui.model.odata.ODataModel(tasksSvcURL, false); tasksODataModel.create("/Claim?InstanceID='"+taskId+"'", null); }
I get the following error in the logs:
[EXCEPTION]
org.odata4j.producer.exceptions.ServerErrorException: while trying to invoke the method com.sap.odata4j.object.BpmObject.getData(org.odata4j.producer.QueryInfo) of a null object loaded from local variable 'bpmObject
It also doesn't work with Postman:
I don't even see something in NWA's log for this request...
Do I have to give username/password in SAPUI5 to claim the task?
Best regards,
Thorsten.