Template:— representing_product_location (rep_prod_loc)
Context:— NDLO
Date: 2005/08/15 08:20:35 :
Revision: 1.2
Template: representing_product_location

XML references to the Template

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

representing_product_location

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="representing_product_location" context="NDLO" >
  <param name="prod_loc_id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="prod_loc_id_class_name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="prod_loc_id_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="prod_loc_class_name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="prod_loc_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="referenced_product">
    <param_value>Product</param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="representing_product_location">
  <param_in name="prod_loc_id" value=""/>
  <param_in name="prod_loc_id_class_name" value=""/>
  <param_in name="prod_loc_id_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="prod_loc_class_name" value=""/>
  <param_in name="prod_loc_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="referenced_product" value="Product"/>
</template_example>

representing_product_location
/representing_product_location(prod_loc_id='', prod_loc_id_class_name='', prod_loc_id_ecl_id='urn:plcs:rdl:std', prod_loc_class_name='', prod_loc_ecl_id='urn:plcs:rdl:std', referenced_product='Product')/

Path

Product_based_location_identification

-- The parameter is a reference parameter so the Product_based_location_identification
-- entity can be referred to when this template is used.
%^prod_bas_loc_id = Product_based_location_identification%

-- Set the attribute values
^prod_bas_loc_id.location_identification = '/IGNORE'
^prod_bas_loc_id.location_name = '/IGNORE'

-- Assign identifier to Product_based_location_identification
/assigning_identification_with_no_organization(
    items=^prod_bas_loc_id,
    id=@prod_loc_id,
    id_class_name=@prod_loc_id_class_name,
    id_ecl_id=@prod_loc_id_ecl_id)/

-- Assign type of location to Product_based_location_identification
/assigning_reference_data(
    items=^prod_bas_loc_id,
    class_name=@prod_loc_class_name,
    ecl_id=@prod_loc_ecl_id)/

-- Assign the Product_based_location_identification
-- to the instances passed into the template through the @referenced_product
-- input parameter (e.g. a Part_view_definition, Breakdown_element)
^prod_bas_loc_id.referenced_product -> @referenced_product
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Product_based_location_identification.location_identification '/IGNORE'
Product_based_location_identification.location_name '/IGNORE'

XML representation of path

<refpath
   template="representing_product_location">
   <instantiate
      entity="Product_based_location_identification"
      context="NDLO">
      
   </instantiate>
   <comment>
      The parameter is a reference parameter so the Product_based_location_identification
   </comment>
   <comment>
      entity can be referred to when this template is used.
   </comment>
   <bind
      parameter="prod_bas_loc_id">
      <express_entity
         entity="Product_based_location_identification"
         context="NDLO">
         
      </express_entity>
   </bind>
   <comment>
      Set the attribute values
   </comment>
   <assign
      assignment_type="equals"
      context="NDLO">
      <target>
         <bound_parameter
            name="prod_bas_loc_id.location_identification">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="NDLO">
      <target>
         <bound_parameter
            name="prod_bas_loc_id.location_name">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Assign identifier to Product_based_location_identification
   </comment>
   <call_template
      name="assigning_identification_with_no_organization"
      business_context="NDLO">
      <param_in
         name="items"
         value="^prod_bas_loc_id">
         
      </param_in>
      <param_in
         name="id"
         value="@prod_loc_id">
         
      </param_in>
      <param_in
         name="id_class_name"
         value="@prod_loc_id_class_name">
         
      </param_in>
      <param_in
         name="id_ecl_id"
         value="@prod_loc_id_ecl_id">
         
      </param_in>
   </call_template>
   <comment>
      Assign type of location to Product_based_location_identification
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="NDLO">
      <param_in
         name="items"
         value="^prod_bas_loc_id">
         
      </param_in>
      <param_in
         name="class_name"
         value="@prod_loc_class_name">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="@prod_loc_ecl_id">
         
      </param_in>
   </call_template>
   <comment>
      Assign the Product_based_location_identification
   </comment>
   <comment>
      to the instances passed into the template through the @referenced_product
   </comment>
   <comment>
      input parameter (e.g. a Part_view_definition, Breakdown_element)
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <bound_parameter
            name="prod_bas_loc_id.referenced_product">
            
         </bound_parameter>
      </target>
      <source>
         <param_in_ref
            name="referenced_product">
            
         </param_in_ref>
      </source>
   </assign>
</refpath>

© OASIS 2010 — All rights reserved