Highlighted
DineshPoudel Respected Contributor.
Respected Contributor.
275 views

Overwrite generator name with the new rule name - Correlation

Jump to solution

Hey guys sorry about the following noob question,

I have a real time rule that send out email when it triggers. Say "Rule1" (This rule has all the logic and the email template has detail information)

Now i want another rule say "Rule2" to watch "Rule1"

          Generator Name = "Rule1"

When "Rule2" triggers it has Generator Name as "Rule1" as oppose to Rule two.

The whole idea of creating "Rule2" was to avoid all the logic from Rule two, and the notification recipient of "Rule2" do not need to know the detail information about the alert.

I want "Rule2" two use a different email template which has limited detail in the email body. But since the alert triggered by rule also lists Generator Name as "Rule1" it used the same template.

Any ideas, how to get around this ?

Labels (3)
Tags (1)
0 Likes
1 Solution

Accepted Solutions
peterjakowetz Absent Member.
Absent Member.

Re: Overwrite generator name with the new rule name - Correlation

Jump to solution

Hi Dinesh,

You don't have to use Generator Name in your email.vm configuration.

If as an action of the rule, you set CustomeString1 = "something unique", then you can use that in the email.vm to use a secondary template.

ie.

#if($introspector.getDisplayValue($event,"flexString1")=="rule1")

#parse ("template1.vm")

##

#elseif($introspector.getDisplayValue($event,"flexString1")=="rule2")

#parse ("template2.vm")

Hope that helps.

--Pete

0 Likes
2 Replies
peterjakowetz Absent Member.
Absent Member.

Re: Overwrite generator name with the new rule name - Correlation

Jump to solution

Hi Dinesh,

You don't have to use Generator Name in your email.vm configuration.

If as an action of the rule, you set CustomeString1 = "something unique", then you can use that in the email.vm to use a secondary template.

ie.

#if($introspector.getDisplayValue($event,"flexString1")=="rule1")

#parse ("template1.vm")

##

#elseif($introspector.getDisplayValue($event,"flexString1")=="rule2")

#parse ("template2.vm")

Hope that helps.

--Pete

0 Likes
DineshPoudel Respected Contributor.
Respected Contributor.

Re: Overwrite generator name with the new rule name - Correlation

Jump to solution

Thanks Pete,

Your other reply answered this question as well.

Cheers

Dinesh 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.