Template:— representing_product_configuration (rep_prod_config) Date: 2008/03/03 12:27:29
Revision: 1.5
Template: representing_product_configuration

XML references to the Template

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

representing_product_configuration

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="representing_product_configuration" capability="representing_product_configuration">
  <param name="id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="id_class_name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="id_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="org_id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="org_id_class_name">
    <param_value>Organization_name</param_value>
    <description></description>
  </param>
  <param name="org_id_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="design">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="item_context">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="representing_product_configuration">
  <param_in name="id" value=""/>
  <param_in name="id_class_name" value=""/>
  <param_in name="id_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="org_id" value=""/>
  <param_in name="org_id_class_name" value="Organization_name"/>
  <param_in name="org_id_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="design" value=""/>
  <param_in name="item_context" value=""/>
</template_example>

representing_product_configuration
/representing_product_configuration(id='', id_class_name='', id_ecl_id='urn:plcs:rdl:std', org_id='', org_id_class_name='Organization_name', org_id_ecl_id='urn:plcs:rdl:std', design='', item_context='')/

Path

Product_configuration

-- Mark the Product_configuration entity as
-- referable when this template is used by binding it to the reference
-- parameter ^prod_conf
%^prod_conf = Product_configuration%
Product_configuration.id = '/IGNORE'
Product_configuration.name = '/IGNORE'
Product_configuration.description = '/IGNORE'
Product_configuration.item_context -> @item_context

-- Identification of the Product_configuration
/assigning_identification(
    items=^prod_conf,
    id=@id,
    id_class_name=@id_class_name,
    id_ecl_id=@id_ecl_id,
    org_id=@org_id,
    org_id_class_name=@org_id_class_name,
    org_id_ecl_id=@org_id_ecl_id )/
Item_design_association

-- Mark the Item_design_association entity as
-- referable when this template is used by binding it to the reference
-- parameter ^item_desgn_assoc
Item_design_association.design -> @design
Item_design_association.configuration -> ^prod_conf
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Product_configuration.id '/IGNORE'
Product_configuration.name '/IGNORE'
Product_configuration.description '/IGNORE'

XML representation of path

<refpath
   template="representing_product_configuration">
   <instantiate
      entity="Product_configuration"
      context="">
      
   </instantiate>
   <comment>
      Mark the Product_configuration entity as
   </comment>
   <comment>
      referable when this template is used by binding it to the reference
   </comment>
   <comment>
      parameter ^prod_conf
   </comment>
   <bind
      parameter="prod_conf">
      <express_entity
         entity="Product_configuration"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Product_configuration"
            attribute="id"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Product_configuration"
            attribute="name"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Product_configuration"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Product_configuration"
            attribute="item_context"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="item_context">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      Identification of the Product_configuration
   </comment>
   <call_template
      name="assigning_identification"
      business_context="">
      <param_in
         name="items"
         value="^prod_conf">
         
      </param_in>
      <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="@org_id">
         
      </param_in>
      <param_in
         name="org_id_class_name"
         value="@org_id_class_name">
         
      </param_in>
      <param_in
         name="org_id_ecl_id"
         value="@org_id_ecl_id ">
         
      </param_in>
   </call_template>
   <instantiate
      entity="Item_design_association"
      context="">
      
   </instantiate>
   <comment>
      Mark the Item_design_association entity as
   </comment>
   <comment>
      referable when this template is used by binding it to the reference
   </comment>
   <comment>
      parameter ^item_desgn_assoc
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Item_design_association"
            attribute="design"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="design">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Item_design_association"
            attribute="configuration"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="prod_conf">
            
         </bound_parameter>
      </source>
   </assign>
</refpath>

© OASIS 2010 — All rights reserved