Template:— inventory_resource_event_relationship (invntry_res_event_rel)
Context:— UK_Defence
Date: 2009/04/17 09:34:16
Revision: 1.5
Template: inventory_resource_event_relationship

XML references to the Template

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

inventory_resource_event_relationship

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="inventory_resource_event_relationship" context="UK_Defence" >
  <param name="relating_resource_event">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="related_required_resource">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="resource_event_correspondence_rel_role">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="inventory_resource_event_relationship">
  <param_in name="relating_resource_event" value=""/>
  <param_in name="related_required_resource" value=""/>
  <param_in name="resource_event_correspondence_rel_role" value=""/>
</template_example>

inventory_resource_event_relationship
/inventory_resource_event_relationship(relating_resource_event='', related_required_resource='', resource_event_correspondence_rel_role='')/

Path

Resource_event_correspondence_relationship
Resource_event_correspondence_relationship.name = '/IGNORE'
Resource_event_correspondence_relationship.relating -> @relating_resource_event
Resource_event_correspondence_relationship.related -> @related_required_resource

-- ref param
%^res_event_corresp_rel = Resource_event_correspondence_relationship%

-- role of relationship
/assigning_reference_data(
    items=^res_event_corresp_rel,
    class_name=@resource_event_correspondence_rel_role,
    ecl_id='urn:plcs:rdl:uk_defence')/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Resource_event_correspondence_relationship.name '/IGNORE'

XML representation of path

<refpath
   template="inventory_resource_event_relationship">
   <instantiate
      entity="Resource_event_correspondence_relationship"
      context="UK_Defence">
      
   </instantiate>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Resource_event_correspondence_relationship"
            attribute="name"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value="'/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Resource_event_correspondence_relationship"
            attribute="relating"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="relating_resource_event">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Resource_event_correspondence_relationship"
            attribute="related"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="related_required_resource">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      ref param
   </comment>
   <bind
      parameter="res_event_corresp_rel">
      <express_entity
         entity="Resource_event_correspondence_relationship"
         context="UK_Defence">
         
      </express_entity>
   </bind>
   <comment>
      role of relationship
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="UK_Defence">
      <param_in
         name="items"
         value="^res_event_corresp_rel">
         
      </param_in>
      <param_in
         name="class_name"
         value="@resource_event_correspondence_rel_role">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="'urn:plcs:rdl:uk_defence'">
         
      </param_in>
   </call_template>
</refpath>

© UK MOD 2010 — All rights reserved