on 07-03-2015 8:14 PM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
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.