Template:— representing_product_as_realized (rep_prod_rlzd) Date: 2008/12/08 12:05:01
Revision: 1.35
Template: representing_product_as_realized

XML references to the Template

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

representing_product_as_realized

Set up a hyperlink to the template definition.
<template_ref name="representing_product_as_realized" capability="representing_product_as_individual"/>

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="representing_product_as_realized" capability="representing_product_as_individual">
  <param name="id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="id_class_name">
    <param_value>Serial_identification_code</param_value>
    <description></description>
  </param>
  <param name="id_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="id_owner">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="id_owner_class_name">
    <param_value>Organization_name</param_value>
    <description></description>
  </param>
  <param name="id_owner_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="vn_id">
    <param_value>/NULL</param_value>
    <description></description>
  </param>
  <param name="vn_id_class_name">
    <param_value>Product_as_individual_identification_code</param_value>
    <description></description>
  </param>
  <param name="vn_id_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="vn_id_owner">
    <param_value>/NULL</param_value>
    <description></description>
  </param>
  <param name="vn_id_owner_class_name">
    <param_value>Organization_name</param_value>
    <description></description>
  </param>
  <param name="vn_id_owner_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="life_cycle_stage">
    <param_value>Support_stage</param_value>
    <description></description>
  </param>
  <param name="life_cycle_stage_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="domain">
    <param_value>Product_life_cycle_support</param_value>
    <description></description>
  </param>
  <param name="domain_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="product_design_version">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="representing_product_as_realized">
  <param_in name="id" value=""/>
  <param_in name="id_class_name" value="Serial_identification_code"/>
  <param_in name="id_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="id_owner" value=""/>
  <param_in name="id_owner_class_name" value="Organization_name"/>
  <param_in name="id_owner_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="vn_id" value="/NULL"/>
  <param_in name="vn_id_class_name" value="Product_as_individual_identification_code"/>
  <param_in name="vn_id_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="vn_id_owner" value="/NULL"/>
  <param_in name="vn_id_owner_class_name" value="Organization_name"/>
  <param_in name="vn_id_owner_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="life_cycle_stage" value="Support_stage"/>
  <param_in name="life_cycle_stage_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="domain" value="Product_life_cycle_support"/>
  <param_in name="domain_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="product_design_version" value=""/>
</template_example>

representing_product_as_realized
/representing_product_as_realized(id='', id_class_name='Serial_identification_code', id_ecl_id='urn:plcs:rdl:std', id_owner='', id_owner_class_name='Organization_name', id_owner_ecl_id='urn:plcs:rdl:std', vn_id='/NULL', vn_id_class_name='Product_as_individual_identification_code', vn_id_ecl_id='urn:plcs:rdl:std', vn_id_owner='/NULL', vn_id_owner_class_name='Organization_name', vn_id_owner_ecl_id='urn:plcs:rdl:std', life_cycle_stage='Support_stage', life_cycle_stage_ecl_id='urn:plcs:rdl:std', domain='Product_life_cycle_support', domain_ecl_id='urn:plcs:rdl:std', product_design_version='')/

Path

-- instantiate Product_as_individual
Product_as_individual
%^pai = Product_as_individual%
^pai.id = '/IGNORE'
^pai.name = '/IGNORE'
^pai.description = '/IGNORE'

-- assign identifier to individual
/assigning_identification(
    id=@id,
    id_class_name=@id_class_name,
    id_ecl_id=@id_ecl_id,
    org_id=@id_owner,
    org_id_class_name=@id_owner_class_name,
    org_id_ecl_id=@id_owner_ecl_id,
    items=^pai)/
%^pai_id_assgn = $assigning_identification.id_assgn%

-- instantiate Product_as_realized
Product_as_realized
%^par = Product_as_realized%
^par.id = '/IGNORE'
^par.description = '/IGNORE'
^par.of_product -> ^pai

-- assign version identifier to Product_as_realized
/assigning_identification(
    id=@vn_id,
    id_class_name=@vn_id_class_name,
    id_ecl_id=@vn_id_ecl_id,
    org_id=@vn_id_owner,
    org_id_class_name=@vn_id_owner_class_name,
    org_id_ecl_id=@vn_id_owner_ecl_id,
    items=^par)/
%^par_id_assgn = $assigning_identification.id_assgn%

-- instantiate Product_as_individual_view
Product_as_individual_view
%^view = Product_as_individual_view%
^view.id = '/IGNORE'
^view.name = '/IGNORE'
^view.additional_characterization = '/IGNORE'
Product_as_individual_view.defined_version -> ^par

-- instantiate View_definition_context and bind it to the view
Product_as_individual_view.initial_context -> View_definition_context
View_definition_context.life_cycle_stage = '/IGNORE'
View_definition_context.application_domain = '/IGNORE'
View_definition_context.description = '/IGNORE'
%^cntxt = View_definition_context%

-- assign life_cycle_stage to the context
/assigning_reference_data(
    items=View_definition_context,
    class_name=@life_cycle_stage,
    ecl_id=@life_cycle_stage_ecl_id)/

-- assign application_domain to the context
/assigning_reference_data(
    items=View_definition_context,
    class_name=@domain,
    ecl_id=@domain_ecl_id)/

-- instantiate Product_design_version_to_individual
Product_design_version_to_individual
%^par_rel = Product_design_version_to_individual%
Product_design_version_to_individual.individual_product -> ^par
Product_design_version_to_individual.product_design_version -> @product_design_version
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Product_as_individual.id '/IGNORE' Product.id
Product_as_individual.name '/IGNORE' Product.name
Product_as_individual.description '/IGNORE' Product.description
Product_as_realized.id '/IGNORE' Product_version.id
Product_as_realized.description '/IGNORE' Product_version.description
Product_as_individual_view.id '/IGNORE' Product_view_definition.id
Product_as_individual_view.name '/IGNORE' Product_view_definition.name
Product_as_individual_view.additional_characterization '/IGNORE' Product_view_definition.additional_characterization
View_definition_context.life_cycle_stage '/IGNORE'
View_definition_context.application_domain '/IGNORE'
View_definition_context.description '/IGNORE'

XML representation of path

<refpath
   template="representing_product_as_realized">
   <comment>
      instantiate Product_as_individual
   </comment>
   <instantiate
      entity="Product_as_individual"
      context="">
      
   </instantiate>
   <bind
      parameter="pai">
      <express_entity
         entity="Product_as_individual"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <bound_parameter
            name="pai.id">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <bound_parameter
            name="pai.name">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <bound_parameter
            name="pai.description">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      assign identifier to individual
   </comment>
   <call_template
      name="assigning_identification"
      business_context="">
      <param_in
         name="id"
         value="@id">
         
      </param_in>
      <param_in
         name="id_class_name"
         value="@id_class_name">
         
      </param_in>
      <param_in
         name="id_ecl_id"
         value="@id_ecl_id">
         
      </param_in>
      <param_in
         name="org_id"
         value="@id_owner">
         
      </param_in>
      <param_in
         name="org_id_class_name"
         value="@id_owner_class_name">
         
      </param_in>
      <param_in
         name="org_id_ecl_id"
         value="@id_owner_ecl_id">
         
      </param_in>
      <param_in
         name="items"
         value="^pai">
         
      </param_in>
   </call_template>
   <bind
      parameter="pai_id_assgn">
      <template_instance
         template="assigning_identification"
         parameter="id_assgn">
         
      </template_instance>
   </bind>
   <comment>
      instantiate Product_as_realized
   </comment>
   <instantiate
      entity="Product_as_realized"
      context="">
      
   </instantiate>
   <bind
      parameter="par">
      <express_entity
         entity="Product_as_realized"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <bound_parameter
            name="par.id">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <bound_parameter
            name="par.description">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <bound_parameter
            name="par.of_product">
            
         </bound_parameter>
      </target>
      <source>
         <bound_parameter
            name="pai">
            
         </bound_parameter>
      </source>
   </assign>
   <comment>
      assign version identifier to Product_as_realized
   </comment>
   <call_template
      name="assigning_identification"
      business_context="">
      <param_in
         name="id"
         value="@vn_id">
         
      </param_in>
      <param_in
         name="id_class_name"
         value="@vn_id_class_name">
         
      </param_in>
      <param_in
         name="id_ecl_id"
         value="@vn_id_ecl_id">
         
      </param_in>
      <param_in
         name="org_id"
         value="@vn_id_owner">
         
      </param_in>
      <param_in
         name="org_id_class_name"
         value="@vn_id_owner_class_name">
         
      </param_in>
      <param_in
         name="org_id_ecl_id"
         value="@vn_id_owner_ecl_id">
         
      </param_in>
      <param_in
         name="items"
         value="^par">
         
      </param_in>
   </call_template>
   <bind
      parameter="par_id_assgn">
      <template_instance
         template="assigning_identification"
         parameter="id_assgn">
         
      </template_instance>
   </bind>
   <comment>
      instantiate Product_as_individual_view
   </comment>
   <instantiate
      entity="Product_as_individual_view"
      context="">
      
   </instantiate>
   <bind
      parameter="view">
      <express_entity
         entity="Product_as_individual_view"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <bound_parameter
            name="view.id">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <bound_parameter
            name="view.name">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <bound_parameter
            name="view.additional_characterization">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Product_as_individual_view"
            attribute="defined_version"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="par">
            
         </bound_parameter>
      </source>
   </assign>
   <comment>
      instantiate View_definition_context and bind it to the view
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Product_as_individual_view"
            attribute="initial_context"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <express_entity
            entity="View_definition_context"
            context="">
            
         </express_entity>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="View_definition_context"
            attribute="life_cycle_stage"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="View_definition_context"
            attribute="application_domain"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="View_definition_context"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <bind
      parameter="cntxt">
      <express_entity
         entity="View_definition_context"
         context="">
         
      </express_entity>
   </bind>
   <comment>
      assign life_cycle_stage to the context
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="">
      <param_in
         name="items"
         value="View_definition_context">
         
      </param_in>
      <param_in
         name="class_name"
         value="@life_cycle_stage">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="@life_cycle_stage_ecl_id">
         
      </param_in>
   </call_template>
   <comment>
      assign application_domain to the context
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="">
      <param_in
         name="items"
         value="View_definition_context">
         
      </param_in>
      <param_in
         name="class_name"
         value="@domain">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="@domain_ecl_id">
         
      </param_in>
   </call_template>
   <comment>
      instantiate Product_design_version_to_individual
   </comment>
   <instantiate
      entity="Product_design_version_to_individual"
      context="">
      
   </instantiate>
   <bind
      parameter="par_rel">
      <express_entity
         entity="Product_design_version_to_individual"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Product_design_version_to_individual"
            attribute="individual_product"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="par">
            
         </bound_parameter>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Product_design_version_to_individual"
            attribute="product_design_version"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="product_design_version">
            
         </param_in_ref>
      </source>
   </assign>
</refpath>

© OASIS 2010 — All rights reserved