Template:— anomaly_event_relationship (an_evt_rel)
Context:— UK_Defence
Date: 2010/03/15 14:22:41
Revision: 1.2
Template: anomaly_event_relationship

XML references to the Template

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

anomaly_event_relationship

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

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

Setup a template_example:
<template_example name="anomaly_event_relationship">
  <param_in name="description" value=""/>
  <param_in name="ID" value=""/>
  <param_in name="source_organization" value="UK_Defence"/>
  <param_in name="related_anomaly" value=""/>
  <param_in name="related_event" value=""/>
</template_example>

anomaly_event_relationship
/anomaly_event_relationship(description='', ID='', source_organization='UK_Defence', related_anomaly='', related_event='')/

Path

-- Assigning Activity
/assigning_activity(
    role_class_name='/IGNORE',
    role_ecl_id='urn:plcs:rdl_std',
    assigned_activity=@related_event,
    items=@related_anomaly)/
%^an_evt_rel = $assigning_activity.appl_act%

-- Identifier
/identifier(
    ID=@ID,
    source_organization=@source_organization,
    type='Anomaly_event_relationship_identifier',
    items=^an_evt_rel)/

-- Description
/assigning_descriptor(
    descr=@description,
    class_name='Description',
    ecl_id='urn:plcs:rdl:std',
    is_assigned_to=^an_evt_rel)/

XML representation of path

<refpath
   template="anomaly_event_relationship">
   <comment>
      Assigning Activity
   </comment>
   <call_template
      name="assigning_activity"
      business_context="UK_Defence">
      <param_in
         name="role_class_name"
         value="'/IGNORE'">
         
      </param_in>
      <param_in
         name="role_ecl_id"
         value="'urn:plcs:rdl_std'">
         
      </param_in>
      <param_in
         name="assigned_activity"
         value="@related_event">
         
      </param_in>
      <param_in
         name="items"
         value="@related_anomaly">
         
      </param_in>
   </call_template>
   <bind
      parameter="an_evt_rel">
      <template_instance
         template="assigning_activity"
         parameter="appl_act">
         
      </template_instance>
   </bind>
   <comment>
      Identifier
   </comment>
   <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="'Anomaly_event_relationship_identifier'">
         
      </param_in>
      <param_in
         name="items"
         value="^an_evt_rel">
         
      </param_in>
   </call_template>
   <comment>
      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="'Description'">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
      <param_in
         name="is_assigned_to"
         value="^an_evt_rel">
         
      </param_in>
   </call_template>
</refpath>

© UK MOD 2010 — All rights reserved