Author |
Message
|
muthu121521 |
Posted: Fri Jan 13, 2017 10:37 am Post subject: Need to disable monitoring events run time automatically |
|
|
Apprentice
Joined: 31 Aug 2015 Posts: 36
|
We have a requirement to disable the monitoring events when we are retrying to consume the back end service
We are setting the shared variable but we are not sure how to access the shared variable in the xpath build expression on event filter feature ?
has any one already implemented it ? |
|
Back to top |
|
 |
adubya |
Posted: Fri Jan 13, 2017 11:00 am Post subject: |
|
|
Partisan
Joined: 25 Aug 2011 Posts: 377 Location: GU12, UK
|
Can't you perform the filtering in whatever downstream system is using the monitoring data ? _________________ Independent Middleware Consultant
andy@knownentity.com |
|
Back to top |
|
 |
neeeelus |
Posted: Fri Jan 13, 2017 12:20 pm Post subject: Re: Need to disable monitoring events run time automatically |
|
|
 Novice
Joined: 28 Jul 2008 Posts: 12
|
muthu121521 wrote: |
We have a requirement to disable the monitoring events when we are retrying to consume the back end service ? |
Can you elaborate more on this?
muthu121521 wrote: |
We are setting the shared variable but we are not sure how to access the shared variable in the xpath build expression on event filter feature ?? |
Shared Variables cant be accessed using xpath in monitoring profiles
muthu121521 wrote: |
has any one already implemented it ? |
Tried and failed to get the shared variable, what you can do is set the shared variable to environment and you can access that environment variable in xpath _________________ Thanks & Regards,
Neeeelu. |
|
Back to top |
|
 |
muthu121521 |
Posted: Tue Jan 17, 2017 12:48 pm Post subject: |
|
|
Apprentice
Joined: 31 Aug 2015 Posts: 36
|
//Tried and failed to get the shared variable, what you can do is set the shared variable to environment and you can access that environment variable in xpath//
I tried this option
when i tried to implement this option it is giving me the warning message
I set an environment variable called EventFilterFlag ,even this is giving me the below warning message
Event Filter: The FALSE element in XPath contains($Environment/Variables/EventFilterFlag,FALSE) was not found in the XML Schema. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Jan 17, 2017 12:56 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
muthu121521 wrote: |
Event Filter: The FALSE element in XPath contains($Environment/Variables/EventFilterFlag,FALSE) was not found in the XML Schema. |
Which it isn't. So the Toolkit gives you a warning.
If it should be in the schema then the warning is an indication you need to check your spelling. If it's not (as here) then you need to test it to see if you've spent it right. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
muthu121521 |
Posted: Tue Jan 17, 2017 1:13 pm Post subject: |
|
|
Apprentice
Joined: 31 Aug 2015 Posts: 36
|
I have tested it and i have verified the variable $Environment/Variables/EventFilterFlag , its being set and i am able to see the value as false in debug , but the issue is we are not able to see any emits being emitted and captured in the data store at all ? |
|
Back to top |
|
 |
Vitor |
Posted: Tue Jan 17, 2017 1:18 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
muthu121521 wrote: |
its being set and i am able to see the value as false in debug , but the issue is we are not able to see any emits being emitted and captured in the data store at all ? |
User trace. The debugger can see it but can the runtime? What does the trace say when it's trying to resolve it? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|