Template:— representing_product_concept (rep_prod_cpt) Date: 2008/02/27 16:39:46
Revision: 1.7
Template: representing_product_concept

XML references to the Template

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

representing_product_concept

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="representing_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>
  <param name="market_id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="market_id_class">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="market_id_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="market_org_id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="market_org_id_class">
    <param_value>Organization_name</param_value>
    <description></description>
  </param>
  <param name="market_org_id_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="representing_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"/>
  <param_in name="market_id" value=""/>
  <param_in name="market_id_class" value=""/>
  <param_in name="market_id_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="market_org_id" value=""/>
  <param_in name="market_org_id_class" value="Organization_name"/>
  <param_in name="market_org_id_ecl_id" value="urn:plcs:rdl:std"/>
</template_example>

representing_product_concept
/representing_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', market_id='', market_id_class='', market_id_ecl_id='urn:plcs:rdl:std', market_org_id='', market_org_id_class='Organization_name', market_org_id_ecl_id='urn:plcs:rdl:std')/

Path

Market

-- Mark the Market entity as
-- referable when this template is used by binding it to the reference
-- parameter market
%^market = Market%
Market.name = '/IGNORE'
Market.market_segment_type = '/IGNORE'

-- Identification of the Market
/assigning_identification(
    items=^market,
    id=@market_id,
    id_class_name=@market_id_class,
    id_ecl_id=@market_id_ecl_id,
    org_id=@market_org_id,
    org_id_class_name=@market_org_id_class,
    org_id_ecl_id=@market_org_id_ecl_id )/
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 )/

-- Associating the Product_concept with its Market
Product_concept.target_market -> ^market
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Market.name '/IGNORE'
Market.market_segment_type '/IGNORE'
Product_concept.id '/IGNORE'
Product_concept.name '/IGNORE'
Product_concept.description '/IGNORE'

XML representation of path

<refpath
   template="representing_product_concept">
   <instantiate
      entity="Market"
      context="">
      
   </instantiate>
   <comment>
      Mark the Market entity as
   </comment>
   <comment>
      referable when this template is used by binding it to the reference
   </comment>
   <comment>
      parameter market
   </comment>
   <bind
      parameter="market">
      <express_entity
         entity="Market"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Market"
            attribute="name"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Market"
            attribute="market_segment_type"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Identification of the Market
   </comment>
   <call_template
      name="assigning_identification"
      business_context="">
      <param_in
         name="items"
         value="^market">
         
      </param_in>
      <param_in
         name="id"
         value="@market_id">
         
      </param_in>
      <param_in
         name="id_class_name"
         value="@market_id_class">
         
      </param_in>
      <param_in
         name="id_ecl_id"
         value="@market_id_ecl_id">
         
      </param_in>
      <param_in
         name="org_id"
         value="@market_org_id">
         
      </param_in>
      <param_in
         name="org_id_class_name"
         value="@market_org_id_class">
         
      </param_in>
      <param_in
         name="org_id_ecl_id"
         value="@market_org_id_ecl_id ">
         
      </param_in>
   </call_template>
   <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>
   <comment>
      Associating the Product_concept with its Market
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Product_concept"
            attribute="target_market"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="market">
            
         </bound_parameter>
      </source>
   </assign>
</refpath>

© OASIS 2010 — All rights reserved