Template:— fleet (flt)
Context:— UK_Defence
Date: 2010/03/15 14:22:42
Revision: 1.7
Template: fleet

XML references to the Template

These can be cut and pasted into the XML as required.

fleet

Set up a hyperlink to the template definition.
<template_ref name="fleet" context="UK_Defence" />

Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="fleet" context="UK_Defence" >
  <param name="end_date_year">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="end_date_month">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="end_date_day">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="ID">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="source_organization">
    <param_value>UK_Defence</param_value>
    <description></description>
  </param>
  <param name="name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="operational_requirement">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="start_date_year">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="start_date_month">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="start_date_day">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="fleet">
  <param_in name="end_date_year" value=""/>
  <param_in name="end_date_month" value=""/>
  <param_in name="end_date_day" value=""/>
  <param_in name="ID" value=""/>
  <param_in name="source_organization" value="UK_Defence"/>
  <param_in name="name" value=""/>
  <param_in name="operational_requirement" value=""/>
  <param_in name="start_date_year" value=""/>
  <param_in name="start_date_month" value=""/>
  <param_in name="start_date_day" value=""/>
</template_example>

fleet
/fleet(end_date_year='', end_date_month='', end_date_day='', ID='', source_organization='UK_Defence', name='', operational_requirement='', start_date_year='', start_date_month='', start_date_day='')/

Path

Product_group
%^prod_grp = Product_group%

-- ID
/identifier(
    ID=@ID,
    source_organization=@source_organization,
    type='fleet_id_code',
    items=^prod_grp)/

-- name
/identifier(
    ID=@name,
    source_organization=@source_organization,
    type='fleet_name',
    items=^prod_grp)/

-- end and start dates
/assigning_dated_effectivity(
    start_year=@start_date_year,
    start_month=@start_date_month,
    start_day=@start_date_day,
    start_hour='',
    start_minute='',
    start_second='',
    start_sense=''exact',
    start_hour_offset='',
    start_minute_offset='',
    end_year=@end_date_year,
    end_month=@end_date_month,
    end_day=@end_date_day,
    end_hour='',
    end_minute='',
    end_second='',
    end_sense=''exact',
    end_hour_offset='',
    end_minute_offset='',
    role_class_name='',
    role_ecl_id='urn:plcs:rdl:std',
    items=^prod_grp)/

-- operational requirement
/assigning_requirement(
    class_name='Fleet_operational_requirement',
    ecl_id='urn:plcs:rdl:uk_defence',
    req=@operational_requirement,
    assigned_to=^prod_grp )/

XML representation of path

<refpath
   template="fleet">
   <instantiate
      entity="Product_group"
      context="UK_Defence">
      
   </instantiate>
   <bind
      parameter="prod_grp">
      <express_entity
         entity="Product_group"
         context="UK_Defence">
         
      </express_entity>
   </bind>
   <comment>
      ID
   </comment>
   <call_template
      name="identifier"
      business_context="UK_Defence">
      <param_in
         name="ID"
         value="@ID">
         
      </param_in>
      <param_in
         name="source_organization"
         value="@source_organization">
         
      </param_in>
      <param_in
         name="type"
         value="'fleet_id_code'">
         
      </param_in>
      <param_in
         name="items"
         value="^prod_grp">
         
      </param_in>
   </call_template>
   <comment>
      name
   </comment>
   <call_template
      name="identifier"
      business_context="UK_Defence">
      <param_in
         name="ID"
         value="@name">
         
      </param_in>
      <param_in
         name="source_organization"
         value="@source_organization">
         
      </param_in>
      <param_in
         name="type"
         value="'fleet_name'">
         
      </param_in>
      <param_in
         name="items"
         value="^prod_grp">
         
      </param_in>
   </call_template>
   <comment>
      end and start dates
   </comment>
   <call_template
      name="assigning_dated_effectivity"
      business_context="UK_Defence">
      <param_in
         name="start_year"
         value="@start_date_year">
         
      </param_in>
      <param_in
         name="start_month"
         value="@start_date_month">
         
      </param_in>
      <param_in
         name="start_day"
         value="@start_date_day">
         
      </param_in>
      <param_in
         name="start_hour"
         value="''">
         
      </param_in>
      <param_in
         name="start_minute"
         value="''">
         
      </param_in>
      <param_in
         name="start_second"
         value="''">
         
      </param_in>
      <param_in
         name="start_sense"
         value="''exact'">
         
      </param_in>
      <param_in
         name="start_hour_offset"
         value="''">
         
      </param_in>
      <param_in
         name="start_minute_offset"
         value="''">
         
      </param_in>
      <param_in
         name="end_year"
         value="@end_date_year">
         
      </param_in>
      <param_in
         name="end_month"
         value="@end_date_month">
         
      </param_in>
      <param_in
         name="end_day"
         value="@end_date_day">
         
      </param_in>
      <param_in
         name="end_hour"
         value="''">
         
      </param_in>
      <param_in
         name="end_minute"
         value="''">
         
      </param_in>
      <param_in
         name="end_second"
         value="''">
         
      </param_in>
      <param_in
         name="end_sense"
         value="''exact'">
         
      </param_in>
      <param_in
         name="end_hour_offset"
         value="''">
         
      </param_in>
      <param_in
         name="end_minute_offset"
         value="''">
         
      </param_in>
      <param_in
         name="role_class_name"
         value="''">
         
      </param_in>
      <param_in
         name="role_ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
      <param_in
         name="items"
         value="^prod_grp">
         
      </param_in>
   </call_template>
   <comment>
      operational requirement
   </comment>
   <call_template
      name="assigning_requirement"
      business_context="UK_Defence">
      <param_in
         name="class_name"
         value="'Fleet_operational_requirement'">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="'urn:plcs:rdl:uk_defence'">
         
      </param_in>
      <param_in
         name="req"
         value="@operational_requirement">
         
      </param_in>
      <param_in
         name="assigned_to"
         value="^prod_grp ">
         
      </param_in>
   </call_template>
</refpath>

© UK MOD 2010 — All rights reserved