Quantcast
Channel: SCN : Unanswered Discussions - SAP Business Process Management
Viewing all articles
Browse latest Browse all 3160

BPM OData Service - Not able to access InputData of task

$
0
0

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.

 

 

1. When i use the below URL, i get the entity details.

 

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

 

===================================

</EntityType>

<EntityType Name="Context_RequestInfo">

<Key>

<PropertyRef Name="EDM_Key"/>

</Key>

<Property Name="EDM_Key" Type="Edm.String" Nullable="false"/>

<Property Name="id" Type="Edm.Int64" Nullable="true" DefaultValue="0"/>

<Property Name="status" Type="Edm.String" Nullable="true"/>

</EntityType>

<EntityType Name="ReviewRequestCompleteEventTypeOUTPUT">

<Key>

<PropertyRef Name="EDM_Key"/>

</Key>

<Property Name="EDM_Key" Type="Edm.String" Nullable="false"/>

<NavigationProperty Name="ReviewRequestCompleteEvent" Relationship="BPMTaskData.ReviewRequestCompleteEventTypeOUTPUT_Context" FromRole="ReviewRequestCompleteEventTypeOUTPUT" ToRole="Context"/>

</EntityType>

==================================

 

 

2. When i use the below URL, i get the InputData details

 

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

 

=========================

<entry xmlns="http://www.w3.org/2005/Atom" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xml:base="http://hostname:port/bpmodata/taskdata.svc/<taskid>/">

<id>

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

</id>

<title type="text">InputData</title>

<updated>2016-03-22T10:06:58.683+03:00</updated>

<category term="BPMTaskData.InputData" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/>

<link href="InputData('<taskid>')" rel="edit" title="InputData"/>

<link href="InputData('<taskid>')/ContextTypeINPUT" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ContextTypeINPUT" title="ContextTypeINPUT" type="application/atom+xml;type=entry"/>

<content type="application/xml">

<m:properties>

<d:EDM_Key><taskid></d:EDM_Key>

</m:properties>

</content>

</entry>

===========================

 

 

3. When i use the below URL, i get the below error. I Checked logs and it says Property not found

 

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

 

 

======

<error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">

<code/>

<message xml:lang="en-US">

An error occured. 404 Not Found. Log ID: C0000A407EAA111100000000005300B8

</message>

</error>

=========

 

 

Log message

 

=====================

[EXCEPTION]

com.sap.core.odata.api.exception.ODataApplicationException: Could not find property with name: 'Context_RequestInfo'.

at com.sap.bpm.odata.logging.BPMODataErrorCallback.getExceptionForTracing(BPMODataErrorCallback.java:128)

at com.sap.bpm.odata.logging.BPMODataErrorCallback.handleError(BPMODataErrorCallback.java:9

=================

 

 

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

 

 

Looking forward to your comments/solutions.

 

 

Thanks

Senthil


Viewing all articles
Browse latest Browse all 3160

Trending Articles



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