Skip to main content
May 4, 2017
Question

How to create and manage alerts in mashup?

  • May 4, 2017
  • 3 replies
  • 2396 views

logimage.png

Hi,

  I have written a custom service for getting the log details of my service. How to get the details of log as an alert from script logs when the mashup is loaded?

  How to create a basic alert in mashups?

Could anyone please explain me in detail?

    3 replies

    20-Turquoise
    May 4, 2017

    You may look into creating a  triggered service, i.e. once some condition is met, a textbox would get populated.

    22-Sapphire I
    May 4, 2017

    There are services for all this.

    Creating Alerts is part of the ThingShape/ThingTemplate/Thing

    Retrieving and Handling can be done from the Alert Stream

    I don't remember if there is a subsystem as well or not with services for this.

    5-Regular Member
    May 5, 2017

    Hi Bavithraa Marimuthu​,

    As per my understanding; you want some popup to shown as alert on your Mashup. You can use Status message widget for that.

    Add your custom service in your Mashup with OnLoad checked so that service is invoked as soon as Mashup is loaded.

    Also, bind the output of the Service to the message property of the Status widget.

    Now on ServiceInvokeCompleted of this service (available in the right bottom after clicking on the custom service) bind the showMessage event of the Status widget.

    So, as soon as the Mashup is loaded you will get a popup with the alert.

    I hope it helps.