Develop > Presentation layer > Customize marketing > Marketing customization: Management Center > Customizing triggers, targets, and actions > Add a new trigger, target or action > Create the campaign element template definition


Example: campaign element template for a trigger

When creating a custom trigger for a marketing activity, you can refer to this sample when creating the trigger's campaign element template.


Sample

Here is the SQL statement to add the campaign element template code for an example trigger to the DMELETEMPLATE table. In this example, there is an external system that detects credit fraud. The external system can detect credit card fraud, or credit account fraud. The external system will send a message to the marketing runtime that one of these occurrences of fraud has occurred for a customer. Using this customized trigger, a Marketing Manager would be able to create a Dialog activity to specify how to follow up with the customer in this situation (for example, send a mobile text message or an e-mail depending on their level of coverage, and then send a follow up message after a certain period of time).

This campaign element template has an implementation definition and a behavior rule definition.

insert into dmeletemplate (dmeletemplate_id, dmelementtype_id, name, implxml, behaviorxml) 
values 
(1003, 1, 'Custom Fraud Detected Trigger', '<Trigger type="customFraudDetectedTrigger">
<Implementation invocationType="TaskCommand">
<Class name="com.mycompany.CustomFraudDetectedTriggerTaskCmd">
</Class>
</Implementation>
</Trigger>',  
'<BehaviorRule 
command="CustomFraudDetectedTriggerEvent" 
action="send" 
comparison="=">
<Variable 
name="eventType" 
value="MARKETING_eventType" 
type="NVP"/>
</BehaviorRule>');


Related concepts

Campaign element template definitions

Related reference

Example: campaign element template for a target

Example: campaign element template for an action


+

Search Tips   |   Advanced Search