Hi guys

I was wondering how does the notificationproducer need to be implemented
within the MyCapability.java in order for one to be able to update the
situation events being sent out and being in charge of when these
modified events are sent.

I was thinking something like:

public void publishWEFNotification(){
        Situation situation = factory.createSituation();
 
situation.setCategoryType(WefConstants.AVAILABILITY_SITUATION_QNAME);
        situation.setPriority(Situation.HIGH_PRIORITY);
        situation.setMessage("Something important has happened! ");
        event.setReporter(reporterComponent);
        event.setSource(reporterComponent);
        event.setSituation(situation);
        
        getLog().info("Sending message to consumers...");
        try{
                wsn.publish(_TOPIC_NAME, event);
        }catch (Throwable error){
                error.printStackTrace();
        }
    }

And then just calling the function whenever needed (perhaps added with
some more parameters in the call later), but I don't seem to be able to
get a WEF notification sent out. So far the only notifications I've had
the framework provide with the WSDM implementation is the
create/destruction (on change of property has been reported to jira).

/Lenni

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to