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.
Dialog activities are available only in the Professional and Enterprise editions of WebSphere Commerce.
Before you begin
Procedure
- Open WebSphere Commerce Developer and switch to the Enterprise Explorer view.
- Complete one of the following steps:
- In the Enterprise Explorer view, expand LOBTools > WebContent > WEB-INF > src > lzx > commerce > marketing > propertiesViews.
- In the Enterprise Explorer view, expand LOBTools > WebContent > config > commerce > marketing > propertiesViews.
- 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 OpenLaszlo class files - 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.
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 data set named palette
Here is an example of the data set for the Dialog activity palette: <dataset name="palette"> <Group resourceBundle="mktMarketingResources" name="triggers"> <Element objectType="wait"/> <Element objectType="registers"/> <Element objectType="purchases"/> <Element objectType="customerIsInSegment"/> <Element objectType="customerParticipatesInSocialCommerce"/> </Group> <Group resourceBundle="mktMarketingResources" name="targets"> <Element objectType="customerSegmentIdList"/> <Element objectType="shoppingCart"/> <Element objectType="purchaseHistory"/> <Element objectType="catalogBrowsingBehavior"/> <Element objectType="onlineBehavior"/> <Element objectType="socialCommerceParticipation"/> <Element objectType="time"/> </Group> <Group resourceBundle="mktMarketingResources" name="actions"> <Element objectType="sendMessage"/> <Element objectType="issueCoupon"/> <Element objectType="addToRemoveFromCustomerSegment"/> </Group> <Group resourceBundle="mktMarketingResources" name="branching"> <Element objectType="simpleBranch"/> <Element objectType="branch"/> </Group> </dataset>
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.