on 03-22-2016 7:25 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
did you claim the task before accessing the task data via odata service?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.