Template:— assigning_serial_effectivity (asg_serial_eff) Date: 2009/04/03 08:46:26
Revision: 1.3
Template: assigning_serial_effectivity

XML references to the Template

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

assigning_serial_effectivity

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="assigning_serial_effectivity" capability="assigning_effectivity">
  <param name="start_id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="end_id">
    <param_value></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_serial_effectivity">
  <param_in name="start_id" value=""/>
  <param_in name="end_id" value=""/>
  <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_serial_effectivity
/assigning_serial_effectivity(start_id='', end_id='', role_class_name='', role_ecl_id='urn:plcs:rdl:std', items='')/

Path

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

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

-- Instantiate representing_serial_effectivity
/representing_serial_effectivity(
    start_id=@start_id,
    end_id=@end_id)/
Serial_effectivity

-- Mark the Serial_effectivity entity as
-- referable when this template is used by binding it to the reference
-- parameter serial_eff
%^serial_eff = Serial_effectivity%

-- Bind the Serial_effectivity instantiated by the
-- template representing_serial_effectivity
-- to the parameter ^serial_eff.
-- The parameter is a reference parameter so the
-- Serial_effectivity can be referred to when this template is used.
%^serial_eff = $representing_serial_effectivity.serial_eff%

-- Set the Effectivity_assignment.assigned_effectivity to
-- the Serial_effectivity entity instantiated by
-- representing_serial_effectivity
Effectivity_assignment.assigned_effectivity -> ^serial_eff

-- Assign the Effectivity_assignment
-- to the instances passed into the template through the @items
-- input parameter (e.g. an Next_assembly_usage)
Effectivity_assignment.items -> @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_serial_effectivity">
   <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_asgn.
   </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_asgn">
      <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_asgn">
         
      </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>
      Instantiate representing_serial_effectivity
   </comment>
   <call_template
      name="representing_serial_effectivity"
      business_context="">
      <param_in
         name="start_id"
         value="@start_id">
         
      </param_in>
      <param_in
         name="end_id"
         value="@end_id">
         
      </param_in>
   </call_template>
   <instantiate
      entity="Serial_effectivity"
      context="">
      
   </instantiate>
   <comment>
      Mark the Serial_effectivity entity as
   </comment>
   <comment>
      referable when this template is used by binding it to the reference
   </comment>
   <comment>
      parameter serial_eff
   </comment>
   <bind
      parameter="serial_eff">
      <express_entity
         entity="Serial_effectivity"
         context="">
         
      </express_entity>
   </bind>
   <comment>
      Bind the Serial_effectivity instantiated by the
   </comment>
   <comment>
      template representing_serial_effectivity
   </comment>
   <comment>
      to the parameter ^serial_eff.
   </comment>
   <comment>
      The parameter is a reference parameter so the
   </comment>
   <comment>
      Serial_effectivity can be referred to when this template is used.
   </comment>
   <bind
      parameter="serial_eff">
      <template_instance
         template="representing_serial_effectivity"
         parameter="serial_eff">
         
      </template_instance>
   </bind>
   <comment>
      Set the Effectivity_assignment.assigned_effectivity to
   </comment>
   <comment>
      the Serial_effectivity entity instantiated by
   </comment>
   <comment>
      representing_serial_effectivity
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Effectivity_assignment"
            attribute="assigned_effectivity"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="serial_eff">
            
         </bound_parameter>
      </source>
   </assign>
   <comment>
      Assign the Effectivity_assignment
   </comment>
   <comment>
      to the instances passed into the template through the @items
   </comment>
   <comment>
      input parameter (e.g. an Next_assembly_usage)
   </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