Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8667

Re: Claim a task

$
0
0

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:

 

Postman.jpg

 

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.


Viewing all articles
Browse latest Browse all 8667

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>