Template:— assigning_product_effectivity (asg_prod_eff)
Context:— NDLO
Date: 2008/02/21 16:26:54
Revision: 1.3
Template: assigning_product_effectivity

XML references to the Template

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

assigning_product_effectivity

Set up a hyperlink to the template definition.
<template_ref name="assigning_product_effectivity" context="NDLO" />

Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="assigning_product_effectivity" context="NDLO" >
  <param name="items">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="eff_asg_class_name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="eff_asg_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="prod_items">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="prod_ind_eff_class_name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="prod_ind_eff_ecl_id">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="assigning_product_effectivity">
  <param_in name="items" value=""/>
  <param_in name="eff_asg_class_name" value=""/>
  <param_in name="eff_asg_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="prod_items" value=""/>
  <param_in name="prod_ind_eff_class_name" value=""/>
  <param_in name="prod_ind_eff_ecl_id" value=""/>
</template_example>

assigning_product_effectivity
/assigning_product_effectivity(items='', eff_asg_class_name='', eff_asg_ecl_id='urn:plcs:rdl:std', prod_items='', prod_ind_eff_class_name='', prod_ind_eff_ecl_id='')/

Path

Effectivity_assignment

-- Mark the Effectivity_assignment entity as
-- referable when this template is used by binding it to the reference
-- parameter eff_asg
%^eff_asg = Effectivity_assignment%
Effectivity_assignment.role = '/IGNORE'
Effectivity_assignment.items -> @items

-- provide the role of the effectivity by classifying the Effectivity_assignment
/assigning_reference_data(
    items=^eff_asg,
    class_name=@eff_asg_class_name,
    ecl_id=@eff_asg_ecl_id)/
Product_as_individual_effectivity

-- Mark the Product_as_individual_effectivity entity as
-- referable when this template is used
%^prod_ind_eff = Product_as_individual_effectivity%
^prod_ind_eff.id = '/IGNORE'
^prod_ind_eff.name = '/IGNORE'
^prod_ind_eff.description = '/IGNORE'
^prod_ind_eff.items -> @prod_items

-- Assign the Effectivity_assignment to Product_as_individual_effectivity
^eff_asg.assigned_effectivity -> ^prod_ind_eff
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Effectivity_assignment.role '/IGNORE'
Product_as_individual_effectivity.id '/IGNORE' Effectivity.id
Product_as_individual_effectivity.name '/IGNORE' Effectivity.name
Product_as_individual_effectivity.description '/IGNORE' Effectivity.description

XML representation of path

<refpath
   template="assigning_product_effectivity">
   <instantiate
      entity="Effectivity_assignment"
      context="NDLO">
      
   </instantiate>
   <comment>
      Mark the Effectivity_assignment entity as
   </comment>
   <comment>
      referable when this template is used by binding it to the reference
   </comment>
   <comment>
      parameter eff_asg
   </comment>
   <bind
      parameter="eff_asg">
      <express_entity
         entity="Effectivity_assignment"
         context="NDLO">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="NDLO">
      <target>
         <express_attribute
            entity="Effectivity_assignment"
            attribute="role"
            context="NDLO">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Effectivity_assignment"
            attribute="items"
            context="NDLO">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="items">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      provide the role of the effectivity by classifying the Effectivity_assignment
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="NDLO">
      <param_in
         name="items"
         value="^eff_asg">
         
      </param_in>
      <param_in
         name="class_name"
         value="@eff_asg_class_name">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="@eff_asg_ecl_id">
         
      </param_in>
   </call_template>
   <instantiate
      entity="Product_as_individual_effectivity"
      context="NDLO">
      
   </instantiate>
   <comment>
      Mark the Product_as_individual_effectivity entity as
   </comment>
   <comment>
      referable when this template is used
   </comment>
   <bind
      parameter="prod_ind_eff">
      <express_entity
         entity="Product_as_individual_effectivity"
         context="NDLO">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="NDLO">
      <target>
         <bound_parameter
            name="prod_ind_eff.id">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="NDLO">
      <target>
         <bound_parameter
            name="prod_ind_eff.name">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="NDLO">
      <target>
         <bound_parameter
            name="prod_ind_eff.description">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <bound_parameter
            name="prod_ind_eff.items">
            
         </bound_parameter>
      </target>
      <source>
         <param_in_ref
            name="prod_items">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      Assign the Effectivity_assignment to Product_as_individual_effectivity
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <bound_parameter
            name="eff_asg.assigned_effectivity">
            
         </bound_parameter>
      </target>
      <source>
         <bound_parameter
            name="prod_ind_eff">
            
         </bound_parameter>
      </source>
   </assign>
</refpath>

© OASIS 2010 — All rights reserved