UNSOLVED

gopal_emc

updated

17 years ago

G

gopal_emc

19 Posts

0

3084

November 3rd, 2009 07:00

How to NOTIFY an dynamically modeled event?

Hi,

Please find below the Event Modeling code

refine interface Port
{
    event PortStatusDown "Port Down Status" = Status == DOWN;
    export PortStatusDown;
    problem PortDown "Port Down" => PortStatusDown;
    export PortDown;
    relationship TEST_PartOf,Service,TEST_ComposedOf;
    aggregate PortAffectingService "Service Affecting Problem as Port is down" = PortDown,PortStatusDown;
    export PortAffectingService;
}

interface Service:VLAN
"Create a Service Class inheriting from VLAN"
{
    relationship TEST_OfferedBy,ConnectionProvider,TEST_Offers "Offered By";
    relationshipset TEST_ComposedOf,Port,TEST_PartOf;
    propagate symptom PortDown = Port, TEST_ComposedOf;
    propagate symptom PortStatusDown = Port, TEST_ComposedOf;
    propagate aggregate ServiceAffected "Service is Affected" = Port, TEST_ComposedOf, PortAffectingService;
    export ServiceAffected;
    problem Affected "Service Affected" => PortDown,PortStatusDown;
    export Affected;

}

I am extending the VLAN class for creating the Service.

I am propagating the PortDown and the PortStatusDown symptoms from the Port into the Service.

Also I am propagating the Aggregate "PortAffectingService" from the Port into the Service as "ServiceAffected"

The issue is that when the Port status becomes DOWN, the PortDown, PortStatusDown and PortAffectingService events are generated from Port.

However, I am getting only the ServiceAffected aggregate from Service but not the "Affected" problem.

I tried subscribing to the events and I could find that for the Service the problem "Affected" is in the ACCEPT state and but not NOTIFY.

Please help me in getting this issue resolved.

With Warm Regards,

Gopal

With Warm Regards,

Gopal