Adding the campaign element to the element palette in the Activity Builder

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

Before you begin

Review the following topic to ensure that you understand how the element palette works:

Procedure

  1. Open HCL Commerce Developer and switch to the Enterprise Explorer view.
  2. Complete one of the following steps:
    • In 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 add the campaign element to.
    For example, if you are adding an action element to the palette for Dialog activities, then open the properties view for Dialog activities. To add the campaign element to the palette in more than one properties view, you must perform the remaining steps in this procedure in each applicable properties view.

    The properties view files are:

    OptionDescription
    Properties view definition files
    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:
    OptionDescription
    Locate the XML element named palette Here is an example of the XML element for the Dialog activity palette:
    <Xml name="palette">
    	<Group helpLink="concepts/csbtriggers.htm" helpText="help_palette_triggers" name="triggers" resourceBundle="mktMarketingResources">
    		<Element objectType="wait"/>
    		<Element objectType="registers"/>
    		<Element objectType="purchases"/>
    		<Element objectType="customerParticipatesInSocialCommerce"/>
    		<Element objectType="customerAbandonsShoppingCart"/>
    		<Element objectType="birthdayTrigger"/>
    		<Element objectType="customerIsInSegment"/>		
    		<Element objectType="eventAndParametersTrigger"/>
    		<Element objectType="CustomerSearchesTrigger"/>					</Group>
    	<Group helpLink="concepts/csbtargets.htm" helpText="help_palette_targets" name="targets" resourceBundle="mktMarketingResources">
    		<Element objectType="customerSegmentIdList"/>
    		<Element objectType="shoppingCart"/>
    		<Element objectType="purchaseHistory"/>
    		<Element objectType="catalogBrowsingBehavior"/>
    		<Element objectType="onlineBehavior"/>
    		<Element objectType="socialCommerceParticipation"/>
    		<Element objectType="time"/>
    	</Group>
    	<Group helpLink="concepts/csbactions.htm" helpText="help_palette_actions" name="actions" resourceBundle="mktMarketingResources">
    		<Element objectType="sendMessage"/>
    		<Element objectType="issueCoupon"/>
    		<Element objectType="addToRemoveFromCustomerSegment"/>
    	</Group>
    	<Group helpLink="concepts/csbbranchvsexp.htm" helpText="help_palette_branching" name="branching" resourceBundle="mktMarketingResources">
    		<Element objectType="simpleBranch"/>
    	</Group>
    </Xml>
  5. 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 that is defined in the object definition for the campaign element. Elements are displayed in the palette in the order that they are listed in this file.
  6. Save and close the properties view file.