cancel
Showing results for 
Search instead for 
Did you mean: 

Auto Composition in Dynamic Publication mode of Data Hub

mansurarisoy
Contributor
0 Kudos

Hello all,

In the documentation of Dynamic Publication it is suggested to disable the auto-publication feature of sapcoreconfiguration by removing any configured sapcoreconfiguration auto-compose target pools, and auto-publish target systems by pool. But if we remove sapcoreconfiguration.autocompose.pools property, which defines auto-compose target pools, then we have to trigger composition process by sending POST request to Data Hub. But I think the documentation is wrong since we can disable auto-publication feature by removing only sapcoreconfiguration.autopublish.targetsystemsbypools property (which corresponds to auto-publish target systems by pool). My question is that do we need to remove the both properties as stated in documentation? If yes, is there any suggestion about how to activate auto-composition feature?

Dynamic Publication Documentation: https://help.hybris.com/6.4.0/hcd/7cb1b38932bd4da0a4f02c5ccdaad0ce.html

Regards,

Accepted Solutions (1)

Accepted Solutions (1)

Slava
Advisor
Advisor
0 Kudos

In a manual mode, the user has to start two processes by sending POST requests after loading data in order to publish the data: COMPOSE and PUBLISH. I'm not familiar with SAP auto publication feature but my understanding is that sapcoreconfiguration.autocompose.pools controls need for manual COMPOSE requests. Pools listed in the property will be composed automatically, which leave only a need to trigger their publication by sending a corresponding REST request. Or alternatively, sapcoreconfiguration.autopublish.targetsystemsbypools can be configured to trigger publication automatically. So, in other words here are the example scenarios:

1)

 sapcoreconfiguration.autocompose.pools=GLOBAL
 sapcoreconfiguration.autopublish.targetsystemsbypools=GLOBAL:HybrisCore

When data loaded into GLOBAL pool, it automatically composed and published.

2)

 sapcoreconfiguration.autocompose.pools=GLOBAL
 sapcoreconfiguration.autopublish.targetsystemsbypools=

When data loaded into GLOBAL pool, it automatically composed but not published. Publication must be triggered manually.

3)

 sapcoreconfiguration.autocompose.pools=
 sapcoreconfiguration.autopublish.targetsystemsbypools=GLOBAL:HybrisCore

When data loaded into GLOBAL pool, it's not automatically composed. Composition must be triggered manually but once it's complete the data will be automatically published.

4)

 sapcoreconfiguration.autocompose.pools=
 sapcoreconfiguration.autopublish.targetsystemsbypools=

The auto compostion/publication is fully disabled. Both Composition and Publication must be triggered manually.

mansurarisoy
Contributor
0 Kudos

Thanks for the explanatory reply. My question is that should I also disable auto composition property of SAP extension if I want to use Dynamic Publication feature of Data Hub? I understand why I should disable auto publication property since in Dynamic Publication mode publication process is triggered after composition for the systems defined with target.system.publication.configuration property. But what I don't understand is why it is suggested to remove the property of sapcoreconfiguration extension which assigns the auto composition pools.

Slava
Advisor
Advisor
0 Kudos

Then I have a question. Do you need SAP extensions or not? If you don't use SAP extensions, then you don't have to load them and then those sapconfigiration properties are irrelevant. You have to use datahub properties to control auto-publication. If you use the SAP extensions then I would recommend to follow their documentation and their properties. DataHub has this feature and the properties to configure it. But then SAP extensions enhance the feature and use own properties.

mansurarisoy
Contributor
0 Kudos

Yes, I need to use SAP extensions since we are developing a SAP Integration project with hybris. sapcoreconfiguration extension provides auto-compose and auto-publication feature (and it is suggested to use them for configuration items of SAP) but in documentation when using Dynamic Publication feature of Data Hub it is suggested to not use auto-publication feature. But I believe using auto-compose feature of sapcoreconfiguration won't cause any problems and I think documentation suggests to remove an extra and incorrect property to disable auto-publication feature. Thanks for your answers.

Slava
Advisor
Advisor
0 Kudos

No, it won't cause any problems: auto-composition and auto-publication can be used independent of each other. However I would recommend to use both those features on.

Answers (0)