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
Procedure
- Open HCL Commerce Developer and switch to the Enterprise Explorer view.
-
Complete one of the following steps:
- In the Enterprise Explorer view, expand .
-
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:
Option Description 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.
-
In the properties view file:
Option Description 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>
-
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.
- Save and close the properties view file.