cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

how to start the compose manually?

Former Member
0 Likes
549

Could any one help how to start the compose and publish manually?

My items are in "PENDING" status in rawitem. I want to start manually compose and then publish. I tried the below and it is showing .

Here is the url that I am trying.. http:/localhost:8080/datahub-webapp/v1/pools/SAPCONSUMER_INBOUND_POOL/compositions/

Thanks in advance.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Likes

Hi Narapu , As above mentioned pool name is : SAPCONSUMER_OUTBOUND_POOL

Have u tried to get the data for raw item for feed.:SAPCONSUMER_OUTBOUND_FEED

curl -k -u admin:nimda --request GET http://localhost:8080/datahub-webapp/v1/data-feeds/SAPCONSUMER_OUTBOUND_FEED/items/{rawproductName}

As per feed details ,this feed is getting used for SAP Consumer replication from hybris core to SAP ERP.

9304 SAPCONSUMER_OUTBOUND_FEED

Feed for SAP Consumer replication from hybris core to SAP ERP

Do you have proper configuration from hybris core to SAP ERP ?. I assume then only it is going to give proper response .

former_member387866
Active Contributor
0 Likes

Hi Sasi,

This is covered in Testing Composition in the Data Hub.

Please review the Data Hub REST API, the /pools/{poolName}/compositions endpoint supports GET and POST.

  1. Send a GET Request to the endpoint, as we need the Response Body.

  2. In the Response Body change the status key's value to IN_PROGRESS, and Copy the actionId element.

  3. Send a POST request to the endpoint with the Request Body containing the status value IN_PROGRESS and the actionId.

Example:

 POST:
 http://localhost:8080/datahub-webapp/v1/pools/GLOBAL/compositions

 Request Body:
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <compositionActionData>
   <actionId>1</actionId>
   <status>IN_PROGRESS</status>
 </compositionActionData>

Regards,
Luke

Former Member
0 Likes

Thanks for your response Luke.

My items are not yet in the composition action. The items are in "PENDING" status in rawitem table. I am not getting any response body when I try to send the GET request (see the attachment). http://localhost:8080/datahub-webapp/v1/pools/SAPCONSUMER_OUTBOUND_POOL/compositions

http://localhost:8080/datahub-webapp/v1/raw-items/1 -> This url returning raw item that is in PENDING status in SAPCONSUMER_OUTBOUND_POOL .

cieslo
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi,

You should send POST request to http:/localhost:8080/datahub-webapp/v1/pools/SAPCONSUMER_INBOUND_POOL/compositions. In the log file you should find information if the composition started or not (or send GET request to http:/localhost:8080/datahub-webapp/v1/pools/SAPCONSUMER_INBOUND_POOL/compositions to see the list of compositions)

Former Member
0 Likes

Hi Marcin,

Thanks for your response. My post request working but when I try send GET request not getting any information.. see the screen shot what I am getting with GET request. What am I missing here?

Thanks in advance.

cieslo
Product and Topic Expert
Product and Topic Expert
0 Likes

Without log files it's hard to say what is going on.

Former Member
0 Likes

See the attached logs. I didn't find any error in the logs. The post working fine but when I try get it is not returning any data. You can see the screen shot of GET..