Template:— referencing_product_concept (ref_prod_cpt) Date: 2008/02/26 15:07:45
Revision: 1.6
Template: referencing_product_concept

XML references to the Template

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

referencing_product_concept

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="referencing_product_concept" capability="representing_product_configuration">
  <param name="prod_cpt_id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="prod_cpt_id_class">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="prod_cpt_id_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="prod_cpt_org_id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="prod_cpt_org_id_class">
    <param_value>Organization_name</param_value>
    <description></description>
  </param>
  <param name="prod_cpt_org_id_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="referencing_product_concept">
  <param_in name="prod_cpt_id" value=""/>
  <param_in name="prod_cpt_id_class" value=""/>
  <param_in name="prod_cpt_id_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="prod_cpt_org_id" value=""/>
  <param_in name="prod_cpt_org_id_class" value="Organization_name"/>
  <param_in name="prod_cpt_org_id_ecl_id" value="urn:plcs:rdl:std"/>
</template_example>

referencing_product_concept
/referencing_product_concept(prod_cpt_id='', prod_cpt_id_class='', prod_cpt_id_ecl_id='urn:plcs:rdl:std', prod_cpt_org_id='', prod_cpt_org_id_class='Organization_name', prod_cpt_org_id_ecl_id='urn:plcs:rdl:std')/

Path

Product_concept

-- Mark the Product_concept entity as
-- referable when this template is used by binding it to the reference
-- parameter prod_cpt
%^prod_cpt = Product_concept%
Product_concept.id = '/IGNORE'
Product_concept.name = '/IGNORE'
Product_concept.description = '/IGNORE'

-- Identification of the Product_concept
/assigning_identification(
    items=^prod_cpt,
    id=@prod_cpt_id,
    id_class_name=@prod_cpt_id_class,
    id_ecl_id=@prod_cpt_id_ecl_id,
    org_id=@prod_cpt_org_id,
    org_id_class_name=@prod_cpt_org_id_class,
    org_id_ecl_id=@prod_cpt_id_ecl_id )/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Product_concept.id '/IGNORE'
Product_concept.name '/IGNORE'
Product_concept.description '/IGNORE'

XML representation of path

<refpath
   template="referencing_product_concept">
   <instantiate
      entity="Product_concept"
      context="">
      
   </instantiate>
   <comment>
      Mark the Product_concept entity as
   </comment>
   <comment>
      referable when this template is used by binding it to the reference
   </comment>
   <comment>
      parameter prod_cpt
   </comment>
   <bind
      parameter="prod_cpt">
      <express_entity
         entity="Product_concept"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Product_concept"
            attribute="id"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Product_concept"
            attribute="name"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Product_concept"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Identification of the Product_concept
   </comment>
   <call_template
      name="assigning_identification"
      business_context="">
      <param_in
         name="items"
         value="^prod_cpt">
         
      </param_in>
      <param_in
         name="id"
         value="@prod_cpt_id">
         
      </param_in>
      <param_in
         name="id_class_name"
         value="@prod_cpt_id_class">
         
      </param_in>
      <param_in
         name="id_ecl_id"
         value="@prod_cpt_id_ecl_id">
         
      </param_in>
      <param_in
         name="org_id"
         value="@prod_cpt_org_id">
         
      </param_in>
      <param_in
         name="org_id_class_name"
         value="@prod_cpt_org_id_class">
         
      </param_in>
      <param_in
         name="org_id_ecl_id"
         value="@prod_cpt_id_ecl_id ">
         
      </param_in>
   </call_template>
</refpath>

© OASIS 2010 — All rights reserved