Template:— assigning_domain_specific_effectivity (asg_domain_spec_eff)
Capability:assigning_effectivity
[warning:]The use of this template is deprecated. (2008-02-08)
Date: 2008/05/14 17:05:43
Revision: 1.11
Template: assigning_domain_specific_effectivity

XML references to the Template

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

assigning_domain_specific_effectivity

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="assigning_domain_specific_effectivity" capability="assigning_effectivity">
  <param name="eff_class_name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="eff_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="target_items">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="domain_items">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="assigning_domain_specific_effectivity">
  <param_in name="eff_class_name" value=""/>
  <param_in name="eff_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="target_items" value=""/>
  <param_in name="domain_items" value=""/>
</template_example>

assigning_domain_specific_effectivity
/assigning_domain_specific_effectivity(eff_class_name='', eff_ecl_id='urn:plcs:rdl:std', target_items='', domain_items='')/

Path

-- Instantiate the Effectivity entity via the assigning_effectivity template
/assigning_effectivity(
    items=@target_items,
    eff_class_name=@eff_class_name,
    eff_ecl_id=@eff_ecl_id,
    role_class_name='Effectivity_target',
    role_ecl_id='urn:plcs:rdl:std')/

-- Instantiate Effectivity_assignment entity
Effectivity_assignment

-- Set the Effectivity_assignment attribute role to be ignored
Effectivity_assignment.role = '/IGNORE'

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

-- Assign reference data to Effectivity_assignment
/assigning_reference_data(
    items=Effectivity_assignment,
    class_name='Effectivity_domain',
    ecl_id='urn:plcs:rdl:std')/

-- Bind the Effectivity_assignment to the Effectivity entity
-- instantiated by the template assigning_effectivity at the beginning of this path
%^assgnd_effectivity = $assigning_effectivity.effectivity%
Effectivity_assignment.assigned_effectivity -> ^assgnd_effectivity

-- Bind the Effectivity_assignment
-- to the instances passed into the template through the @domain_items
-- input parameter
Effectivity_assignment.items -> @domain_items
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Effectivity_assignment.role '/IGNORE'

XML representation of path

<refpath
   template="assigning_domain_specific_effectivity">
   <comment>
      Instantiate the Effectivity entity via the assigning_effectivity template
   </comment>
   <call_template
      name="assigning_effectivity"
      business_context="">
      <param_in
         name="items"
         value="@target_items">
         
      </param_in>
      <param_in
         name="eff_class_name"
         value="@eff_class_name">
         
      </param_in>
      <param_in
         name="eff_ecl_id"
         value="@eff_ecl_id">
         
      </param_in>
      <param_in
         name="role_class_name"
         value="'Effectivity_target'">
         
      </param_in>
      <param_in
         name="role_ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
   </call_template>
   <comment>
      Instantiate Effectivity_assignment entity
   </comment>
   <instantiate
      entity="Effectivity_assignment"
      context="">
      
   </instantiate>
   <comment>
      Set the Effectivity_assignment attribute role to be ignored
   </comment>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Effectivity_assignment"
            attribute="role"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Bind the Effectivity_assignment to the parameter ^dom_eff_asg.
   </comment>
   <comment>
      The parameter is a reference parameter so the Effectivity_assignment
   </comment>
   <comment>
      entity can be referred to when this template is used.
   </comment>
   <bind
      parameter="dom_eff_asg">
      <express_entity
         entity="Effectivity_assignment"
         context="">
         
      </express_entity>
   </bind>
   <comment>
      Assign reference data to Effectivity_assignment
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="">
      <param_in
         name="items"
         value="Effectivity_assignment">
         
      </param_in>
      <param_in
         name="class_name"
         value="'Effectivity_domain'">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
   </call_template>
   <comment>
      Bind the Effectivity_assignment to the Effectivity entity
   </comment>
   <comment>
      instantiated by the template assigning_effectivity at the beginning of this path
   </comment>
   <bind
      parameter="assgnd_effectivity">
      <template_instance
         template="assigning_effectivity"
         parameter="effectivity">
         
      </template_instance>
   </bind>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Effectivity_assignment"
            attribute="assigned_effectivity"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="assgnd_effectivity">
            
         </bound_parameter>
      </source>
   </assign>
   <comment>
      Bind the Effectivity_assignment
   </comment>
   <comment>
      to the instances passed into the template through the @domain_items
   </comment>
   <comment>
      input parameter
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Effectivity_assignment"
            attribute="items"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="domain_items">
            
         </param_in_ref>
      </source>
   </assign>
</refpath>

© OASIS 2010 — All rights reserved