NetXMS Support Forum

English Support => General Support => Topic started by: Marcin on March 11, 2015, 09:47:27 AM

Title: Event parameters in subsequent event processing rules
Post by: Marcin on March 11, 2015, 09:47:27 AM
Hello,

In event processing rule number 1 I define:
SetEventParameter($event, "WeblogicENV", "TEST");
This event parameter is used in message text for alarm creation (%<WeblogicENV>).
This works fine.

Then I wanted to use the same event parameter defined in filtering script of rule number 1 in the rule number 2.
Unfortunately:
GetEventParameter($event, "WeblogicENV");
returns NULL.

Is it normal that this additional even parameter is lost or maybe I have a mistake somewhere in the code?

Best regards,
Marcin
Title: Re: Event parameters in subsequent event processing rules
Post by: Victor Kirhenshtein on March 20, 2015, 01:28:00 PM
Hi,

it should work. Can you provide a screenshot of both rules so I could see them completely?

Best regards,
Victor
Title: Re: Event parameters in subsequent event processing rules
Post by: Marcin on March 24, 2015, 09:38:22 AM
Hi Victor,

Yes, it works. Missing semicolon caused wrong rule processing.

Best regards,
marcin