<?xml version="1.0" ?>
<!--
  RSS generated by Inquira Information Manager
-->
<rss version="2.0">
<channel>
<title><![CDATA[Hexagon Safety &amp; Infrastructure - Post to topic Add event comment: detailed Ani/Ali remark]]></title>
<link>http://support.hexagonsafetyinfrastructure.com/infocenter/index?page=home</link>
<description>Post to topic Add event comment: detailed Ani/Ali remark</description>
<language>en</language>
<copyright>Copyright © 2002, 2012, Oracle and/or its affiliates. All rights reserved.</copyright>
<generator>Oracle Knowledge Information Manager</generator>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
 

 
<item>
        <title><![CDATA[Add event comment: detailed Ani/Ali remark]]></title>
        <link><![CDATA[http://support.hexagonsafetyinfrastructure.com/infocenter/index?page=forums&topic=507202532eb6c1140153e7b0f30a001cc6&actp=RSS]]></link>
        <description><![CDATA[<p>NOTE: See&nbsp;<strong>****UPDATED VERSION**** in comments below</strong></p>

<p>&nbsp;</p>

<p>TitleName/Agency Point of ContactVersion of EdgeFrontier</p>

<table border="0" cellpadding="0" cellspacing="0" style="border-collapse:collapse; border:0px; margin-bottom:10px">
	<tbody>
		<tr>
			<td style="text-align:left; vertical-align:top; padding:4px; border:1px solid #BEBEBE; background-color:#ffffff">Add event comment: detailed Ani/Ali remark</td>
		</tr>
		<tr>
			<td style="text-align:left; vertical-align:top; padding:4px; border:1px solid #BEBEBE; background-color:#ffffff">Beth Whitezel</td>
		</tr>
		<tr>
			<td style="text-align:left; vertical-align:top; padding:4px; border:1px solid #BEBEBE; background-color:#ffffff">6.3.0.4298</td>
		</tr>
	</tbody>
</table>

<p>Adds a more detailed Ani/Ali remark to an event upon creation and when additional Ani/Ali data is associated with the event. The comment is added using the IFCADEventAddComments command. The Ani/Ali data is queried directly from the CAD database via a view that we added to our instance called&nbsp;vw_AniAliDataForRemark.&nbsp;</p>

<p>If you want to customize what the ani/ali remark says or formatting you would change the view. You could also use this as an example for adding a comment to an event based off of data from a database (or other source). We were advised to put the views in a schema specific to our organization so that when database updates are made our objects would not be deleted/modified.</p>

<p>To set up you will have to enter the database connection information.</p>

<p>The format of the remark currently looks something like this:</p>

<table>
	<tbody>
		<tr>
			<td>LOCATION:6201 6TH AVE - W, TACOMA \PHONE:(360) 979-XXXX \COMP:VERIZON \SRC:WPH1 \PNUM:253-722-XXXX \ESN_TEXT:PSAP=SS911 WIRELESS 911 CALL VERIFY CALLER&#39;S LOCATION +047.256596 -122.517622 \ESN:02957</td>
		</tr>
	</tbody>
</table>

<p>&nbsp;</p>

<p>Here is the view... I couldn&#39;t add multiple files.</p>

<p>CREATE VIEW [ss911].[vw_AniAliDataForRemark] &nbsp;<br />
(<br />
&nbsp;&nbsp; &nbsp; [num_1]<br />
&nbsp;&nbsp; &nbsp;,[eid]<br />
&nbsp;&nbsp; &nbsp;,[eventCallID]<br />
&nbsp;&nbsp; &nbsp;,[aniAliString]<br />
)<br />
AS<br />
&nbsp;&nbsp; &nbsp;WITH cte AS(<br />
&nbsp;&nbsp; &nbsp;--Some of the data when returned contains carriage returns (CHAR(13)) and/or line feeds (CHAR(10)) from the source. Replace these characters with a space to ensure<br />
&nbsp;&nbsp; &nbsp;--AniAli data is not broken up when added to remarks.<br />
&nbsp;&nbsp; &nbsp;SELECT ae.[num_1], ae.[eid], cech.[event_call_id],<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;REPLACE(REPLACE(<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&#39;LOCATION:&#39;&nbsp;&nbsp; &nbsp;+ ISNULL(aniali.[estnum],&#39;&#39;) + &#39; &#39; + ISNULL(aniali.[efeanme],&#39;&#39;) + coalesce(&#39;, &#39; + aniali.loc_id, &#39;&#39;) + &#39;, &#39; + ISNULL(aniali.[ccity],&#39;&#39;) +<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&#39; \PHONE:&#39;&nbsp;&nbsp; &nbsp;+ ISNULL(aniali.[clrnum],&#39;&#39;) &nbsp;+<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&#39; \COMP:&#39;&nbsp;&nbsp; &nbsp;+ COALESCE(aniali.clname, cech.clname, &#39;&#39;) +<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&#39; \SRC:&#39;&nbsp;&nbsp; &nbsp;+ ISNULL(aniali.[service],&#39;&#39;) +<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&#39; \PNUM:&#39;&nbsp;&nbsp; &nbsp;+ ISNULL(aniali.[pilot_nnx],&#39;&#39;) &nbsp; +<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&#39; \ESN_TEXT:&#39;&nbsp;&nbsp; &nbsp;+ ISNULL(aniali.[esn_text],&#39;&#39;) + ISNULL(&#39; &#39; + [y_lat],&#39;&#39;) + ISNULL(&#39; &#39; + [x_long],&#39;&#39;) +<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&#39; \ESN:&#39;&nbsp;&nbsp; &nbsp;+ ISNULL(aniali.[esn], &#39;&#39;)<br />
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;,CHAR(13), &#39; &#39;), CHAR(10), &#39; &#39;) as aniAliString<br />
&nbsp;&nbsp; &nbsp;FROM [dbo].[an_al] as aniali<br />
&nbsp;&nbsp; &nbsp;INNER JOIN [dbo].[common_event_call_history] AS cech ON cech.call_id = aniali.call_num<br />
&nbsp;&nbsp; &nbsp;INNER JOIN [dbo].[agency_event] AS ae ON ae.eid = cech.eid<br />
&nbsp;&nbsp; &nbsp;)<br />
&nbsp;&nbsp; &nbsp;--Do not show rows that have already been listed as a remark for this eid.<br />
&nbsp;&nbsp; &nbsp;SELECT * FROM cte<br />
&nbsp;&nbsp; &nbsp;WHERE aniAliString NOT IN (SELECT comm FROM evcom WHERE eid = cte.eid)<br />
GO</p>

<p>&nbsp;</p>
]]></description>
        <pubDate>2016-04-18 22:30:35 Etc/GMT</pubDate>
        <guid isPermaLink="true"><![CDATA[http://support.hexagonsafetyinfrastructure.com/infocenter/index?page=forums&topic=507202532eb6c1140153e7b0f30a001cc6&actp=RSS]]></guid>
</item><item>
        <title><![CDATA[RE: Add event comment: detailed Ani/Ali remark]]></title>
        <link><![CDATA[http://support.hexagonsafetyinfrastructure.com/infocenter/index?page=forums&topic=507202532eb6c1140153e7b0f30a001cc6&actp=RSS#5072025429bbeff2015a822c3e89007e69]]></link>
        <description><![CDATA[<p>Hi Beth - Did we discover a different way to watch for Advised Events today?</p>
]]></description>
        <pubDate>2017-03-02 05:48:44 Etc/GMT</pubDate>
        <guid isPermaLink="true"><![CDATA[http://support.hexagonsafetyinfrastructure.com/infocenter/index?page=forums&topic=507202532eb6c1140153e7b0f30a001cc6&actp=RSS#5072025429bbeff2015a822c3e89007e69]]></guid>
</item><item>
        <title><![CDATA[RE: Add event comment: detailed Ani/Ali remark]]></title>
        <link><![CDATA[http://support.hexagonsafetyinfrastructure.com/infocenter/index?page=forums&topic=507202532eb6c1140153e7b0f30a001cc6&actp=RSS#5072025405e958f06015a92757c2f004818]]></link>
        <description><![CDATA[<p>Hi Rob,</p>

<p>We have discovered two different ways to watch for Advised Events.</p>

<p>1. Subscribe to the IFCADEventReport, and look for OriginatingActions of CadEventNewAdvised.</p>

<p>2. Subscribe to the IFCADEventReport, and look for OriginatingActions of EventCommentNotification, with the SupplementalData/CommentText of &quot;Accept Advised Event:&quot;</p>

<p>&nbsp; &nbsp; Access the CommentText via XPath like:&nbsp;</p>

<p>/*[local-name()=&#39;IFCADEventReport&#39;]/SupplementalData/CommentText</p>
]]></description>
        <pubDate>2017-04-18 22:01:29 Etc/GMT</pubDate>
        <guid isPermaLink="true"><![CDATA[http://support.hexagonsafetyinfrastructure.com/infocenter/index?page=forums&topic=507202532eb6c1140153e7b0f30a001cc6&actp=RSS#5072025405e958f06015a92757c2f004818]]></guid>
</item><item>
        <title><![CDATA[****UPDATED VERSION**** RE: Add event comment: detailed Ani/Ali remark]]></title>
        <link><![CDATA[http://support.hexagonsafetyinfrastructure.com/infocenter/index?page=forums&topic=507202532eb6c1140153e7b0f30a001cc6&actp=RSS#5072025405e958f06015a92757c2f00407e]]></link>
        <description><![CDATA[<div><strong>****UPDATED VERSION****</strong></div>

<div>The attached system is the latest version of the AniAliRemark system.</div>

<div>This version includes multiple improvements/revisions to:&nbsp;</div>

<div>
<ul>
	<li>account for multiple entries coming in at the same time, by use of a queue</li>
	<li>delay remark injection by 2 seconds for benefit of MPS users view of critical information.</li>
	<li>Add new Ani/Ali &#39;location uncertainty&#39; value &nbsp;to the injected comment string.</li>
	<li>convert view into table function</li>
	<li>eliminate chance of duplicates</li>
</ul>
</div>

<div>The system works in this way:</div>

<div>
<ul>
	<li>When a CadEventNew or CadEventAdvised &#39;OriginatingAction&#39; message comes through the published IFCAD930.IFCADEventReport:
	<ul>
		<li>we insert the AgencyEventID into a new series as a &quot;QualifyingAniAliEvent&quot;</li>
	</ul>
	</li>
	<li>Also, when a EventCommentNotification message comes through the published IFCAD930.IFCADEventReport, with the text (StartsWith) &quot;Duplicate Event:&quot; OR &quot;Accept Advised Event&quot;:
	<ul>
		<li>we insert the AgencyEventID into a new series as a &quot;QualifyingAniAliEvent&quot;</li>
	</ul>
	</li>
	<li>When a new row is added to the QualifyingAniAliEvent series, an AniAliRemarkEnqueue stored procedure is executed, which captures the aniali string (via custom function), and inserts necessary information into a database table</li>
	<li>Every 2 seconds (configurable), an AniAliRemarkDequeue stored procedure is executed, which selects data from the above mentioned table, returns it to the EdgeFrontier calling system (into series AniAliDataForRemark), and deletes the same rows from the existing table (eliminates chance of duplicates).</li>
	<li>When a new row is added to the AniAliDataForRemark series, the injection command (IFCAD930.IFCADCommands.IFCADEventAddComments) is called, with given parameters which include the target AgencyEventID and the desired ANIALI remark.</li>
</ul>
</div>
]]></description>
        <pubDate>2017-04-24 21:58:23 Etc/GMT</pubDate>
        <guid isPermaLink="true"><![CDATA[http://support.hexagonsafetyinfrastructure.com/infocenter/index?page=forums&topic=507202532eb6c1140153e7b0f30a001cc6&actp=RSS#5072025405e958f06015a92757c2f00407e]]></guid>
</item>
</channel>
</rss>
