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
- Open WebSphere Commerce Developer and switch to the Enterprise Explorer view.
- Open the following file, which is the properties view file
for the Price Rule Builder:
LOBTools/WebContent/config/commerce/price/propertiesViews/priceRuleBuilder.def
- 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>
- 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. - Save and close the properties view file.