Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


scrollbar


Contents

Table of Contents

...

Here we set up an Action ID (in this example Alarmmodule.alarm) and link it to an <actionxml> configuration file, see the example below. In this example the logEventCode triggers a workflow with has the tag Alarmmodule.alarm. This action is a one off, meaning it will run only once after triggering, opposed to scheduled tasks that run at a fix schedule. Furthermore, this action can't be triggered more that once every 60 seconds. Please note that the Action ID and tag are the same. This is not required by FEWS, but makes it a lot easier for the operator to follow what's going on. 


Code Block
languagexml
<?xml version="1.0" encoding="UTF-8"

...

?>
<actionxml type="task">
    <oneoff>
        <cardinaltime interval="60" reference="2004-01-01T00:00:00.000+00:00"

...

/>
        <tag name="Alarmmodule.alarm"

...

/>
    </oneoff>
</actionxml>

Event Action Mappings

Here we link the Action ID to a logEventCode. In this example all log messages starting with IWP.* are linked to the Action ID Alarmmodule.alarm. By using the wildcard symbol *, we don't have to specify each and every single eventCode separately. All log messages starting with IWP. will trigger the action we described in the previous secion.

...