data alert

25 views
Skip to first unread message

Liang (Simon) Sha

unread,
Nov 9, 2009, 3:39:22 PM11/9/09
to intersystems-de...@googlegroups.com

Hi folks,

 

Is it possible to send an alert request to an Ensemble business process from a dashboard using data alerts? E.g. if value in a cell exceeds pre-defined threshold, send a request to Business Process which then forwards the request to Workflow… I see that you can’t use custom scripts for data alerts though.

 

Thanks for your help.

Lexi Hayden

unread,
Nov 12, 2009, 12:04:21 PM11/12/09
to InterSystems: DeepSee Community
Well, within an alert, you can define a thing called an "event" so
that if the user clicks the cell, DeepSee automatically does
something. One of the options is to run a COS script, which means it
can do anything. I just tried it and successfully wrote to a global,
as simple test.

These events are documented in the alerts chapter of the Analyzer
guide, under "user options."

There is also a buried, undocumented, untested option called
Performance Alerts. I believe the idea is that you define an alert
that uses a KPI (or maybe some other value), and you use the Scheduler
to periodically run the alert to see if your alert values are met.
(You have to edit the Shortcut options in order to add the Performance
Alert feature, which I looked at only briefly.) The Scheduler,
however, currently has a bug that prevented me from scheduling
anything at all, which render this whole idea academic for now.

It seems entirely reasonable to support background processing in this
manner, though.

***
Also, you can use the %BI.SOAP classes to access values (including
KPIs) programmatically, so that might be your best bet. A KPI is just
a measure that's been "promoted"--you can write it as a COS
expression, and you can include a DeepSee-type filter if it needs to
apply to some subset.


On Nov 9, 3:39 pm, "Liang (Simon) Sha" <simon....@intersystems.com>
wrote:
> Hi folks,
>
> Is it possible to send an alert request to an Ensemble business process
> from a dashboard using data alerts? E.g. if value in a cell exceeds
> pre-defined threshold, send a request to Business Process which then
> forwards the request to Workflow... I see that you can't use custom

Lexi Hayden

unread,
Nov 12, 2009, 12:05:40 PM11/12/09
to InterSystems: DeepSee Community
Oy, I see that the doc. says not to use "Run Script." Well, it should
not say that. I'll update it.

On Nov 9, 3:39 pm, "Liang (Simon) Sha" <simon....@intersystems.com>
wrote:
> Hi folks,
>
> Is it possible to send an alert request to an Ensemble business process
> from a dashboard using data alerts? E.g. if value in a cell exceeds
> pre-defined threshold, send a request to Business Process which then
> forwards the request to Workflow... I see that you can't use custom

Liang (Simon) Sha

unread,
Nov 12, 2009, 12:17:08 PM11/12/09
to intersystems-de...@googlegroups.com
Lexi,

Option 3 will work very well. I can set a ensemble process to check KPI values and fire off Workflow and alerts just like the Ensemble business metrics.

Thanks for the tips!
--

You received this message because you are subscribed to the Google Groups "InterSystems: DeepSee Community" group.
To post to this group, send email to intersystems-de...@googlegroups.com.
To unsubscribe from this group, send email to intersystems-deepsee-...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/intersystems-deepsee-community?hl=.


Lexi Hayden

unread,
Nov 12, 2009, 12:38:10 PM11/12/09
to InterSystems: DeepSee Community
I notice that both %BI.SOAP.Pivot and %BI.SOAP.KPI extend our class
%SOAP.MsgDescriptor, which is expressly forbidden in our class
documentation. (Our SOAP support uses %SOAP.MsgDescriptor internally
but the behavior is subject to change without notice.)

So please refrain from using these classes in any SOAP-ish manner,
just in case. That is, avoid using methods and properties inherited
from %SOAP.MsgDescriptor.

I will add an appendix on these two classes to the end of the Analyzer
book. Not the best place, but I can't add yet another book to the set,
especially at this late date.

On Nov 12, 12:17 pm, "Liang (Simon) Sha" <simon....@intersystems.com>
wrote:

Liang (Simon) Sha

unread,
Nov 12, 2009, 12:43:59 PM11/12/09
to intersystems-de...@googlegroups.com
I tried %BI.SOAP class and it works just fine:

w ##class(%BI.SOAP).KPI("10001","","")

and it inherits %SOAP.WebService.

Lexi Hayden

unread,
Nov 12, 2009, 1:20:43 PM11/12/09
to InterSystems: DeepSee Community
Oh, I get it! I had not noticed the %BI.SOAP class itself. That is
indeed the class to use and it does extend our Web service class.

The other two classes I mention below are generated when %BI.SOAP is
compiled. They correspond to the Web methods in %BI.SOAP and you don't
use them directly. We can safely ignore them.

On Nov 12, 12:43 pm, "Liang (Simon) Sha" <simon....@intersystems.com>
wrote:
Reply all
Reply to author
Forward
0 new messages