on ‎2019 Jan 31 11:28 AM - last edited on ‎2024 Feb 03 5:31 PM by postmig_api_4
Hi Experts,
is it somehow possible to call a method on the Hybris server from a Datahub filterExpression and get the return value?
Scenario: An order with only a few filled fields should update an already existing order in Hybris. The order comming from the SAP system should only be published to Hybris if the order is already present in Hybris.
Any thoughts or ideas are appreciated.
Marten
Request clarification before answering.
I wouldn't query / call the hybris server, but move the logic to hybris by implementing a custom de.hybris.platform.impex.jalo.imp.ImportProcessor that checks if this particular line in the impex may be processed.
For inspiration, check the de.hybris.platform.ruleengineservices.impex.impl.ConditionalImportProcessor and how it is used to check if a rule is allowed to be imported, promotionenginesamplesaddon/import/stores/*/promotions.impex
IIRC, various SAP integrations use similar tricks (custom ImportProcessors and other stuff) to execute extra logic and not just import data.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 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.