Quantcast
Channel: SCN : Discussion List - SAP Business Process Management
Viewing all articles
Browse latest Browse all 791

Claim a task

$
0
0

Hi there,

 

I have the problem that I cannot claim a task via the following code:

 

var taskId = getValueOfURLParameter("taskId");
// Create ODataModel for BPM Task Data OData service
var taskDataSvcURL = "/bpmodata/taskdata.svc/" + taskId;
var oDataModel = new sap.ui.model.odata.ODataModel(     taskDataSvcURL, true);
odataModel.create("/Claim?InstanceID='"+taskId+"'", null);  

 

In the logs I get the following error:

[EXCEPTION]

com.sap.core.odata.api.exception.ODataApplicationException: Could not find an entity set or function import for 'Claim'.

 

The task gets only claimed, if I open it from the UWL.

Then I'm also able to complete it with my SAPUI5 application.

 

How can I fix this issue?

I tried to enter my user and password when creating the oData model, but that didn't work.

Do I have to add some header data to the model to make it work?

 

We're running a NW 7.40 SP07 system.

 

Thanks in advance!

 

Best regards,

Thorsten.


Viewing all articles
Browse latest Browse all 791

Trending Articles



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