<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://calidusassist.adcservices.apteancloud.com/calidus-assist/OBS/index.php?action=history&amp;feed=atom&amp;title=FS_315750_PROD_Load_Start_Metrics</id>
	<title>FS 315750 PROD Load Start Metrics - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://calidusassist.adcservices.apteancloud.com/calidus-assist/OBS/index.php?action=history&amp;feed=atom&amp;title=FS_315750_PROD_Load_Start_Metrics"/>
	<link rel="alternate" type="text/html" href="https://calidusassist.adcservices.apteancloud.com/calidus-assist/OBS/index.php?title=FS_315750_PROD_Load_Start_Metrics&amp;action=history"/>
	<updated>2026-07-01T15:10:48Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.8</generator>
	<entry>
		<id>https://calidusassist.adcservices.apteancloud.com/calidus-assist/OBS/index.php?title=FS_315750_PROD_Load_Start_Metrics&amp;diff=1443&amp;oldid=prev</id>
		<title>Anw: v0.1 - Initial Creation</title>
		<link rel="alternate" type="text/html" href="https://calidusassist.adcservices.apteancloud.com/calidus-assist/OBS/index.php?title=FS_315750_PROD_Load_Start_Metrics&amp;diff=1443&amp;oldid=prev"/>
		<updated>2014-02-25T15:03:28Z</updated>

		<summary type="html">&lt;p&gt;v0.1 - Initial Creation&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;div class=&amp;quot;noprint&amp;quot;&amp;gt;&lt;br /&gt;
{{#vardefine:Client|PROD}}&lt;br /&gt;
{{#vardefine:ClientName|PROD}}&lt;br /&gt;
{{#vardefine:System|''CALIDUS'' ePOD}}&lt;br /&gt;
{{#vardefine:Doc_Title|Load Start Metrics}}&lt;br /&gt;
{{#vardefine:Version|0.1}}&lt;br /&gt;
{{#vardefine:Date|25th February 2014}}&lt;br /&gt;
{{#vardefine:Reference|315750}}&lt;br /&gt;
{{#vardefine:Year|2014}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
{{Doc_Title&lt;br /&gt;
|Client={{#var:ClientName}}&lt;br /&gt;
|System={{#var:System}}&lt;br /&gt;
|Title={{#var:Doc_Title}}&lt;br /&gt;
|Reference=FS {{#var:Reference}}&lt;br /&gt;
|Version={{#var:Version}}&lt;br /&gt;
|Date={{#var:Date}}&lt;br /&gt;
|Year={{#var:Year}}&lt;br /&gt;
}} &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- TOC --&amp;gt; &lt;br /&gt;
&amp;lt;div class=&amp;quot;noprint&amp;quot;&amp;gt;&lt;br /&gt;
= Functional Overview  =&lt;br /&gt;
== Client Requirement  ==&lt;br /&gt;
Currently, 'stop' debrief from {{#var:System}} is not possible for C-TMS where a trip has stops with no orders (e.g. start-up (SU) stop or closedown (CL) stop where no order activity occurs).  Trips are therefore not set to COMPLETED status.&lt;br /&gt;
&lt;br /&gt;
== Solution Overview ==&lt;br /&gt;
A message needs to be triggered from {{#var:System}} to cover the debrief of the stop times for start-up (SU) and/or closedown (CL) stops.  C-TMS needs to handle these new messages and update the stop times on the appropriate trip stops.&lt;br /&gt;
&lt;br /&gt;
A new trigger point is required in {{#var:System}} to generate the {{#var:System}}_EXPORT_LOAD message exactly as above but as soon as possible after the the start ODO is captured:&lt;br /&gt;
&lt;br /&gt;
This will be utilised to send the stop level debrief actual times for the SU stop and also the start ODO value.  &lt;br /&gt;
&lt;br /&gt;
Analysis is required to find a logical point where this can be triggered, ensuring that it is only sent once at the start.&lt;br /&gt;
&lt;br /&gt;
When the load is downloaded to the device for the first time the device date and time are stored in the following fields:&lt;br /&gt;
*	EPL_LOAD_START_ACTUAL_DATE&lt;br /&gt;
*	EPL_LOAD_START_ACTUAL_TIME&lt;br /&gt;
&lt;br /&gt;
The ODO reading is also stored in the following field:&lt;br /&gt;
*	EPL_MILEAGE_START&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Scope ==&lt;br /&gt;
* This functionality will be developed in the latest version of {{#var:System}} only.&lt;br /&gt;
* This functionality will be developed in the Android application only and will not be available in the Windows Mobile application.&lt;br /&gt;
* ''CALIDUS'' TMS functionality is mentioned only by reference in this solution - see [[#Appendix_A:_Quote_.26_Document_References|Appendix A]] for a link to the specification of the changes.&lt;br /&gt;
* Note that the changes to ensure that Load is updated on {{#var:System}} after the Load Metrics entry at the start of the load have already been completed in the latest version of the Android application, so no further modifications are required to that system.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- NEW PAGE --&amp;gt; &lt;br /&gt;
= Set-up  =&lt;br /&gt;
&lt;br /&gt;
== Pre-requisites  ==&lt;br /&gt;
* A working {{#var:System}} system.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Menu Structure  ==&lt;br /&gt;
None&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Data  ==&lt;br /&gt;
Modify or create an EPOD_XF_CONFIG record for EPL_XF_ID &amp;quot;LOAD&amp;quot; and ensure this has an EPL_XF_MSG_TYPE set to &amp;quot;BOTH&amp;quot;. Assign this to a Site.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- NEW PAGE --&amp;gt; &lt;br /&gt;
= Functional Description  =&lt;br /&gt;
== Admin Changes ==&lt;br /&gt;
Add the following new fields to the XF Config Maintenance screen XF_Config.aspx:&lt;br /&gt;
*     EPL_XF_MSG_TYPE - A text field with allowed text values as follows:&lt;br /&gt;
**    &amp;quot;START&amp;quot;  - When Load Started&lt;br /&gt;
**    &amp;quot;END&amp;quot; - When Load Completed - default value&lt;br /&gt;
**    &amp;quot;BOTH&amp;quot; - When Load Started and Completed&lt;br /&gt;
This should be enabled for entry for export ID &amp;quot;LOAD&amp;quot; only. Note that the existing blank field value should default to &amp;quot;END&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Import/Export Changes ==&lt;br /&gt;
The current functionality to send LOAD_UPDATE messages (EPL_XF_ID = &amp;quot;LOAD&amp;quot;) will be extended. The existing field EPL_XF_MSG_TYPE (referred to as EPL_XF_MSG_TYPES in other specifications) will be extended to define whether the process is sending messages at the start of a load (value &amp;quot;START&amp;quot;), end of a load (values &amp;quot;END&amp;quot; or blank) or both (value &amp;quot;BOTH&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
This will be achieved by changing the existing database procedure EPOD_XFER_SELECT_LOAD to:&lt;br /&gt;
* Optionally link to the EPOD_XF_CONFIG of the Load's EPL_SITE_ID.&lt;br /&gt;
* Select records based on the value of EPOD_XF_CONFIG.EPL_XF_MSG_TYPE, as follows:&lt;br /&gt;
** &amp;quot;START&amp;quot; - EPL_STATUS = &amp;quot;I&amp;quot; AND EPL_XFER_FLAG = &amp;quot;&amp;quot; AND (EPL_MILEAGE_START &amp;lt;&amp;gt; 0 OR EPL_UDF_LOAD_START &amp;lt;&amp;gt; &amp;quot;&amp;quot;)&lt;br /&gt;
** &amp;quot;END&amp;quot; or &amp;quot;&amp;quot; (blank) - (EPL_STATUS = &amp;quot;X&amp;quot; OR EPL_STATUS = &amp;quot;C&amp;quot;) AND (EPL_XFER_FLAG = &amp;quot;&amp;quot; OR EPL_XFER_FLAG = &amp;quot;P&amp;quot;)&lt;br /&gt;
** &amp;quot;BOTH&amp;quot; - The two above combined i.e. (EPL_STATUS = &amp;quot;I&amp;quot; AND EPL_XFER_FLAG = &amp;quot;&amp;quot; AND (EPL_MILEAGE_START &amp;lt;&amp;gt; 0 OR EPL_UDF_LOAD_START &amp;lt;&amp;gt; &amp;quot;&amp;quot;) ) OR ( (EPL_STATUS = &amp;quot;X&amp;quot; OR EPL_STATUS = &amp;quot;C&amp;quot;) AND (EPL_XFER_FLAG = &amp;quot;&amp;quot; OR EPL_XFER_FLAG = &amp;quot;P&amp;quot;) )&lt;br /&gt;
&lt;br /&gt;
{{Note}} The existing load creation DAL and database definition or EPOD_LOAD and the database procedure EPOD_LOAD_INSERT must be checked to ensure that new loads are created with a blank value in EPL_XFER_FLAG.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The existing .NET procedure EPOD_SYS_EXPORT.ExportAllOutstandingLoads will take the returned records and interface them as per the settings. Note that any without a valid EPOD_XF_CONFIG against the site will be set as transferred (value &amp;quot;Y&amp;quot;). This procedure will be modified to check the value of EPL_XFER_FLAG before it is changed, as follows:&lt;br /&gt;
* &amp;quot;&amp;quot; (Blank) - Set to &amp;quot;N&amp;quot;.&lt;br /&gt;
* &amp;quot;N&amp;quot; or &amp;quot;P&amp;quot; - Set to &amp;quot;Y&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The actual export XML sent for load updates need not be changed, as it already contains all the details required by external systems to update correctly.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
 MEDIA LANDSCAPE YES&lt;br /&gt;
= Appendix A: TEST PLAN  =&lt;br /&gt;
&lt;br /&gt;
{{TestPlan_Header&lt;br /&gt;
|Title={{#var:Doc_Title}}&lt;br /&gt;
|Log={{#var:Reference}}&lt;br /&gt;
|Description=Test the ...&lt;br /&gt;
|MenuAccess=None&lt;br /&gt;
|Prerequisites=None&lt;br /&gt;
|Objective=To test that: ...&lt;br /&gt;
}} &lt;br /&gt;
{{ #vardefine: Cycle | 0 }}{{ #vardefine: SubCycle | 0 }}&lt;br /&gt;
{{TestPlan_CycleHeader&lt;br /&gt;
|Cycle={{ #vardefineecho: Cycle | {{ #expr: {{ #var: Cycle }} + 1 }} }}{{ #vardefine: SubCycle | {{ #var: Cycle }} }}&lt;br /&gt;
|Title=Test Title&lt;br /&gt;
|Notes=&lt;br /&gt;
}} {{TestPlan_Test&lt;br /&gt;
|Test={{ #vardefineecho: SubCycle | {{ #expr: {{ #var: SubCycle }} + 0.01 }} }}&lt;br /&gt;
|Action=Do something&lt;br /&gt;
|Result=Some expected results&lt;br /&gt;
|Remarks=&lt;br /&gt;
|PassFail=&lt;br /&gt;
}} {{TestPlan_CycleFooter}} &lt;br /&gt;
&lt;br /&gt;
MEDIA LANDSCAPE NO&lt;br /&gt;
--&amp;gt; &lt;br /&gt;
&amp;lt;!-- NEW PAGE --&amp;gt; &lt;br /&gt;
{{Doc_Appendix&lt;br /&gt;
|Appendix=A&lt;br /&gt;
|Estimate=Y&lt;br /&gt;
|Glossary={{#var:System}}&lt;br /&gt;
|Ref1=FS-311976 CTMS-ePOD Start End Stop Debrief&lt;br /&gt;
|RefV1=1.0&lt;br /&gt;
|RefDate1=&lt;br /&gt;
|REQ=0&lt;br /&gt;
|EST=0&lt;br /&gt;
|FS=0.5&lt;br /&gt;
|TS=0&lt;br /&gt;
|DEV=1.5&lt;br /&gt;
|ST=0.25&lt;br /&gt;
|IMP=0.25&lt;br /&gt;
|EREQ=0&lt;br /&gt;
|EEST=0&lt;br /&gt;
|EFS=0&lt;br /&gt;
|ETS=0&lt;br /&gt;
|EDEV=0&lt;br /&gt;
|ESTT=0&lt;br /&gt;
|EIMP=0&lt;br /&gt;
|Client={{#var:Client}}&lt;br /&gt;
|Year={{#var:Year}}&lt;br /&gt;
|FSEST=Y&lt;br /&gt;
|FOC=Y&lt;br /&gt;
|Rev1=Matt Tipping&lt;br /&gt;
|Rev1Title=Project Manager&lt;br /&gt;
|Rev2Title=Client Representative&lt;br /&gt;
}}&amp;lt;/div&amp;gt; &lt;br /&gt;
[[Category:{{#var:Client}} FS]]&lt;/div&gt;</summary>
		<author><name>Anw</name></author>
	</entry>
</feed>