Contents
Introduction
Starting with release 2011.02, a task for the MC_SytemAlerter workflow can be configured to send an alert to the Alarmmodule, developed by Imtech for the IWP system. The alert sending has been implemented as an invocation of the Alarmmodule via a SOAP call (also know as a Webservice call). This page how to describe the FEWS-related part of the implementation.
...
In the fixed alert scenario, the alert is entered as part of the taskproperties of the scheduled MC_SystemAlerter task. This can be used to send regular or one-off alerts and will probably mostly be used for testing purposes.
Code Block |
---|
|
<?xml version="1.0" encoding="UTF-8"?>
<taskList
xsi:schemaLocation="http://www.wldelft.nl/fews http://fews.wldelft.nl/schemas/version1.0/taskList.xsd"
xmlns="http://www.wldelft.nl/fews" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<task>
<taskStatus>S</taskStatus>
<runOnFailOver>false</runOnFailOver>
<taskProperties>
<description>Test IWP_0_TEST Alarm</description>
<workflowId>MC_SystemAlerter</workflowId>
<taskSelection>
<scheduledTask>
<schedulingPeriod>
<startDate>2010-12-20T13:28:00.000Z</startDate>
<endDate>3010-12-20T13:28:00.000Z</endDate>
</schedulingPeriod>
<schedulingInterval unit="minute" multiplier="30"/>
</scheduledTask>
</taskSelection>
<forecastPriority>Normal</forecastPriority>
<makeForcastCurrent>false</makeForcastCurrent>
<makeStateCurrent>false</makeStateCurrent>
<mcSystemAlerter>
<alerts>
<alarmModuleAlert>
<webserviceURL>http://localhost:8989/AlarmModuleManager/webservices/alarmService</webserviceURL>
<alarmDiagLine code="IWP_0_TEST" description="Test Alert from FEWS" source="MC01" level="1"/>
</alarmModuleAlert>
</alerts>
</mcSystemAlerter>
</taskProperties>
</task>
</taskList>
|
...
- %LOG% will be replaced by the message part of log entry
- %EVENT_CODE% will be replaced by the event code of the log entry
- %MC_ID% will be replaced by the MasterController ID creating the alert.
Code Block |
---|
|
<?xml version="1.0" encoding="UTF-8"?>
<taskList
xsi:schemaLocation="http://www.wldelft.nl/fews http://fews.wldelft.nl/schemas/version1.0/taskList.xsd"
xmlns="http://www.wldelft.nl/fews" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<task>
<taskStatus>S</taskStatus>
<runOnFailOver>false</runOnFailOver>
<taskProperties>
<description>IWP_0_Alarm</description>
<workflowId>MC_SystemAlerter</workflowId>
<taskSelection>
<singleTask>
<time0>2011-09-21T12:43:00.000Z</time0>
</singleTask>
</taskSelection>
<forecastPriority>Normal</forecastPriority>
<makeForcastCurrent>false</makeForcastCurrent>
<makeStateCurrent>false</makeStateCurrent>
<mcSystemAlerter>
<alerts>
<alarmModuleAlert>
<webserviceURL>http://localhost:8989/AlarmModuleManager/webservices/alarmService</webserviceURL>
<alarmDiagTemplateLine code="%EVENT_CODE%" description="%LOG%" source="%MC_ID%" level="1"/>
</alarmModuleAlert>
</alerts>
</mcSystemAlerter>
</taskProperties>
</task>
</taskList>
|