Template:— representing_organization_typical (rep_org_typ) Date: 2008/02/27 16:39:46
Revision: 1.10
Template: representing_organization_typical

XML references to the Template

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

representing_organization_typical

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="representing_organization_typical" capability="representing_person_organization_typical">
  <param name="org_type_class_name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="org_type_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="representing_organization_typical">
  <param_in name="org_type_class_name" value=""/>
  <param_in name="org_type_ecl_id" value="urn:plcs:rdl:std"/>
</template_example>

representing_organization_typical
/representing_organization_typical(org_type_class_name='', org_type_ecl_id='urn:plcs:rdl:std')/

Path

Organization_type

-- Mark the Organization_type entity as
-- referable when this template is used by binding it to the reference
-- parameter org_type
%^org_type = Organization_type%
Organization_type.name = '/IGNORE'
Organization_type.description = '/IGNORE'

-- provide the type of organization by classifying the entity Organization_type
/assigning_reference_data(
    items=^org_type,
    class_name=@org_type_class_name,
    ecl_id=@org_type_ecl_id)/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Organization_type.name '/IGNORE'
Organization_type.description '/IGNORE'

XML representation of path

<refpath
   template="representing_organization_typical">
   <instantiate
      entity="Organization_type"
      context="">
      
   </instantiate>
   <comment>
      Mark the Organization_type entity as
   </comment>
   <comment>
      referable when this template is used by binding it to the reference
   </comment>
   <comment>
      parameter org_type
   </comment>
   <bind
      parameter="org_type">
      <express_entity
         entity="Organization_type"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Organization_type"
            attribute="name"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Organization_type"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      provide the type of organization by classifying the entity Organization_type
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="">
      <param_in
         name="items"
         value="^org_type">
         
      </param_in>
      <param_in
         name="class_name"
         value="@org_type_class_name">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="@org_type_ecl_id">
         
      </param_in>
   </call_template>
</refpath>

© OASIS 2010 — All rights reserved