Creating the campaign element template definition
By creating the campaign element template definition, you define the blueprint for your campaign element. When you have defined the XML you require, you must add the template definition to the DMELETEMPLATE table as a new entry.
Before you begin
Procedure
- Define the XML for your campaign element template definition, which must have an implementation definition, and might require a behavior rule definition and a related rule definition.
-
Write an SQL statement to register the campaign element template definition in the
DMELETEMPLATE table and insert the applicable campaign element template XML fragments:
- Insert the implementation definition XML fragment into the IMPLXML column
- Insert the behavior rule XML fragment into the BEHAVIORXML column
- Insert the related rule XML fragment into the RELATEDXML column
The following is an example SQL statement for a new target that has only an implementation definition. The SQL statement looks like this:
insert into dmeletemplate (dmeletemplate_id, dmelementtype_id, name, implxml) values ( 1000, 2, 'customLevelOfSupportTarget', '<FlowElementImplementation type="Custom Level Of Support Target"> <Implementation invocationType="TaskCommand"> <Class name="com.mycompany.CustomLevelOfSupportTargetTaskCmd"> <Argument name="supportLevel" value="MARKETING_supportLevel"/> </Class> </Implementation> </FlowElementImplementation>' );
Where:
- dmeletemplate_id
- The identifier of this campaign element template definition. Choose a number greater than 1000 that is not already used for another campaign element template definition.
- dmelementtype_id
- The unique identifier of this campaign element type. Use one of these values: 1 = Trigger, 2 = Target, 3 = Action.
- name
- The unique name of this campaign element template definition. You must refer to this name in the objectType when you create the object definition for the campaign element.
- implxml
- The implementation definition XML code for this campaign element template definition.
- behaviorxml
- (not shown in example) The behavior rule definition XML code for this campaign element template definition.
- relatedxml
- (not shown in example) The related rule definition XML code for this campaign element template definition.