Versions Compared

Key

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

...

When scheduling the task, set the start time somewhere in the future, otherwise the task runs immediately. Then search the new task in "scheduled tasks" and set it to suspend. When the action config is triggered, then it copies the suspended task and runs the copy once.

Example sending emails with logentries and reports

Code Block
xml
xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<mc-system-alerter xmlns="http://www.wldelft.nl/fews" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://www.wldelft.nl/fews http://fews.wldelft.nl/schemas/version1.0/mcSystemAlerter.xsd">
    <alerts>
        <emailalert>
            <recipients>
                <recipient email="Some.body@somewhere.org"/>
            </recipients>
            <configuration>
                <smtp fromaddress="fromaddress@somewhere.org" host="smtp.somewhere.org" port="25"/>
            </configuration>
            <subject>
                <subjectline content="This is my subject line DATE_TIME MC_ID"/>
                <substitutions>
                    <tag tagid="MC_ID"/>
                    <tag tagid="DATE_TIME"/>
                </substitutions>
            </subject>
            <body value="This is the message body"/>
            <attachments>
                <attachment eventcodefilter="MyEvent.Code" loglevelthreshold="LOG_ALL" 
                    maxentrycount="100" maxlogage="15" maxsize="10" sortorder="LOCAL_AVAILABLE_TIME" xsi:type="logentriesattachmentType">
                    <filename includedatestamp="true" prefix="logentries"/>
                </attachment>
                <attachment maxsize="10" xsi:type="reportsattachmentType">
                    <filename includedatestamp="true" prefix="report"/>
                    <reportcontents>
                        <latestreportsselection includeselection="true">
                            <includes/>
                        </latestreportsselection>
                        <currentreportsselection includeselection="true">
                            <excludes/>
                        </currentreportsselection>
                    </reportcontents>
                </attachment>
            </attachments>
        </emailalert>
    </alerts>
</mc-system-alerter>

...