HCL Commerce Enterprise

Adding the price rule element to the palette in the Price Rule Builder

You must include the new price rule element in the element palette so that business users can drag the new element from the palette into the work area.

Procedure

  1. Open HCL Commerce Developer and switch to the Enterprise Explorer view.
  2. Open the following file, which is the properties view file for the Price Rule Builder:

    \LOBTools\WebContent\WEB-INF\src\xml\commerce\price\propertiesViews\PriceRuleBuilder.xml

  3. In the properties view file, locate the <FlowBuilder> element, which contains code similar to this snippet:
    <FlowBuilder definitionName = "prcPriceRuleBuilder" 
         flowConnectorClass = "prcPriceRuleFlowConnector" 
         flowPathClass = "prcFlowPath" 
         generalPropertiesDefinitionName = "prcPriceRuleProperties">
        <Xml name = "palette">
            <Group name = "actions" resourceBundle = "prcPriceResources" 
                   helpText = "help_palette_actions" 
                   helpLink = "concepts/cpiactions.htm">
                <Element objectType = "priceList"/>
                <Element objectType = "calculatePrice"/>
                <Element objectType = "nestedPriceRule"/>
                <Element objectType = "roundingPrice"/>
            </Group>
            <Group name = "conditions" 
                   resourceBundle = "prcPriceResources" helpText = "help_palette_conditions" 
                   helpLink = "concepts/cpiconditions.htm">
                <Element objectType = "catalogCondition"/>
                <Element objectType = "compareCondition"/>
                <Element objectType = "priceListCondition"/>
                <Element objectType = "customerCondition"/>
            </Group>
            <Group name = "branches" resourceBundle = "prcPriceResources" 
                   helpText = "help_palette_branches" helpLink = "concepts/cpibranches.htm">
                <Element objectType = "simpleBranch"/>
                <Element objectType = "coordinatorBranch"/>
            </Group>
        </Xml>
    </FlowBuilder>
  4. Insert a new <Element> tag as a child of the appropriate <Group> tag.
    The new <Element> tag must have an objectType value that matches the objectType value defined in the object definition for the price rule element. Elements are displayed in the palette in the order that they are listed in this file.
  5. Save and close the properties view file.