Template:— assigning_product_property (asg_prod_prp) Date: 2008/03/06 21:45:39
Revision: 1.17
Template: assigning_product_property

XML references to the Template

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

assigning_product_property

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="assigning_product_property" capability="assigning_product_properties">
  <param name="property_class_name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="property_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="described_element">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="assigning_product_property">
  <param_in name="property_class_name" value=""/>
  <param_in name="property_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="described_element" value=""/>
</template_example>

assigning_product_property
/assigning_product_property(property_class_name='', property_ecl_id='urn:plcs:rdl:std', described_element='')/

Path

-- Instantiate a Assigned_property (Product Property)
Assigned_property

-- Bind the Assigned_property to the parameter ^property.
-- The parameter is a reference parameter so the Assigned_property
-- entity can be referred to when this template is used.
%^property = Assigned_property%

-- Set the Assigned_property attributes name, id, and description to be ignored
Assigned_property.name = '/IGNORE'
Assigned_property.id = '/IGNORE'
Assigned_property.description = '/IGNORE'

-- Assign reference data for name of property
/assigning_reference_data(
    items=^property,
    class_name=@property_class_name,
    ecl_id=@property_ecl_id)/

-- Assign the property to the
-- to the instances passed into the template through the @described_element
-- input parameter (e.g. an Activity_actual)
Assigned_property.described_element -> @described_element
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Assigned_property.name '/IGNORE'
Assigned_property.id '/IGNORE'
Assigned_property.description '/IGNORE'

XML representation of path

<refpath
   template="assigning_product_property">
   <comment>
      Instantiate a Assigned_property (Product Property)
   </comment>
   <instantiate
      entity="Assigned_property"
      context="">
      
   </instantiate>
   <comment>
      Bind the Assigned_property to the parameter ^property.
   </comment>
   <comment>
      The parameter is a reference parameter so the Assigned_property
   </comment>
   <comment>
      entity can be referred to when this template is used.
   </comment>
   <bind
      parameter="property">
      <express_entity
         entity="Assigned_property"
         context="">
         
      </express_entity>
   </bind>
   <comment>
      Set the Assigned_property attributes name, id, and description to be ignored
   </comment>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Assigned_property"
            attribute="name"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Assigned_property"
            attribute="id"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Assigned_property"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Assign reference data for name of property
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="">
      <param_in
         name="items"
         value="^property">
         
      </param_in>
      <param_in
         name="class_name"
         value="@property_class_name">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="@property_ecl_id">
         
      </param_in>
   </call_template>
   <comment>
      Assign the property to the
   </comment>
   <comment>
      to the instances passed into the template through the @described_element
   </comment>
   <comment>
      input parameter (e.g. an Activity_actual)
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Assigned_property"
            attribute="described_element"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="described_element">
            
         </param_in_ref>
      </source>
   </assign>
</refpath>

© OASIS 2010 — All rights reserved