Versions Compared

Key

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

...

Code Block
languagexml
titleExample Template File
<alert xmlns="urn:oasis:names:tc:emergency:cap:1.2">
	<identifier>%IDENTIFIER%</identifier>
	<sender>%SENDER%</sender>
	<sent>%EXPORT_TIME(DF1)%</sent>
	<status>Actual</status>
	<msgType>%MESSAGE_TYPE%</msgType>
	<source>@STATE@, STATE_AGENCY</source>
	<scope>Public</scope>
	<code>urn:oasis:names:tc:emergency:cap:1.2:profile:CAP-AU:1.0</code>
	%ALERT_HISTORY(DF1)%
	<info>
		<language>en-AU</language>
		<category>Met</category>
		<event>EVENT_EVENT</event>
		<urgency>Unknown</urgency>
		<severity>%SEVERITY%</severity>
		<certainty>Observed</certainty>
		<eventCode>
			<valueName>https://govshare.gov.au/xmlui/handle/10772/6495</valueName>
			<value>EVENTCODE</value>
		</eventCode>
		<expires>%EXPIRY_TIME(DF1)%</expires>
		<senderName>Australian Government</senderName>
		<headline>%MESSAGE_TYPE%: River Alert at %LOCATION_NAME% %CROSSING_DIRECTION% %THRESHOLD_NAME% level at %CROSSING_TIME(DF1)% - %THRESHOLD_VALUE(NF1)%  Value: %VALUE(NF1)% (@STATE@)</headline>
		<description>%THRESHOLD_MESSAGE%</description>
		<contact>http://www.bom.gov.au/inside/contacts.shtml</contact>
		<area>
			<areaDesc>%LOCATION_NAME% (RIVER_NAME) - @STATE@</areaDesc>
			<circle>%Y%,%X% 1</circle>
			<geocode>
				<valueName>http://www.iso.org/iso/country_codes.html</valueName>
				<value>AU-@STATE@</value>
			</geocode>
		</area>
	</info>
</alert>


Multivalued

...

Attribute Tags (since 2019.02)


Since 2019.02 it is possible to define custom tags that will be replaced in the template by multivalued attributes.

The multivalued index will be found by matching the threshold event value with the value of specific multivalued matching attribute value.

Also different attributes can be used for up and down crossings.

Code Block
languagexml
titleExample Template File
<matchingValueAttributeId>ruleOutcome</matchingValueAttributeId>
<multiValuedAttributeTag>
   <tag>MVT_SEVERITY</tag>
   <upCrossingAttributeId>severity</upCrossingAttributeId>
   <downCrossingAttributeId>downSeverity</downCrossingAttributeId>
</multiValuedAttributeTag>
<multiValuedAttributeTag>
   <tag>MVT_CERTAINTY</tag>
   <upCrossingAttributeId>certainty</upCrossingAttributeId>
   <downCrossingAttributeId>downCertainty</downCrossingAttributeId>
</multiValuedAttributeTag>
<multiValuedAttributeTag>
   <tag>MVT_DESCRIPTION_1</tag>
   <upCrossingAttributeId>description1</upCrossingAttributeId>
   <downCrossingAttributeId>downDescription1</downCrossingAttributeId>
</multiValuedAttributeTag>
<multiValuedAttributeTag>
   <tag>MVT_DESCRIPTION_2</tag>
   <upCrossingAttributeId>description2</upCrossingAttributeId>
   <downCrossingAttributeId>downDescription2</downCrossingAttributeId>
</multiValuedAttributeTag>

...