Template:— referencing_product_as_individual (ref_prod_ind) Date: 2008/02/26 09:24:26
Revision: 1.5
Template: referencing_product_as_individual

XML references to the Template

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

referencing_product_as_individual

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="referencing_product_as_individual" capability="representing_product_as_individual">
  <param name="prod_ind_id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="prod_ind_id_class">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="prod_ind_id_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="prod_ind_org_id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="prod_ind_org_id_class">
    <param_value>Organization_name</param_value>
    <description></description>
  </param>
  <param name="prod_ind_org_id_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="part">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="referencing_product_as_individual">
  <param_in name="prod_ind_id" value=""/>
  <param_in name="prod_ind_id_class" value=""/>
  <param_in name="prod_ind_id_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="prod_ind_org_id" value=""/>
  <param_in name="prod_ind_org_id_class" value="Organization_name"/>
  <param_in name="prod_ind_org_id_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="part" value=""/>
</template_example>

referencing_product_as_individual
/referencing_product_as_individual(prod_ind_id='', prod_ind_id_class='', prod_ind_id_ecl_id='urn:plcs:rdl:std', prod_ind_org_id='', prod_ind_org_id_class='Organization_name', prod_ind_org_id_ecl_id='urn:plcs:rdl:std', part='')/

Path

Product_as_individual

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

-- Identification of the Product_as_individual
/assigning_identification(
    items=^prod_ind,
    id=@prod_ind_id,
    id_class_name=@prod_ind_id_class,
    id_ecl_id=@prod_ind_id_ecl_id,
    org_id=@prod_ind_org_id,
    org_id_class_name=@prod_ind_org_id_class,
    org_id_ecl_id=@prod_ind_org_id_ecl_id )/
Product_design_to_individual
Product_design_to_individual.individual_product -> ^prod_ind
Product_design_to_individual.product_design -> @part
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

XML representation of path

<refpath
   template="referencing_product_as_individual">
   <instantiate
      entity="Product_as_individual"
      context="">
      
   </instantiate>
   <comment>
      Mark the Product_as_individual entity as
   </comment>
   <comment>
      referable when this template is used by binding it to the reference
   </comment>
   <comment>
      parameter prod_ind
   </comment>
   <bind
      parameter="prod_ind">
      <express_entity
         entity="Product_as_individual"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Product_as_individual"
            attribute="id"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Product_as_individual"
            attribute="name"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Product_as_individual"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Identification of the Product_as_individual
   </comment>
   <call_template
      name="assigning_identification"
      business_context="">
      <param_in
         name="items"
         value="^prod_ind">
         
      </param_in>
      <param_in
         name="id"
         value="@prod_ind_id">
         
      </param_in>
      <param_in
         name="id_class_name"
         value="@prod_ind_id_class">
         
      </param_in>
      <param_in
         name="id_ecl_id"
         value="@prod_ind_id_ecl_id">
         
      </param_in>
      <param_in
         name="org_id"
         value="@prod_ind_org_id">
         
      </param_in>
      <param_in
         name="org_id_class_name"
         value="@prod_ind_org_id_class">
         
      </param_in>
      <param_in
         name="org_id_ecl_id"
         value="@prod_ind_org_id_ecl_id ">
         
      </param_in>
   </call_template>
   <instantiate
      entity="Product_design_to_individual"
      context="">
      
   </instantiate>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Product_design_to_individual"
            attribute="individual_product"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="prod_ind">
            
         </bound_parameter>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Product_design_to_individual"
            attribute="product_design"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="part">
            
         </param_in_ref>
      </source>
   </assign>
</refpath>

© OASIS 2010 — All rights reserved