‎2018 Mar 08 6:58 AM - edited ‎2024 Feb 04 4:47 AM
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.
Request clarification before answering.
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 .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
Send a GET Request to the endpoint, as we need the Response Body.
In the Response Body change the status key's value to IN_PROGRESS, and Copy the actionId element.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 .


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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.