Versions Compared

Key

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

...

Example of Action Config to run one instance of a task.

Code Block
languagexml
<?xml version="1.0" encoding="UTF-8"?>
<actionxml type="task">
	<oneoff>
		<cardinaltime interval="900" reference="2004-01-01T00:00:00.000+00:00"/>
        <tag name="EXPORT_CURRENT"/>
	</oneoff>
</actionxml>

Note1: one off tasks are commonly suspended. If a triggered Task is pending, T0 will be taken from the TaskProperties. A suspended one off task -off Task, for T0 to be set. requires a cardinal time step and a reference time to establish a correct T0 for the run. The new T0 will be the latest valid T0 for the specified cardinal time step. Suppose a task is triggered at 11:59 GMT with a 3 hour cardinal time-step from midnight, T0 will become 09:00 GMT, when triggered at 12:00 GMT, T0 will become 12:00 GMT. The cardinal time step is important as it also controls how often the master controller will run an instance of the task if triggered by an event. It will only run once every cardinal timestep, even though there are multiple events in that period.

...

Code Block
languagexml
titleExample for multiple upload
<?xml version="1.0" encoding="UTF-8"?>
<eventActions  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:///C:/Developement/trunk/master-controller/src/main/resources/schemas/eventactions.xsd"><eventActions>
    <eventAction actionConfigurationId="New Zeland" description="Description">
        <enhance>
            <tag name="AIRE_FORECAST"/>
            <resume/>
        </enhance>
    </eventAction>
    <eventAction actionConfigurationId="newId" description="Description2">
        <enhance>
            <tag name="Denver"/>
            <suspend/>
        </enhance>
    </eventAction>
    <eventAction actionConfigurationId="EDEN_ID" description="Description3">
        <enhance>
            <tag name="EDEN_FORECAST"/>
            <repeatinterval interval="3600"/>
        </enhance>
    </eventAction>
    <eventAction actionConfigurationId="EXPORT_ID" description="Description4">
        <oneoff>
            <cardinaltime interval="900" reference="2004-01-01T00:00:00.000+00:00"/>
            <tag name="EXPORT_CURRENT"/>
        </oneoff>
    </eventAction>
</eventActions>

...

3. map different event codes to the different event actions.


Related information on Event

...

codes

See also event - codes for an overview of the event-codes which also contains a brief list of the most commonly used event codes.