Changing the contents of the element palette in the Activity Builder

When business users create Web or Dialog activities, they choose triggers, targets, actions, and branches from the element palette. You can customize what business users see in the element palette. For example, you can reorder the elements, group them differently, or hide elements from business users.

WebSphere Commerce ProfessionalWebSphere Commerce EnterpriseDialog activities are available only in the Professional and Enterprise editions of WebSphere Commerce.

Before you begin

Review the following topics to ensure that you understand how the element palette is defined:

Procedure

  1. Open WebSphere Commerce Developer and switch to the Enterprise Explorer view.
  2. Complete one of the following steps:
    • WebSphere Commerce Version 7.0.0.0Feature Pack 1In the Enterprise Explorer view, expand LOBTools > WebContent > WEB-INF > src > lzx > commerce > marketing > propertiesViews.
    • Introduced in Feature Pack 2In the Enterprise Explorer view, expand LOBTools > WebContent > config > commerce > marketing > propertiesViews.
  3. Open the properties view file for the version of the Activity Builder that contains the palette that you want to change.
    The properties view files are:
    OptionDescription
    WebSphere Commerce Version 7.0.0.0Feature Pack 1Properties view OpenLaszlo class files WebSphere Commerce Version 7.0.0.0Feature Pack 1
    WebActivityBuilder.lzx
    This properties view contains the palette for Web activities.
    WebActivityTemplateBuilder.lzx
    This properties view contains the palette for Web activity templates.
    DialogActivityBuilder.lzx
    This properties view contains the palette for Dialog activities.
    DialogActivityTemplateBuilder.lzx
    This properties view contains the palette for Dialog activity templates.
    Introduced in Feature Pack 2Properties view definition files Introduced in Feature Pack 2
    WebActivityBuilder.def
    This properties view contains the palette for Web activities.
    WebActivityTemplateBuilder.def
    This properties view contains the palette for Web activity templates.
    DialogActivityBuilder.def
    This properties view contains the palette for Dialog activities.
    DialogActivityTemplateBuilder.def
    This properties view contains the palette for Dialog activity templates.
  4. In the properties view file, locate:
    • WebSphere Commerce Version 7.0.0.0Feature Pack 1The data set named palette
    • Introduced in Feature Pack 2The xml element named palette
  5. Customize the XML under the palette data set sectionIntroduced in Feature Pack 2 or xml element, as required. Here are a couple of examples:
    • To hide a palette element from business users:
      1. Find the <Element definition for the element you want to hide. For instance, the line that adds the Customer Is In Segment trigger to the palette for Dialog activities looks like this:
        <Element objectType="customerIsInSegment"/>	
      2. Delete the line.
    • To rename a group:
      1. Create a custom OpenLaszlo lzx/commerce/foundation/restricted/ResourceBundle.lzx/wcfResourceBundleKey class that contains the new text for the group label.
      2. Find the <Group definition for the group you want to rename. For instance, the line that adds the Target group to the palette looks like this:
        <Group resourceBundle="mktMarketingResources" name="targets" helpText="help_palette_targets" helpLink="concepts/csbtargets.htm">
      3. In the resourceBundle attribute, specify the OpenLaszlo resource bundle class to use; then, in the name attribute, specify the resource key.

        You can remove the helpText and helpLink attributes if you no longer need the renamed group to have a tooltip or a More details... link to the information center online Help topic.

  6. Save and close the file.

What to do next

After you complete your customization:
  1. Right-click LOBTools Project; then click Build OpenLaszlo Project to produce an updated ManagementCenter.swf file under the workspace_dir\LOBTools\WebContent directory. This setting is the default environment setting.
  2. Test your changes by viewing them in the Management Center, using this URL: https://hostname:8000/lobtools.
  3. Deploy your changes to your production environment.