Template:— property_change_relationship (prop_chg_rel)
Context:— UK_Defence
Date: 2010/03/15 14:46:04
Revision: 1.3
Template: property_change_relationship

XML references to the Template

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

property_change_relationship

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="property_change_relationship" 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="prior_value">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="subsequent_value">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="property_change_relationship">
  <param_in name="ID" value=""/>
  <param_in name="source_organization" value=""/>
  <param_in name="prior_value" value=""/>
  <param_in name="subsequent_value" value=""/>
</template_example>

property_change_relationship
/property_change_relationship(ID='', source_organization='', prior_value='', subsequent_value='')/

Path

-- Create the Selected_item entity
Selected_item
Selected_item.id = '/IGNORE'
Selected_item.name = '/IGNORE'
Selected_item.description = '/IGNORE'
%^sel_item = Selected_item%
%^prop_chg_rel = $property_value_relationship.rep_rel%
/identifier(
    ID=@ID,
    source_organization=@source_organization,
    type='Organization_identification_code',
    items=^sel_item)/

-- create the property_value_relationship entity
/property_value_relationship(
    rel_type='Succession_relationship',
    rel_type_ecl_id='urn:plcs:rdl:std',
    relating=@prior_value,
    related=@subsequent_value)/

-- [optional Classification_assignment]
Classification_assignment
Classification_assignment.role = '/IGNORE'
Classification_assignment.items -> ^prop_chg_rel
Classification_assignment.assigned_class -> ^sel_item
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Selected_item.id '/IGNORE' Class.id
Selected_item.name '/IGNORE' Class.name
Selected_item.description '/IGNORE' Class.description
Classification_assignment.role '/IGNORE'

XML representation of path

<refpath
   template="property_change_relationship">
   <comment>
      Create the Selected_item entity
   </comment>
   <instantiate
      entity="Selected_item"
      context="UK_Defence">
      
   </instantiate>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Selected_item"
            attribute="id"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value="'/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Selected_item"
            attribute="name"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value="'/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Selected_item"
            attribute="description"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value="'/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <bind
      parameter="sel_item">
      <express_entity
         entity="Selected_item"
         context="UK_Defence">
         
      </express_entity>
   </bind>
   <bind
      parameter="prop_chg_rel">
      <template_instance
         template="property_value_relationship"
         parameter="rep_rel">
         
      </template_instance>
   </bind>
   <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="^sel_item">
         
      </param_in>
   </call_template>
   <comment>
      create the property_value_relationship entity
   </comment>
   <call_template
      name="property_value_relationship"
      business_context="UK_Defence">
      <param_in
         name="rel_type"
         value="'Succession_relationship'">
         
      </param_in>
      <param_in
         name="rel_type_ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
      <param_in
         name="relating"
         value="@prior_value">
         
      </param_in>
      <param_in
         name="related"
         value="@subsequent_value">
         
      </param_in>
   </call_template>
   <comment>
      [optional Classification_assignment]
   </comment>
   <instantiate
      entity="Classification_assignment"
      context="UK_Defence">
      
   </instantiate>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Classification_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="Classification_assignment"
            attribute="items"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="prop_chg_rel">
            
         </bound_parameter>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Classification_assignment"
            attribute="assigned_class"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="sel_item">
            
         </bound_parameter>
      </source>
   </assign>
</refpath>

© UK MOD 2010 — All rights reserved