cancel
Showing results for 
Search instead for 
Did you mean: 

Override HMC.xml type configuration

former_member1002389
Active Participant
0 Kudos

Hi ,

I am trying to override a type in the hmc.xml of HMC extension in my core extension . But it doesn't override instead it creates the duplicate of it in the final hmc.xml. It looks something like this.

Tag in the hmc.xml of HMC extension

type name="BusinessProcess" useselector="true" mode="append"

Tag in the hmc.xml of Core extension

type name="BusinessProcess" useselector="false"

HMC is extension is visible in my core extension Can anybody suggest ?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,
you need to use the tag mode="replace" in order to replace elements that are already there, as by default the mode is "apend": https://wiki.hybris.com/display/release5/hmc.xml+Reference#hmc.xmlReference-PositioningofElements So your type should be something like this:

 type name="BusinessProcess" useselector="false" mode="replace"
former_member1002389
Active Participant
0 Kudos

Hi ,

For the type tag I default mode is replace . However I tried specifying it explicitly and it still creates the duplicate. I see 2 business process type tags . One from HMC extension and other from my Core extension.

Former Member
0 Kudos

Have you resolved this issue. I am facing the same now. Can you please tell me how you resolved it.