cancel
Showing results for 
Search instead for 
Did you mean: 

BPM OData Service - No SDO Dataobject for Entity Set

Former Member
0 Kudos

I am tring to follow steps mentioned in the below blog

http://scn.sap.com/community/bpm/blog/2013/10/18/bpm-odata-exploring-the-service

I am able to access the metadata of my task but i am not able to get the inputdata of my task.

I get the below error when i access

http://hostname:port/bpmodata/taskdata.svc/<taskid>/Context_RequestInfo

An error occured. 500 Internal Server Error. Log ID: C0000A407EAA044E0000000000810086

I get the same error when i access

http://hostname:port/bpmodata/taskdata.svc/<taskid>/Context_RequestInfo('<taskid>') ?


Checked Logs in LogViewer...

===

[EXCEPTION]

com.sap.core.odata.api.exception.ODataApplicationException: There is no SDO DataObject for 'Context_RequestInfo' Entity Set.

at com.sap.bpm.odata.tm.BPMTaskDataODataSingleProcessor.getDataObjectForEntitySet(BPMTaskDataODataSingleProcessor.java:277

====


I have attached the metadata xml.

I am trying to read Context_RequestInfo details like "id" and "status". Details of the entity is mentioned above.

Looking forward to your responses/solutions.

Thanks

Senthil

Accepted Solutions (1)

Accepted Solutions (1)

AndreH
Employee
Employee
0 Kudos

As described in the , you need to access the entity InputData and and then navigate down to the respective entity using the $expand query option.

"Accessing the input data returns a data object called InputData which contains the data as specified with the input data mapping of the human activity within the process model. In order to get the Input Data of a Task, the BPM Task Data OData Service is used along with the OData resource path InputData. The OData $expand query option is used to specify that referenced entities should be represented inline within the service response. The name of the entities to expand is passed with the option. In the example below the referenced entity Customer is getting expanded and therefore represented inline in the response."

In your case the URL would look like:

.../bpmodata/taskdata.svc/<taskid>/InputData('<taskid>')?$expand=ContextTypeINPUT/Context/RequestInfo&$format=json

Best Regards,

Andre

Former Member
0 Kudos

Thank you Andre. I am able to read the task data.

Thanks

Senthil

Answers (1)

Answers (1)

junwu
Active Contributor
0 Kudos

did you claim the task before accessing the task data via odata service?

Former Member
0 Kudos

Yes, i have claimed the task.

Thanks
Senthil

Former Member
0 Kudos

Any suggesstions, to resolve the above issue. Tried different BPM processes, getting the same error.

Thanks
Senthil