cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Product Cockpit Coverage Rules for 6.7

Former Member
0 Likes
751

Hybris 6.7 I am trying to enable coverage rules for product I Imported productcockpit-constraints.impex even i didn't get any updates on product coverage on attributes like description , name etcc...

Accepted Solutions (1)

Accepted Solutions (1)

former_member625836
Active Contributor
0 Likes

Hi ,

I don't know your configuration exactly, but if I was to guess, I would say that you are missing validation groups in your constraints definition. SummaryView widget allows to point to specific groups of constraints that you wish to use for quality calculation (to be precise: a domain id of groups). You can check this document to read about how to register new groups/domains in data coverage framework. Please use a approach used in section "Installing a Calculation Strategy for a Specific Type and/or Domain" or use the one usd in pcmbackofficesampleaddon:

     <cng:list-extender bean="defaultCoverageCalculationStrategyRegistry" property="domainStrategies"
                        getter="@domainStrategiesList">
         <cng:add>
             <bean class="de.hybris.platform.validation.coverage.strategies.impl.CoverageCalculationStrategyMapping">
                 <property name="domainID" value="NEW_COVERAGE_DOMAIN_ID"/>
                 <property name="strategyMap">
                     <map>
                         <entry key="Product">
                             <bean class="de.hybris.platform.validation.coverage.strategies.impl.ValidationBasedCoverageCalculationStrategy">
                                 <property name="validationService" ref="validationService"/>
                                 <property name="typeService" ref="typeService"/>
                                 <property name="coverageConstraintGroupDao" ref="coverageConstraintGroupDao"/>
                                 <property name="sortProperties" value="true"/>
                                 <property name="constraintGroupID" value="CONTRAINT_GROUP_ID"/>
                             </bean>
                         </entry>
                     </map>
                 </property>
             </bean>
         </cng:add>
     </cng:list-extender>

Please notice that there are two values to be replaced in snippet above:

  • NEW_COVERAGE_DOMAIN_ID any unique string value that will be used in SummaryView configuration

  • CONTRAINT_GROUP_ID a value of id attribute of an existing constraint group

Whichever approach you will choose, you may then use created domain id in SummaryView configuration:

     <context component="pcmbackoffice-summary-view" type="Product">
         <summary-view:summary-view xmlns:summary-view="http://www.hybris.com/cockpitng/component/summaryview">
             <summary-view:section name="summaryview.section.dataquality">
                 <summary-view:data-quality-group label="summaryview.qualitygroup.core" domain-id="NEW_COVERAGE_DOMAIN_ID" warning="0.7" error="0.3"/>
             </summary-view:section>
         </summary-view:summary-view>
     </context>

Cheers, Jacek

Answers (1)

Answers (1)

mpern
Product and Topic Expert
Product and Topic Expert
0 Likes

if you mean the new coverage feature in the backoffice PCM, you can find the sample coverage rules in in the pcmbackofficesamplesaddon, more specifically, in .../pcmbackofficesamplesaddon/resources/pcmbackofficesamplesaddon/import/common/common-addon-extra.impex

Former Member
0 Likes

Hi All,

If I want to add customized attributes to the products and i want those attribute shown up in backoffice featured product cockpit, for this how do i need to proceed? please let me know if any one worked this scenario.

mpern
Product and Topic Expert
Product and Topic Expert
0 Likes

Please read the documentation regarding backoffice in general, and check the various *-backoffice-config.xml files, especially in extension pcmbackofficesamplesaddon.

If after that you have still question, ask a new question, don't use comments ;)