Template:— representing_information_collection (rep_info_cltn)
Capability:representing_project_information
Date: 2010/01/29 13:54:38
Revision: 1.4
Template: representing_information_collection

XML references to the Template

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

representing_information_collection

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="representing_information_collection" capability="representing_project_information">
  <param name="info_collection_id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="info_collection_id_class_name">
    <param_value>Information_collection_identification_code</param_value>
    <description></description>
  </param>
  <param name="info_collection_id_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="info_collection_ver_id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="info_collection_ver_id_class_name">
    <param_value>Progression_identification_code</param_value>
    <description></description>
  </param>
  <param name="info_collection_ver_id_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="org_id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="org_id_class_name">
    <param_value>Organization_name</param_value>
    <description></description>
  </param>
  <param name="org_id_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="info_collection_type">
    <param_value>Information_collection</param_value>
    <description></description>
  </param>
  <param name="info_collection_type_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="representing_information_collection">
  <param_in name="info_collection_id" value=""/>
  <param_in name="info_collection_id_class_name" value="Information_collection_identification_code"/>
  <param_in name="info_collection_id_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="info_collection_ver_id" value=""/>
  <param_in name="info_collection_ver_id_class_name" value="Progression_identification_code"/>
  <param_in name="info_collection_ver_id_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="org_id" value=""/>
  <param_in name="org_id_class_name" value="Organization_name"/>
  <param_in name="org_id_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="info_collection_type" value="Information_collection"/>
  <param_in name="info_collection_type_ecl_id" value="urn:plcs:rdl:std"/>
</template_example>

representing_information_collection
/representing_information_collection(info_collection_id='', info_collection_id_class_name='Information_collection_identification_code', info_collection_id_ecl_id='urn:plcs:rdl:std', info_collection_ver_id='', info_collection_ver_id_class_name='Progression_identification_code', info_collection_ver_id_ecl_id='urn:plcs:rdl:std', org_id='', org_id_class_name='Organization_name', org_id_ecl_id='urn:plcs:rdl:std', info_collection_type='Information_collection', info_collection_type_ecl_id='urn:plcs:rdl:std')/

Path

Document

-- Mark the Document entity (representing the Information Collection) as
-- referable when this template is used by binding it to the reference
-- parameter info_collection
%^info_collection = Document%
Document.id = '/IGNORE'
Document.name = '/IGNORE'
Document.description = '/IGNORE'

-- Provide the role of the Document as an Information Collection, by classification
/assigning_reference_data(
    items=^info_collection,
    class_name=@info_collection_type,
    ecl_id=@info_collection_type_ecl_id)/

-- assign the identification to the Document (Information Collection)
/assigning_identification(
    items=^info_collection,
    id=@info_collection_id,
    id_class_name=@info_collection_id_class_name,
    id_ecl_id=@info_collection_id_ecl_id,
    org_id=@org_id,
    org_id_class_name=@org_id_class_name,
    org_id_ecl_id=@org_id_ecl_id)/

-- Mark the Document_version entity (representing the Information Collection Version)
-- as referable when this template is used by binding it to the reference
-- parameter info_collection_ver
Document_version
%^info_collection_ver = Document_version%
Document_version.id = '/IGNORE'
Document_version.description = '/IGNORE'
Document_version.of_product -> ^info_collection

-- assign the identification to the Document_version (Information Collection Version)
/assigning_identification(
    items=^info_collection_ver,
    id=@info_collection_ver_id,
    id_class_name=@info_collection_ver_id_class_name,
    id_ecl_id=@info_collection_ver_id_ecl_id,
    org_id=@org_id,
    org_id_class_name=@org_id_class_name,
    org_id_ecl_id=@org_id_ecl_id)/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Document.id '/IGNORE' Product.id
Document.name '/IGNORE' Product.name
Document.description '/IGNORE' Product.description
Document_version.id '/IGNORE' Product_version.id
Document_version.description '/IGNORE' Product_version.description

XML representation of path

<refpath
   template="representing_information_collection">
   <instantiate
      entity="Document"
      context="">
      
   </instantiate>
   <comment>
      Mark the Document entity (representing the Information Collection) as
   </comment>
   <comment>
      referable when this template is used by binding it to the reference
   </comment>
   <comment>
      parameter info_collection
   </comment>
   <bind
      parameter="info_collection">
      <express_entity
         entity="Document"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Document"
            attribute="id"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Document"
            attribute="name"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Document"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Provide the role of the Document as an Information Collection, by classification
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="">
      <param_in
         name="items"
         value="^info_collection">
         
      </param_in>
      <param_in
         name="class_name"
         value="@info_collection_type">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="@info_collection_type_ecl_id">
         
      </param_in>
   </call_template>
   <comment>
      assign the identification to the Document (Information Collection)
   </comment>
   <call_template
      name="assigning_identification"
      business_context="">
      <param_in
         name="items"
         value="^info_collection">
         
      </param_in>
      <param_in
         name="id"
         value="@info_collection_id">
         
      </param_in>
      <param_in
         name="id_class_name"
         value="@info_collection_id_class_name">
         
      </param_in>
      <param_in
         name="id_ecl_id"
         value="@info_collection_id_ecl_id">
         
      </param_in>
      <param_in
         name="org_id"
         value="@org_id">
         
      </param_in>
      <param_in
         name="org_id_class_name"
         value="@org_id_class_name">
         
      </param_in>
      <param_in
         name="org_id_ecl_id"
         value="@org_id_ecl_id">
         
      </param_in>
   </call_template>
   <comment>
      Mark the Document_version entity (representing the Information Collection Version)
   </comment>
   <comment>
      as referable when this template is used by binding it to the reference
   </comment>
   <comment>
      parameter info_collection_ver
   </comment>
   <instantiate
      entity="Document_version"
      context="">
      
   </instantiate>
   <bind
      parameter="info_collection_ver">
      <express_entity
         entity="Document_version"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Document_version"
            attribute="id"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Document_version"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Document_version"
            attribute="of_product"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="info_collection">
            
         </bound_parameter>
      </source>
   </assign>
   <comment>
      assign the identification to the Document_version (Information Collection Version)
   </comment>
   <call_template
      name="assigning_identification"
      business_context="">
      <param_in
         name="items"
         value="^info_collection_ver">
         
      </param_in>
      <param_in
         name="id"
         value="@info_collection_ver_id">
         
      </param_in>
      <param_in
         name="id_class_name"
         value="@info_collection_ver_id_class_name">
         
      </param_in>
      <param_in
         name="id_ecl_id"
         value="@info_collection_ver_id_ecl_id">
         
      </param_in>
      <param_in
         name="org_id"
         value="@org_id">
         
      </param_in>
      <param_in
         name="org_id_class_name"
         value="@org_id_class_name">
         
      </param_in>
      <param_in
         name="org_id_ecl_id"
         value="@org_id_ecl_id">
         
      </param_in>
   </call_template>
</refpath>

© OASIS 2010 — All rights reserved