Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

1087

November 20th, 2008 00:00

Perl API - create notification

Hello all.

I have create notification from script.

a question is:

I should to declare events in Model or configuration files ???

My code is

# -- Get instances from class ImapServer
foreach $inst (sort $session->getInstances($class)) {
print $class . "::" . $inst . "\n";

# -- Create the object for each instance
$obj = $session->object($inst);

# -- continue with next element if object is no defined
next if ($obj->isNull());


# to notify an event:
$session->forceNotify($obj,
"BLA", 0, 1);

This is fragment from log file
[20-Nov-2008 03:03:01 PM NOVT] Perl-Client-14843-1(126):
forceNotify(ImapServer::SRVO-ImapServer::BLA,NOTIFY)

But, no see events in Console ....


What do i do for ?
No Responses!
No Events found!

Top