Template:— organizational_unit (org_unit)
Context:— UK_Defence
Date: 2009/04/17 10:13:34
Revision: 1.4
Template: organizational_unit

XML references to the Template

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

organizational_unit

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="organizational_unit" context="UK_Defence" >
  <param name="base_location">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="non_standard_location">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="organizational_unit">
  <param_in name="base_location" value=""/>
  <param_in name="non_standard_location" value=""/>
</template_example>

organizational_unit
/organizational_unit(base_location='', non_standard_location='')/

Path

/assigning_organization(
    org_id='',
    org_id_class_name='',
    org_id_ecl_id='urn:plcs:rdl:uk_defence',
    org_assgn_class_name='non_standard_location',
    org_assgn_ecl_id='urn:plcs:rdl:uk_defence',
    items=@non_standard_location)/

-- assign ref parameters
%^organization = $assigning_organization.organization%
%^org_asst = $assigning_organization.organization_assgn%
Location_assignment
Location_assignment.location_for_assignment -> @base_location
Location_assignment.entity_for_location -> ^organization

-- assign ref parameters
%^location_asst = Location_assignment%

XML representation of path

<refpath
   template="organizational_unit">
   <call_template
      name="assigning_organization"
      business_context="UK_Defence">
      <param_in
         name="org_id"
         value="''">
         
      </param_in>
      <param_in
         name="org_id_class_name"
         value="''">
         
      </param_in>
      <param_in
         name="org_id_ecl_id"
         value="'urn:plcs:rdl:uk_defence'">
         
      </param_in>
      <param_in
         name="org_assgn_class_name"
         value="'non_standard_location'">
         
      </param_in>
      <param_in
         name="org_assgn_ecl_id"
         value="'urn:plcs:rdl:uk_defence'">
         
      </param_in>
      <param_in
         name="items"
         value="@non_standard_location">
         
      </param_in>
   </call_template>
   <comment>
      assign ref parameters
   </comment>
   <bind
      parameter="organization">
      <template_instance
         template="assigning_organization"
         parameter="organization">
         
      </template_instance>
   </bind>
   <bind
      parameter="org_asst">
      <template_instance
         template="assigning_organization"
         parameter="organization_assgn">
         
      </template_instance>
   </bind>
   <instantiate
      entity="Location_assignment"
      context="UK_Defence">
      
   </instantiate>
   <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="base_location">
            
         </param_in_ref>
      </source>
   </assign>
   <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="organization">
            
         </bound_parameter>
      </source>
   </assign>
   <comment>
      assign ref parameters
   </comment>
   <bind
      parameter="location_asst">
      <express_entity
         entity="Location_assignment"
         context="UK_Defence">
         
      </express_entity>
   </bind>
</refpath>

© UK MOD 2010 — All rights reserved