Template:— product_assembly (prod_assy)
Context:— UK_Defence
Date: 2010/03/18 12:20:27
Revision: 1.3
Template: product_assembly

XML references to the Template

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

product_assembly

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="product_assembly" context="UK_Defence" >
  <param name="pa_id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="pa_type">
    <param_value>Product_assembly</param_value>
    <description></description>
  </param>
  <param name="pa_name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="pa_version">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="pa_authority">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="contained_items">
    <param_value>Part_view_definition</param_value>
    <description></description>
  </param>
  <param name="contained_structure">
    <param_value>Next_assembly_usage</param_value>
    <description></description>
  </param>
  <param name="related_product_design">
    <param_value>Part_view_definition</param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="product_assembly">
  <param_in name="pa_id" value=""/>
  <param_in name="pa_type" value="Product_assembly"/>
  <param_in name="pa_name" value=""/>
  <param_in name="pa_version" value=""/>
  <param_in name="pa_authority" value=""/>
  <param_in name="contained_items" value="Part_view_definition"/>
  <param_in name="contained_structure" value="Next_assembly_usage"/>
  <param_in name="related_product_design" value="Part_view_definition"/>
</template_example>

product_assembly
/product_assembly(pa_id='', pa_type='Product_assembly', pa_name='', pa_version='', pa_authority='', contained_items='Part_view_definition', contained_structure='Next_assembly_usage', related_product_design='Part_view_definition')/

Path

%^pa_effectivity = Effectivity%
Effectivity.id = '/IGNORE'
Effectivity.name = '/IGNORE'
Effectivity.description = '/IGNORE'

-- New Effectivity assignment
Effectivity_assignment.role = '/IGNORE'
Effectivity_assignment.items -> @contained_items

-- Set the Effectivity_assignment attribute role to be ignored
Effectivity_assignment.role = '/IGNORE'

-- Instantiate Effectivity_assignment entity (no.1)
%^pa_item_effect_asngt = Effectivity_assignment%
^pa_item_effect_asngt.assigned_effectivity -> ^pa_effectivity
/identifier(
    items=^pa_effectivity,
    ID=@pa_id,
    type='Effectivity_identification_code',
    source_organization=@pa_authority)/

-- /identifier(items=^pa_effectivity, ID=@pa_name, type='Name', source_organization=@pa_authority)/
-- /identifier(items=^pa_effectivity, ID=@pa_version, type='Version_identification_code', source_organization=@pa_authority)/
-- provide the role of the identification by classifying the Identification_assignment
/assigning_reference_data(
    items=^pa_effectivity,
    class_name=@pa_type,
    ecl_id='urn:plcs:rdl:uk_defence')/

-- create the ref to the product concept
/referencing_product_concept(
    prod_cpt_id=@pa_name,
    prod_cpt_id_class='Product_concept_name',
    prod_cpt_id_ecl_id='urn:plcs:rdl:std',
    prod_cpt_org_id=@pa_authority,
    prod_cpt_org_id_class='Organization_name',
    prod_cpt_id_ecl_id='urn:plcs:rdl:std')/
%^pa_ref_concept = $referencing_product_concept.prod_cpt%
/representing_product_configuration(
    design=@related_product_design,
    item_context=^pa_ref_concept,
    id=@pa_version,
    id_class_name='Product_configuration_identification_code',
    id_ecl_id='urn:plcs:rdl:std',
    org_id=@pa_authority,
    org_id_class_name='Organization_name',
    org_id_ecl_id='urn:plcs:rdl:std')/
%^pa_config = $representing_product_configuration.item_desgn_assoc%
/assigning_product_configuration_effectivity(
    configuration=^pa_config,
    usage=$,
    effectivity=^pa_effectivity)/
Effectivity_assignment.role = '/IGNORE'
Effectivity_assignment.items -> @contained_structure
Effectivity_assignment.role = '/IGNORE'

-- Make Ref Params of Effectivity_assignment entity (no.2)
%^pa_struct_effect_asngt = Effectivity_assignment%
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Effectivity.id '/IGNORE'
Effectivity.name '/IGNORE'
Effectivity.description '/IGNORE'
Effectivity_assignment.role '/IGNORE'
Effectivity_assignment.role '/IGNORE'
Effectivity_assignment.role '/IGNORE'
Effectivity_assignment.role '/IGNORE'

XML representation of path

<refpath
   template="product_assembly">
   <bind
      parameter="pa_effectivity">
      <express_entity
         entity="Effectivity"
         context="UK_Defence">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Effectivity"
            attribute="id"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Effectivity"
            attribute="name"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Effectivity"
            attribute="description"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      New Effectivity assignment
   </comment>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Effectivity_assignment"
            attribute="role"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Effectivity_assignment"
            attribute="items"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="contained_items">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      Set the Effectivity_assignment attribute role to be ignored
   </comment>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Effectivity_assignment"
            attribute="role"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Instantiate Effectivity_assignment entity (no.1)
   </comment>
   <bind
      parameter="pa_item_effect_asngt">
      <express_entity
         entity="Effectivity_assignment"
         context="UK_Defence">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="points-to">
      <target>
         <bound_parameter
            name="pa_item_effect_asngt.assigned_effectivity">
            
         </bound_parameter>
      </target>
      <source>
         <bound_parameter
            name="pa_effectivity">
            
         </bound_parameter>
      </source>
   </assign>
   <call_template
      name="identifier"
      business_context="UK_Defence">
      <param_in
         name="items"
         value="^pa_effectivity">
         
      </param_in>
      <param_in
         name="ID"
         value="@pa_id">
         
      </param_in>
      <param_in
         name="type"
         value="'Effectivity_identification_code'">
         
      </param_in>
      <param_in
         name="source_organization"
         value="@pa_authority">
         
      </param_in>
   </call_template>
   <comment>
      /identifier(items=^pa_effectivity, ID=@pa_name, type='Name', source_organization=@pa_authority)/
   </comment>
   <comment>
      /identifier(items=^pa_effectivity, ID=@pa_version, type='Version_identification_code', source_organization=@pa_authority)/
   </comment>
   <comment>
      provide the role of the identification by classifying the Identification_assignment
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="UK_Defence">
      <param_in
         name="items"
         value="^pa_effectivity">
         
      </param_in>
      <param_in
         name="class_name"
         value="@pa_type">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="'urn:plcs:rdl:uk_defence'">
         
      </param_in>
   </call_template>
   <comment>
      create the ref to the product concept
   </comment>
   <call_template
      name="referencing_product_concept"
      business_context="UK_Defence">
      <param_in
         name="prod_cpt_id"
         value="@pa_name">
         
      </param_in>
      <param_in
         name="prod_cpt_id_class"
         value="'Product_concept_name'">
         
      </param_in>
      <param_in
         name="prod_cpt_id_ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
      <param_in
         name="prod_cpt_org_id"
         value="@pa_authority">
         
      </param_in>
      <param_in
         name="prod_cpt_org_id_class"
         value="'Organization_name'">
         
      </param_in>
      <param_in
         name="prod_cpt_id_ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
   </call_template>
   <bind
      parameter="pa_ref_concept">
      <template_instance
         template="referencing_product_concept"
         parameter="prod_cpt">
         
      </template_instance>
   </bind>
   <call_template
      name="representing_product_configuration"
      business_context="UK_Defence">
      <param_in
         name="design"
         value="@related_product_design">
         
      </param_in>
      <param_in
         name="item_context"
         value="^pa_ref_concept">
         
      </param_in>
      <param_in
         name="id"
         value="@pa_version">
         
      </param_in>
      <param_in
         name="id_class_name"
         value="'Product_configuration_identification_code'">
         
      </param_in>
      <param_in
         name="id_ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
      <param_in
         name="org_id"
         value="@pa_authority">
         
      </param_in>
      <param_in
         name="org_id_class_name"
         value="'Organization_name'">
         
      </param_in>
      <param_in
         name="org_id_ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
   </call_template>
   <bind
      parameter="pa_config">
      <template_instance
         template="representing_product_configuration"
         parameter="item_desgn_assoc">
         
      </template_instance>
   </bind>
   <call_template
      name="assigning_product_configuration_effectivity"
      business_context="UK_Defence">
      <param_in
         name="configuration"
         value="^pa_config">
         
      </param_in>
      <param_in
         name="usage"
         value="$">
         
      </param_in>
      <param_in
         name="effectivity"
         value="^pa_effectivity">
         
      </param_in>
   </call_template>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Effectivity_assignment"
            attribute="role"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Effectivity_assignment"
            attribute="items"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="contained_structure">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Effectivity_assignment"
            attribute="role"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Make Ref Params of Effectivity_assignment entity (no.2)
   </comment>
   <bind
      parameter="pa_struct_effect_asngt">
      <express_entity
         entity="Effectivity_assignment"
         context="UK_Defence">
         
      </express_entity>
   </bind>
</refpath>

© UK MOD 2010 — All rights reserved