Template:— item_of_design (itm_of_des)
Context:— UK_Defence
Date: 2010/03/16 14:54:56
Revision: 1.3
Template: item_of_design

XML references to the Template

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

item_of_design

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="item_of_design" context="UK_Defence" >
  <param name="part_number">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="des_auth_ncage_code">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="item_version">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="iod_view">
    <param_value>Item_of_design</param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="item_of_design">
  <param_in name="part_number" value=""/>
  <param_in name="des_auth_ncage_code" value=""/>
  <param_in name="item_version" value=""/>
  <param_in name="iod_view" value="Item_of_design"/>
</template_example>

item_of_design
/item_of_design(part_number='', des_auth_ncage_code='', item_version='', iod_view='Item_of_design')/

Path

/item(
    oem_part_number=@part_number,
    item_id_class='OEM_part_type_code',
    mfr_ncage_code=@des_auth_ncage_code,
    item_vn_id=@item_version,
    item_lifecycle_stage='Design')/

-- Call to /item above assumes the default item_id_class will be OEM_Part_number - hence does not specify this explicitly again here.
-- re-direct the output from the call..
%^item_of_design = $item.item%
%^item_of_design_version = $item.item_version%
%^item_of_design_view = $item.item_view%
%^item_of_design_contxt = $item.item_contxt%

-- provide the role of the item by classifying the item of design view
/assigning_reference_data(
    items=^item_of_design_view,
    class_name=@iod_view,
    ecl_id='urn:plcs:rdl:uk_defence')/

XML representation of path

<refpath
   template="item_of_design">
   <call_template
      name="item"
      business_context="UK_Defence">
      <param_in
         name="oem_part_number"
         value="@part_number">
         
      </param_in>
      <param_in
         name="item_id_class"
         value="'OEM_part_type_code'">
         
      </param_in>
      <param_in
         name="mfr_ncage_code"
         value="@des_auth_ncage_code">
         
      </param_in>
      <param_in
         name="item_vn_id"
         value="@item_version">
         
      </param_in>
      <param_in
         name="item_lifecycle_stage"
         value="'Design'">
         
      </param_in>
   </call_template>
   <comment>
      Call to /item above assumes the default item_id_class will be OEM_Part_number - hence does not specify this explicitly again here.
   </comment>
   <comment>
      re-direct the output from the call..
   </comment>
   <bind
      parameter="item_of_design">
      <template_instance
         template="item"
         parameter="item">
         
      </template_instance>
   </bind>
   <bind
      parameter="item_of_design_version">
      <template_instance
         template="item"
         parameter="item_version">
         
      </template_instance>
   </bind>
   <bind
      parameter="item_of_design_view">
      <template_instance
         template="item"
         parameter="item_view">
         
      </template_instance>
   </bind>
   <bind
      parameter="item_of_design_contxt">
      <template_instance
         template="item"
         parameter="item_contxt">
         
      </template_instance>
   </bind>
   <comment>
      provide the role of the item by classifying the item of design view
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="UK_Defence">
      <param_in
         name="items"
         value="^item_of_design_view">
         
      </param_in>
      <param_in
         name="class_name"
         value="@iod_view">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="'urn:plcs:rdl:uk_defence'">
         
      </param_in>
   </call_template>
</refpath>

© UK MOD 2010 — All rights reserved