Template:— training_feedback (trng_fbk)
Context:— UK_Defence
Date: 2010/02/23 19:05:02
Revision: 1.5
Template: training_feedback

XML references to the Template

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

training_feedback

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="training_feedback" context="UK_Defence" >
  <param name="feedback_content">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="description">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="ID">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="ID_source_organization">
    <param_value>UK_Defence</param_value>
    <description></description>
  </param>
  <param name="record_date">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="recorded_by">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="training_feedback">
  <param_in name="feedback_content" value=""/>
  <param_in name="description" value=""/>
  <param_in name="ID" value=""/>
  <param_in name="ID_source_organization" value="UK_Defence"/>
  <param_in name="record_date" value=""/>
  <param_in name="recorded_by" value=""/>
</template_example>

training_feedback
/training_feedback(feedback_content='', description='', ID='', ID_source_organization='UK_Defence', record_date='', recorded_by='')/

Path

-- Representing document
/representing_document(
    doc_id=@ID,
    doc_id_class_name='Training_feedback_identifier',
    doc_id_ecl_id='urn:plcs:rdl:uk_defence',
    doc_org_id=@ID_source_organization,
    doc_org_id_class_name='Organization_name_or_identification_code',
    doc_org_id_ecl_id='urn:plcs:rdl:uk_defence',
    doc_vn_id=/NULL,
    doc_vn_id_class_name='Version_identification_code',
    doc_vn_id_ecl_id='urn:plcs:rdl:std',
    doc_vn_org_id='/NULL',
    doc_vn_org_id_class_name='Organization_name',
    doc_vn_org_id_ecl_id='urn:plcs:rdl:std',
    domain='Product_life_cycle_support',
    domain_ecl_id='urn:plcs:rdl:std',
    life_cycle_stage='Support_stage',
    life_cycle_stage_ecl_id='urn:plcs:rdl:std')/
%^training_feedback = $representing_document.document%

-- description
/assigning_descriptor(
    descr=@description,
    class_name='Training_feedback_description',
    ecl_id='urn:plcs:rdl:uk_defence',
    is_assigned_to=^training_feedback)/

-- Record date
Date_or_date_time_assignment
Date_or_date_time_assignment.items -> ^training_feedback
Date_or_date_time_assignment.role = '/IGNORE'
Date_or_date_time_assignment.assigned_date -> @record_date

-- Recorded by (mandatory)
Organization_or_person_in_organization_assignment
Organization_or_person_in_organization_assignment.role = '/IGNORE'
Organization_or_person_in_organization_assignment.items -> ^training_feedback
Organization_or_person_in_organization_assignment.assigned_entity -> @recorded_by
%^recorded_by = Organization_or_person_in_organization_assignment%
/assigning_reference_data(
    items=^recorded_by,
    class_name='Date_training_feedback_created',
    ecl_id='urn:plcs:rdl:uk_defence')/

-- Feedback content
/assigning_document(
    assigned_document=^training_feedback,
    doc_ass_role='Related_feedback_content',
    doc_ar_ecl_id='urn:plcs:rdl:uk_defence',
    is_assigned_to=@feedback_content)/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Date_or_date_time_assignment.role '/IGNORE'
Organization_or_person_in_organization_assignment.role '/IGNORE'

XML representation of path

<refpath
   template="training_feedback">
   <comment>
      Representing document
   </comment>
   <call_template
      name="representing_document"
      business_context="UK_Defence">
      <param_in
         name="doc_id"
         value="@ID">
         
      </param_in>
      <param_in
         name="doc_id_class_name"
         value="'Training_feedback_identifier'">
         
      </param_in>
      <param_in
         name="doc_id_ecl_id"
         value="'urn:plcs:rdl:uk_defence'">
         
      </param_in>
      <param_in
         name="doc_org_id"
         value="@ID_source_organization">
         
      </param_in>
      <param_in
         name="doc_org_id_class_name"
         value="'Organization_name_or_identification_code'">
         
      </param_in>
      <param_in
         name="doc_org_id_ecl_id"
         value="'urn:plcs:rdl:uk_defence'">
         
      </param_in>
      <param_in
         name="doc_vn_id"
         value="/NULL">
         
      </param_in>
      <param_in
         name="doc_vn_id_class_name"
         value="'Version_identification_code'">
         
      </param_in>
      <param_in
         name="doc_vn_id_ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
      <param_in
         name="doc_vn_org_id"
         value="'/NULL'">
         
      </param_in>
      <param_in
         name="doc_vn_org_id_class_name"
         value="'Organization_name'">
         
      </param_in>
      <param_in
         name="doc_vn_org_id_ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
      <param_in
         name="domain"
         value="'Product_life_cycle_support'">
         
      </param_in>
      <param_in
         name="domain_ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
      <param_in
         name="life_cycle_stage"
         value="'Support_stage'">
         
      </param_in>
      <param_in
         name="life_cycle_stage_ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
   </call_template>
   <bind
      parameter="training_feedback">
      <template_instance
         template="representing_document"
         parameter="document">
         
      </template_instance>
   </bind>
   <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="'Training_feedback_description'">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="'urn:plcs:rdl:uk_defence'">
         
      </param_in>
      <param_in
         name="is_assigned_to"
         value="^training_feedback">
         
      </param_in>
   </call_template>
   <comment>
      Record date
   </comment>
   <instantiate
      entity="Date_or_date_time_assignment"
      context="UK_Defence">
      
   </instantiate>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Date_or_date_time_assignment"
            attribute="items"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="training_feedback">
            
         </bound_parameter>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Date_or_date_time_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="Date_or_date_time_assignment"
            attribute="assigned_date"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="record_date">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      Recorded by (mandatory)
   </comment>
   <instantiate
      entity="Organization_or_person_in_organization_assignment"
      context="UK_Defence">
      
   </instantiate>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Organization_or_person_in_organization_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="Organization_or_person_in_organization_assignment"
            attribute="items"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="training_feedback">
            
         </bound_parameter>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Organization_or_person_in_organization_assignment"
            attribute="assigned_entity"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="recorded_by">
            
         </param_in_ref>
      </source>
   </assign>
   <bind
      parameter="recorded_by">
      <express_entity
         entity="Organization_or_person_in_organization_assignment"
         context="UK_Defence">
         
      </express_entity>
   </bind>
   <call_template
      name="assigning_reference_data"
      business_context="UK_Defence">
      <param_in
         name="items"
         value="^recorded_by">
         
      </param_in>
      <param_in
         name="class_name"
         value="'Date_training_feedback_created'">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="'urn:plcs:rdl:uk_defence'">
         
      </param_in>
   </call_template>
   <comment>
      Feedback content
   </comment>
   <call_template
      name="assigning_document"
      business_context="UK_Defence">
      <param_in
         name="assigned_document"
         value="^training_feedback">
         
      </param_in>
      <param_in
         name="doc_ass_role"
         value="'Related_feedback_content'">
         
      </param_in>
      <param_in
         name="doc_ar_ecl_id"
         value="'urn:plcs:rdl:uk_defence'">
         
      </param_in>
      <param_in
         name="is_assigned_to"
         value="@feedback_content">
         
      </param_in>
   </call_template>
</refpath>

© UK MOD 2010 — All rights reserved