Example Filter Pack for Spillman

Top  Previous  Next

<DebugFile>

 <Active>

         True

 </Active>

 <Name>

         debug.txt

 </Name>

</DebugFile>

 

<Filter>

 <Comment>

         Check to see if processed data is original CAD output

 </Comment>

 <Search>

  <Section>

 Recipient

  </Section>

  <Type>

 Literal

  </Type>

  <Text>

 fromcad

  </Text>

 </Search>

 <Replace>

         <Section>

                 Flag

         </Section>

         <Scope>

                 Section

         </Scope>

         <Text>

                 True

         </Text>

 </Replace>

</Filter>

 

<Filter>

 <Comment>

         abort if not original CAD output

 </Comment>

 <Search>

  <Section>

 Flag

  </Section>

  <Type>

 Literal

  </Type>

  <Text>

 False

  </Text>

 </Search>

 <Replace>

         <Section>

                 Flag

         </Section>

         <Scope>

                 Section

         </Scope>

         <Text>

                 True

         </Text>

 </Replace>

<Abort>True</Abort>

</Filter>

 

<Filter>

 <Comment>

         set recipient to an invalid name so if there aren't any matches, the file won't be

         accepted by PageGate

 </Comment>

   <Search>

       <Section>

           Message

       </Section>

       <Type>

           RegEx

       </Type>

       <Text>

                 (?s).*

       </Text>

   </Search>

 <Replace>

         <Section>

                 Recipient

         </Section>

         <Scope>

                 Section

         </Scope>

         <Text>

                 nobody

         </Text>

 </Replace>

</Filter>

 

<Filter>

 <Comment>

         In this example, we want to restrict what notification types will trigger a message to an agency. In this example, if the incident nature is AIRCRAFT EMERGE or AIRCRAFT HIJACK or ARSON or BOMB THREAT or DROWNING or ESCAPE PRISONER or EXPLOSION or FIRE CHEM SPILL or FIRE FUEL SPILL or FIRE WILDLAND or FIRE STRUCTURE or GAS LEAK INSIDE or GAS LEAK OUTSID or GUNSHOT WOUND or MUTUAL AID OUT or PURSUIT or RAILROAD INCIDE or RESCUE or SCHOOL LOCKDOWN or SEARCH or SMOKE INVESTIGA or UNATTENDED DEAT or WEATHER INCIDEN, the filter will dispatch the message to the recipient or group referenced in the 'Text' section in the <Replace> statement.

 </Comment>

   <Search>

       <Section>

           Message

       </Section>

       <Type>

           RegEx

       </Type>

       <Text>

 

(?s).*<IncidentNature>(AIRCRAFT EMERGE|AIRCRAFT HIJACK|ARSON|BOMB THREAT|DROWNING|ESCAPE PRISONER|EXPLOSION|FIRE CHEM SPILL|FIRE FUEL SPILL|FIRE WILDLAND|FIRE STRUCTURE|GAS LEAK INSIDE|GAS LEAK OUTSID|GUNSHOT WOUND|MUTUAL AID OUT|PURSUIT|RAILROAD INCIDE|RESCUE|SCHOOL LOCKDOWN|SEARCH|SMOKE INVESTIGA|UNATTENDED DEAT|WEATHER INCIDEN)<\/IncidentNature>

 

       </Text>

   </Search>

 <Replace>

         <Section>

                 Recipient

         </Section>

         <Scope>

                 Section

         </Scope>

         <Text>

                 ExampleRecipientOrGroup

         </Text>

 </Replace>

<WriteFile>

         THE PATH TO YOUR SCRIPT'S FOLDER\%InputFileNameBase%-%FilterIndex%%InputFileNameExtension%

 </WriteFile>

</Filter>

 

<Filter>

 <Comment>

         In this example, we want to make sure the "Search and Rescue" team is ALWAYS messaged in addition to the original agency dispatched any time the call type is 'SEARCH' is used.

 </Comment>

   <Search>

       <Section>

           Message

       </Section>

       <Type>

           RegEx

       </Type>

       <Text>

 

(?s).*<IncidentNature>SEARCH<\/IncidentNature>

 

       </Text>

   </Search>

 <Replace>

         <Section>

                 Recipient

         </Section>

         <Scope>

                 Section

         </Scope>

         <Text>

                 YourSearchAndRescueRecipientOrGroup

         </Text>

 </Replace>

 <WriteFile>

         THE PATH TO YOUR SCRIPT'S FOLDER\%InputFileNameBase%-%FilterIndex%%InputFileNameExtension%

 </WriteFile>

</Filter>

 

<Filter>

 <Comment>

         In this example, we want to make sure the "Search and Rescue" team is ALWAYS messaged in addition to the original agency dispatched any time the call type is 'RESCUE' is used.

 </Comment>

   <Search>

       <Section>

           Message

       </Section>

       <Type>

           RegEx

       </Type>

       <Text>

 

(?s).*<IncidentNature>RESCUE<\/IncidentNature>

 

       </Text>

   </Search>

 <Replace>

         <Section>

                 Recipient

         </Section>

         <Scope>

                 Section

         </Scope>

         <Text>

                 YourSearchAndRescueRecipientOrGroup

         </Text>

 </Replace>

 <WriteFile>

         THE PATH TO YOUR SCRIPT'S FOLDER\%InputFileNameBase%-%FilterIndex%%InputFileNameExtension%

 </WriteFile>

</Filter>

 

<Filter>

 <Comment>

         In this example, we're scanning the address for a specific value. If it finds that value, the agency referenced should be messaged in addition to the original agency dispatched. This can be used to dispatch additional resources when an event takes place at a school, hospital or other specifically addressed location.

 </Comment>

   <Search>

       <Section>

           Message

       </Section>

       <Type>

           RegEx

       </Type>

       <Text>

 

(?s).*<RespondToAddress>An Example Address<\/RespondToAddress>

 

       </Text>

   </Search>

 <Replace>

         <Section>

                 Recipient

         </Section>

         <Scope>

                 Section

         </Scope>

         <Text>

                 ExampleRecipientOrGroup

         </Text>

 </Replace>

 <WriteFile>

         THE PATH TO YOUR SCRIPT'S FOLDER\%InputFileNameBase%-%FilterIndex%%InputFileNameExtension%

 </WriteFile>

</Filter>

 

<Filter>

 <Comment>

         set recipient back to an invalid name in case the above filter changed it

 </Comment>

   <Search>

       <Section>

           Message

       </Section>

       <Type>

           RegEx

       </Type>

       <Text>

                 (?s).*

       </Text>

   </Search>

 <Replace>

         <Section>

                 Recipient

         </Section>

         <Scope>

                 Section

         </Scope>

         <Text>

                 nobody

         </Text>

 </Replace>

</Filter>

 

 

<Filter>

 <Comment>

         In this example, the specified agency should receive all call types.

 </Comment>

     <Search>

         <Section>

             Message

         </Section>

         <Type>

             RegEx

         </Type>

         <Text>

 <AgencyCode>ExampleAgencyCode</AgencyCode>

         </Text>

     </Search>

 

 <Replace>

         <Section>

                 Recipient

         </Section>

         <Scope>

                 Section

         </Scope>

         <Text>

                 ExampleAgencyCode

         </Text>

 </Replace>

 

 <Continue>

         False

 </Continue>

</Filter>