cancel
Showing results for 
Search instead for 
Did you mean: 

Use extended OMS domain objects in hybris

Former Member
0 Kudos

I have OMS extension project (which is created from Maven archetype). In this project there is Order class which has dummyNewProp property. How can I populate this property in hybris without rewriting hybris code which is related to OMS integration?

I need to have omsorders extension enabled, but it required omsclient which already has Order domain object in its classpath. And that Order (from omsclient) does not have dummyNewProp field.

Former Member
0 Kudos

Hi Alexander!!! I am facing the same problem. Have you figured out the solution yet?

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

OMS extension project has the following extensions oms-ext-api - Interface objects (DTOs) oms-ext-service - Business logic (Facade and services) oms-ext-client - Rest Client Interfaces oms-ext-web - Resources exposed to invoke facade

In the above oms-ext-api will have the Order.java file which is used as a DTO class to transfer the data from hybris to OMS. Now the dummyNewProp property also available as DTO property in the Order.java POJO file.

In order to send the data for dummyNewProp follow below steps

Step1 > When the OMS extension project is compiled with mvn install a jar file is created under oms-ext-api/target folder with a name something like oms-ext-api-1.0-SNAPSHOT.jar file

Step 2> This jar file will contain the Order.java POJO with new property dummyNewProp .

Step 3> Copy this jar file into omsclient/lib folder.

Step 4> Now since this POJO with the additional property is exposed on hybris side. You will be able to send the value to this new property.

Step 5> Ensure that you have proper setter and getter methods in the OmsOrderPopulator.java file under omsorders extension.