Template:— organization (org)
Context:— UK_Defence
Date: 2009/04/17 10:13:34
Revision: 1.3
Template: organization

XML references to the Template

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

organization

Set up a hyperlink to the template definition.
<template_ref name="organization" context="UK_Defence" />

Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="organization" context="UK_Defence" >
  <param name="address">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="description">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="end_date">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="ID">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="source_organization">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="short_name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="start_date">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="organization">
  <param_in name="address" value=""/>
  <param_in name="description" value=""/>
  <param_in name="end_date" value=""/>
  <param_in name="ID" value=""/>
  <param_in name="source_organization" value=""/>
  <param_in name="name" value=""/>
  <param_in name="short_name" value=""/>
  <param_in name="start_date" value=""/>
</template_example>

organization
/organization(address='', description='', end_date='', ID='', source_organization='', name='', short_name='', start_date='')/

Path

/representing_organization(
    org_id='/NULL',
    org_id_class_name='Organization_identification_code',
    org_id_ecl_id='urn:plcs:rdl:std')/
%^organization = $representing_organization.org%

-- [optional address]
/assigning_address(
    address_class_name='Address',
    address_ecl_id='urn:plcs:rdl:uk_defence',
    name=@address,
    street_number='$',
    street='$',
    postal_box=''$,
    town='$',
    region='$',
    postal_code='$',
    country='$',
    internal_location='$',
    facsimile_number='$',
    telephone_number='$',
    electronic_mail_address='$',
    telex_number='$',
    url='$',
    located_pers_org=^organization)/

-- [optional description]
/assigning_descriptor(
    descr=@description,
    class_name='Organization_description',
    ecl_id='urn:plcs:rdl:uk_defence',
    is_assigned_to=^organization)/
/identifier(
    ID=@ID,
    source_organization=@source_organization,
    type='Organization_identification_code',
    items=^organization)/
/identifier(
    ID=@name,
    source_organization=@source_organization,
    type='Organization_name',
    items=^organization)/

-- [optional short_name]
/identifier(
    ID=@short_name,
    source_organization=@source_organization,
    type='Organization_short_name',
    items=^organization)/

-- [optional end_date]
Date_or_date_time_assignment
Date_or_date_time_assignment.role = '/IGNORE'
Date_or_date_time_assignment.items -> ^organization
Date_or_date_time_assignment.assigned_date -> @end_date
%^end_date = Date_or_date_time_assignment%
/assigning_reference_data(
    items=^end_date,
    class_name='Date_organization_ceased',
    ecl_id='urn:plcs:rdl:uk_defence')/

-- [optional start_date]
Date_or_date_time_assignment
Date_or_date_time_assignment.role = '/IGNORE'
Date_or_date_time_assignment.items -> ^organization
Date_or_date_time_assignment.assigned_date -> @start_date
%^start_date = Date_or_date_time_assignment%
/assigning_reference_data(
    items=^start_date,
    class_name='Date_organization_started',
    ecl_id='urn:plcs:rdl:uk_defence')/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Date_or_date_time_assignment.role '/IGNORE'
Date_or_date_time_assignment.role '/IGNORE'

XML representation of path

<refpath
   template="organization">
   <call_template
      name="representing_organization"
      business_context="UK_Defence">
      <param_in
         name="org_id"
         value="'/NULL'">
         
      </param_in>
      <param_in
         name="org_id_class_name"
         value="'Organization_identification_code'">
         
      </param_in>
      <param_in
         name="org_id_ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
   </call_template>
   <bind
      parameter="organization">
      <template_instance
         template="representing_organization"
         parameter="org">
         
      </template_instance>
   </bind>
   <comment>
      [optional address]
   </comment>
   <call_template
      name="assigning_address"
      business_context="UK_Defence">
      <param_in
         name="address_class_name"
         value="'Address'">
         
      </param_in>
      <param_in
         name="address_ecl_id"
         value="'urn:plcs:rdl:uk_defence'">
         
      </param_in>
      <param_in
         name="name"
         value="@address">
         
      </param_in>
      <param_in
         name="street_number"
         value="'$'">
         
      </param_in>
      <param_in
         name="street"
         value="'$'">
         
      </param_in>
      <param_in
         name="postal_box"
         value="''$">
         
      </param_in>
      <param_in
         name="town"
         value="'$'">
         
      </param_in>
      <param_in
         name="region"
         value="'$'">
         
      </param_in>
      <param_in
         name="postal_code"
         value="'$'">
         
      </param_in>
      <param_in
         name="country"
         value="'$'">
         
      </param_in>
      <param_in
         name="internal_location"
         value="'$'">
         
      </param_in>
      <param_in
         name="facsimile_number"
         value="'$'">
         
      </param_in>
      <param_in
         name="telephone_number"
         value="'$'">
         
      </param_in>
      <param_in
         name="electronic_mail_address"
         value="'$'">
         
      </param_in>
      <param_in
         name="telex_number"
         value="'$'">
         
      </param_in>
      <param_in
         name="url"
         value="'$'">
         
      </param_in>
      <param_in
         name="located_pers_org"
         value="^organization">
         
      </param_in>
   </call_template>
   <comment>
      [optional description]
   </comment>
   <call_template
      name="assigning_descriptor"
      business_context="UK_Defence">
      <param_in
         name="descr"
         value="@description">
         
      </param_in>
      <param_in
         name="class_name"
         value="'Organization_description'">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="'urn:plcs:rdl:uk_defence'">
         
      </param_in>
      <param_in
         name="is_assigned_to"
         value="^organization">
         
      </param_in>
   </call_template>
   <call_template
      name="identifier"
      business_context="UK_Defence">
      <param_in
         name="ID"
         value="@ID">
         
      </param_in>
      <param_in
         name="source_organization"
         value="@source_organization">
         
      </param_in>
      <param_in
         name="type"
         value="'Organization_identification_code'">
         
      </param_in>
      <param_in
         name="items"
         value="^organization">
         
      </param_in>
   </call_template>
   <call_template
      name="identifier"
      business_context="UK_Defence">
      <param_in
         name="ID"
         value="@name">
         
      </param_in>
      <param_in
         name="source_organization"
         value="@source_organization">
         
      </param_in>
      <param_in
         name="type"
         value="'Organization_name'">
         
      </param_in>
      <param_in
         name="items"
         value="^organization">
         
      </param_in>
   </call_template>
   <comment>
      [optional short_name]
   </comment>
   <call_template
      name="identifier"
      business_context="UK_Defence">
      <param_in
         name="ID"
         value="@short_name">
         
      </param_in>
      <param_in
         name="source_organization"
         value="@source_organization">
         
      </param_in>
      <param_in
         name="type"
         value="'Organization_short_name'">
         
      </param_in>
      <param_in
         name="items"
         value="^organization">
         
      </param_in>
   </call_template>
   <comment>
      [optional end_date]
   </comment>
   <instantiate
      entity="Date_or_date_time_assignment"
      context="UK_Defence">
      
   </instantiate>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Date_or_date_time_assignment"
            attribute="role"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Date_or_date_time_assignment"
            attribute="items"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="organization">
            
         </bound_parameter>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Date_or_date_time_assignment"
            attribute="assigned_date"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="end_date">
            
         </param_in_ref>
      </source>
   </assign>
   <bind
      parameter="end_date">
      <express_entity
         entity="Date_or_date_time_assignment"
         context="UK_Defence">
         
      </express_entity>
   </bind>
   <call_template
      name="assigning_reference_data"
      business_context="UK_Defence">
      <param_in
         name="items"
         value="^end_date">
         
      </param_in>
      <param_in
         name="class_name"
         value="'Date_organization_ceased'">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="'urn:plcs:rdl:uk_defence'">
         
      </param_in>
   </call_template>
   <comment>
      [optional start_date]
   </comment>
   <instantiate
      entity="Date_or_date_time_assignment"
      context="UK_Defence">
      
   </instantiate>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Date_or_date_time_assignment"
            attribute="role"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Date_or_date_time_assignment"
            attribute="items"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="organization">
            
         </bound_parameter>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Date_or_date_time_assignment"
            attribute="assigned_date"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="start_date">
            
         </param_in_ref>
      </source>
   </assign>
   <bind
      parameter="start_date">
      <express_entity
         entity="Date_or_date_time_assignment"
         context="UK_Defence">
         
      </express_entity>
   </bind>
   <call_template
      name="assigning_reference_data"
      business_context="UK_Defence">
      <param_in
         name="items"
         value="^start_date">
         
      </param_in>
      <param_in
         name="class_name"
         value="'Date_organization_started'">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="'urn:plcs:rdl:uk_defence'">
         
      </param_in>
   </call_template>
</refpath>

© UK MOD 2010 — All rights reserved