Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

After an event is configured in Canvas Studio, a simple Java handler is necessary to trigger the event. Let's assume that the event is a login activity, so when the user logs in, the event has to be raised to send an alert and an audit. Once the login event is configured in Canvas Studio, the Java Handler triggers the event, thereby facilitating the means for receiving alerts. The following code snippet is a sample Java Handler to raise an event:

Event eventToBeRaised = Event.getEventFor(<EVENT_ID>); 
HashMap eventData = new HashMap(); 
EventDispatcher.getInstance().raiseEvent(eventToBeRaised , eventData);
  • No labels