We have seen implementation of a custom segmentation rule and marketing automation rule in previous post. The main focus was on segmentation rule but I also showed marketing automation rule implementation.
Basically, we need to implement ICondition interface and write our logic in Evaluate method. Since, I've already completed configuration and written my rule, we can create a marketing automation plan.
I added my rule and activated my marketing automation plan. Now, I want to test my custom rule. The easiest way to use "Repost view" button inside marketing automation page. Once the rule applies for a contact, then you should see that contact in the list.
Let's say it didn't work. You visited a movie 3 or more times and ended your session. Normally, at that moment, the contact should be added to list in your automation plan. But you didn't see anything.
We need to debug and see our fault in code.
To do this, first I am going to stop marketing automation service. I opened Task Manager and saw that two services are working. One for index and the other one is for marketing automation.
I stopped the marketing automation service. Then, I opened a cmd window, went to AutomationEngine path and run maengine.exe
Now I can find running process and attach for debugging in visual studio.
That's it! Now, we can debug our marketing automation related codes.
Next post:
Basically, we need to implement ICondition interface and write our logic in Evaluate method. Since, I've already completed configuration and written my rule, we can create a marketing automation plan.
I added my rule and activated my marketing automation plan. Now, I want to test my custom rule. The easiest way to use "Repost view" button inside marketing automation page. Once the rule applies for a contact, then you should see that contact in the list.
Let's say it didn't work. You visited a movie 3 or more times and ended your session. Normally, at that moment, the contact should be added to list in your automation plan. But you didn't see anything.
We need to debug and see our fault in code.
To do this, first I am going to stop marketing automation service. I opened Task Manager and saw that two services are working. One for index and the other one is for marketing automation.
I stopped the marketing automation service. Then, I opened a cmd window, went to AutomationEngine path and run maengine.exe
Now I can find running process and attach for debugging in visual studio.
That's it! Now, we can debug our marketing automation related codes.
Next post:
Bardzo ciekawie to zostało opisane.
ReplyDelete