Template:— assigning_effectivity (asg_eff) Date: 2009/04/03 08:35:25
Revision: 1.10
Template: assigning_effectivity

XML references to the Template

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

assigning_effectivity

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="assigning_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="role_class_name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="role_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="items">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="assigning_effectivity">
  <param_in name="eff_class_name" value=""/>
  <param_in name="eff_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="role_class_name" value=""/>
  <param_in name="role_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="items" value=""/>
</template_example>

assigning_effectivity
/assigning_effectivity(eff_class_name='', eff_ecl_id='urn:plcs:rdl:std', role_class_name='', role_ecl_id='urn:plcs:rdl:std', items='')/

Path

-- Instantiate the Effectivity entity
Effectivity

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

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

-- Assign reference data to Effectivity
/assigning_reference_data(
    items=^effectivity,
    class_name=@eff_class_name,
    ecl_id=@eff_ecl_id)/

-- 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 ^eff_asg.
-- The parameter is a reference parameter so the Effectivity_assignment
-- entity can be referred to when this template is used.
%^eff_asg = Effectivity_assignment%

-- Assign reference data to Effectivity_assignment
/assigning_reference_data(
    items=^eff_asg,
    class_name=@role_class_name,
    ecl_id=@role_ecl_id)/

-- Set the Effectivity_assignment.assigned_effectivity attribute to the Effectivity entity
-- instantiated at the beginning of this path
Effectivity_assignment.assigned_effectivity -> Effectivity

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

XML representation of path

<refpath
   template="assigning_effectivity">
   <comment>
      Instantiate the Effectivity entity
   </comment>
   <instantiate
      entity="Effectivity"
      context="">
      
   </instantiate>
   <comment>
      Set the Effectivity attributes id, name and description to be ignored
   </comment>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Effectivity"
            attribute="id"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value="'/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Effectivity"
            attribute="name"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value="'/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Effectivity"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value="'/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Bind the Effectivity entity to the parameter ^effectivity.
   </comment>
   <comment>
      The parameter is a reference parameter so the Effectivity
   </comment>
   <comment>
      entity can be referred to when this template is used.
   </comment>
   <bind
      parameter="effectivity">
      <express_entity
         entity="Effectivity"
         context="">
         
      </express_entity>
   </bind>
   <comment>
      Assign reference data to Effectivity
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="">
      <param_in
         name="items"
         value="^effectivity">
         
      </param_in>
      <param_in
         name="class_name"
         value="@eff_class_name">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="@eff_ecl_id">
         
      </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 ^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="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="^eff_asg">
         
      </param_in>
      <param_in
         name="class_name"
         value="@role_class_name">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="@role_ecl_id">
         
      </param_in>
   </call_template>
   <comment>
      Set the Effectivity_assignment.assigned_effectivity attribute to the Effectivity entity
   </comment>
   <comment>
      instantiated at the beginning of this path
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Effectivity_assignment"
            attribute="assigned_effectivity"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <express_entity
            entity="Effectivity"
            context="">
            
         </express_entity>
      </source>
   </assign>
   <comment>
      Assign the Effectivity_assignment
   </comment>
   <comment>
      to the instances passed into the template through the @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="items">
            
         </param_in_ref>
      </source>
   </assign>
</refpath>

© OASIS 2010 — All rights reserved