Template:— assigning_information_collection (asg_info_cltn)
Capability:representing_project_information
Date: 2010/01/28 16:42:55
Revision: 1.1
Template: assigning_information_collection

XML references to the Template

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

assigning_information_collection

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="assigning_information_collection" capability="representing_project_information">
  <param name="info_collection_ver">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="items">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="role">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="role_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="assigning_information_collection">
  <param_in name="info_collection_ver" value=""/>
  <param_in name="items" value=""/>
  <param_in name="role" value=""/>
  <param_in name="role_ecl_id" value="urn:plcs:rdl:std"/>
</template_example>

assigning_information_collection
/assigning_information_collection(info_collection_ver='', items='', role='', role_ecl_id='urn:plcs:rdl:std')/

Path

Document_assignment
Document_assignment.role = '/IGNORE'
Document_assignment.is_assigned_to -> @items

-- Mark the Document_assignment entity representing the information collection assignment
-- as referable when this template is used.
-- In other words, bind the Document_assignment instance to the reference
-- parameter info_collection_asg
%^info_collection_asg = Document_assignment%

-- Assign the role through ref data
/assigning_reference_data(
    items=^info_collection_asg,
    class_name=@role,
    ecl_id=@role_ecl_id)/

-- Assign the document representing the information collection to be used
Document_assignment.assigned_document -> @info_collection_ver
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Document_assignment.role '/IGNORE'

XML representation of path

<refpath
   template="assigning_information_collection">
   <instantiate
      entity="Document_assignment"
      context="">
      
   </instantiate>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Document_assignment"
            attribute="role"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value="'/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Document_assignment"
            attribute="is_assigned_to"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="items">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      Mark the Document_assignment entity representing the information collection assignment
   </comment>
   <comment>
      as referable when this template is used.
   </comment>
   <comment>
      In other words, bind the Document_assignment instance to the reference
   </comment>
   <comment>
      parameter info_collection_asg
   </comment>
   <bind
      parameter="info_collection_asg">
      <express_entity
         entity="Document_assignment"
         context="">
         
      </express_entity>
   </bind>
   <comment>
      Assign the role through ref data
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="">
      <param_in
         name="items"
         value="^info_collection_asg">
         
      </param_in>
      <param_in
         name="class_name"
         value="@role">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="@role_ecl_id">
         
      </param_in>
   </call_template>
   <comment>
      Assign the document representing the information collection to be used
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Document_assignment"
            attribute="assigned_document"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="info_collection_ver">
            
         </param_in_ref>
      </source>
   </assign>
</refpath>

© OASIS 2010 — All rights reserved