Template:— support_node (supt_node)
Context:— UK_Defence
Date: 2009/04/17 11:58:03
Revision: 1.4
Template: support_node

XML references to the Template

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

support_node

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="support_node" context="UK_Defence" >
  <param name="ID">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="source_organization">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="located_at">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="responsibility_of">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="support_node">
  <param_in name="ID" value=""/>
  <param_in name="source_organization" value=""/>
  <param_in name="located_at" value=""/>
  <param_in name="name" value=""/>
  <param_in name="responsibility_of" value=""/>
</template_example>

support_node
/support_node(ID='', source_organization='', located_at='', name='', responsibility_of='')/

Path

-- Instantiate an organization
/organization(
    ID=@ID,
    source_organization=@source_organization,
    address='/IGNORE',
    description='/IGNORE',
    end_date='/IGNORE',
    name=@name,
    short_name='/IGNORE',
    start_date='/IGNORE')/
%^support_node = $organization.organization%

-- Instantiate an assignment to the location
Location_assignment
Location_assignment.entity_for_location -> ^support_node
Location_assignment.location_for_assignment -> @located_at
Location_assignment.description = '/IGNORE'
Location_assignment.role = '/IGNORE'

-- Instantiate an Organization_relationship
Organization_relationship
Organization_relationship.relation_type = '/IGNORE'
Organization_relationship.description = '/IGNORE'
Organization_relationship.relating_organization -> @responsibility_of
Organization_relationship.related_organization -> ^support_node
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Location_assignment.description '/IGNORE'
Location_assignment.role '/IGNORE'
Organization_relationship.relation_type '/IGNORE'
Organization_relationship.description '/IGNORE'

XML representation of path

<refpath
   template="support_node">
   <comment>
      Instantiate an organization
   </comment>
   <call_template
      name="organization"
      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="address"
         value="'/IGNORE'">
         
      </param_in>
      <param_in
         name="description"
         value="'/IGNORE'">
         
      </param_in>
      <param_in
         name="end_date"
         value="'/IGNORE'">
         
      </param_in>
      <param_in
         name="name"
         value="@name">
         
      </param_in>
      <param_in
         name="short_name"
         value="'/IGNORE'">
         
      </param_in>
      <param_in
         name="start_date"
         value="'/IGNORE'">
         
      </param_in>
   </call_template>
   <bind
      parameter="support_node">
      <template_instance
         template="organization"
         parameter="organization">
         
      </template_instance>
   </bind>
   <comment>
      Instantiate an assignment to the location
   </comment>
   <instantiate
      entity="Location_assignment"
      context="UK_Defence">
      
   </instantiate>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Location_assignment"
            attribute="entity_for_location"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="support_node">
            
         </bound_parameter>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Location_assignment"
            attribute="location_for_assignment"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="located_at">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Location_assignment"
            attribute="description"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Location_assignment"
            attribute="role"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Instantiate an Organization_relationship
   </comment>
   <instantiate
      entity="Organization_relationship"
      context="UK_Defence">
      
   </instantiate>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Organization_relationship"
            attribute="relation_type"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Organization_relationship"
            attribute="description"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Organization_relationship"
            attribute="relating_organization"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="responsibility_of">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Organization_relationship"
            attribute="related_organization"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="support_node">
            
         </bound_parameter>
      </source>
   </assign>
</refpath>

© UK MOD 2010 — All rights reserved