Template:— support_cost_feedback (sup_ct_fbk)
Context:— UK_Defence
Date: 2009/04/17 11:58:03
Revision: 1.2
Template: support_cost_feedback

XML references to the Template

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

support_cost_feedback

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="support_cost_feedback" context="UK_Defence" >
  <param name="description">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="end_date">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="resource_cost">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="ID">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="source_organization">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="start_date_year">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="start_date_month">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="start_date_day">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="start_date_hour">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="start_date_minute">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="start_date_second">
    <param_value></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="support_cost_feedback">
  <param_in name="description" value=""/>
  <param_in name="end_date" value=""/>
  <param_in name="resource_cost" value=""/>
  <param_in name="ID" value=""/>
  <param_in name="source_organization" value=""/>
  <param_in name="start_date_year" value=""/>
  <param_in name="start_date_month" value=""/>
  <param_in name="start_date_day" value=""/>
  <param_in name="start_date_hour" value=""/>
  <param_in name="start_date_minute" value=""/>
  <param_in name="start_date_second" value=""/>
  <param_in name="record_date" value=""/>
  <param_in name="recorded_by" value=""/>
</template_example>

support_cost_feedback
/support_cost_feedback(description='', end_date='', resource_cost='', ID='', source_organization='', start_date_year='', start_date_month='', start_date_day='', start_date_hour='', start_date_minute='', start_date_second='', record_date='', recorded_by='')/

Path

Activity_method
Activity_method.name = '/IGNORE'
Activity_method.description = '/IGNORE'
Activity_method.consequence = '/IGNORE'
Activity_method.purpose = '/IGNORE'
%^act_method = Activity_method%
/representing_activity_actual(
    id=@ID,
    id_class_name='Support_cost_feedback_identifier',
    id_ecl_id='urn:plcs:rdl:uk_defence',
    id_owner=@source_organization,
    id_owner_class_name='Identifier_owner',
    id_owner_ecl_id='urn:plcs:rdl:uk_defence, date_class_name=')/
%^sup_ct_fbk = $representing_activity_actual.act_act%

-- [Optional Description]
/assigning_descriptor(
    descr=@description,
    class_name='Description',
    ecl_id='urn:plcs:rdl:uk_defence',
    is_assigned_to=^sup_ct_fbk)/

-- relationship to activity resource usage cost
Applied_activity_assignment
Applied_activity_assignment.role = '/IGNORE'
Applied_activity_assignment.items -> @resource_cost
Applied_activity_assignment.assigned_activity -> ^sup_ct_fbk
%^res_cost = Applied_activity_assignment%
/assigning_reference_data(
    items=^res_cost,
    class_name='Resource_cost',
    ecl_id='urn:plcs:rdl:uk_defence')/

-- relationship to end time
Date_or_date_time_assignment
Date_or_date_time_assignment.role = '/IGNORE'
Date_or_date_time_assignment.items -> ^sup_ct_fbk
Date_or_date_time_assignment.assigned_date -> @end_date
%^end_date_time = Date_or_date_time_assignment%
/assigning_reference_data(
    items=^end_date_time,
    class_name='Date_actual_end',
    ecl_id='urn:plcs:rdl:std')/

-- relationship to record_date
Date_or_date_time_assignment
Date_or_date_time_assignment.role = '/IGNORE'
Date_or_date_time_assignment.items -> ^sup_ct_fbk
Date_or_date_time_assignment.assigned_date -> @record_date
%^record_date_time = Date_or_date_time_assignment%
/assigning_reference_data(
    items=^record_date_time,
    class_name='Record_date',
    ecl_id='urn:plcs:rdl:uk_defence')/

-- relationship to recorded by
Applied_activity_assignment
Applied_activity_assignment.role = '/IGNORE'
Applied_activity_assignment.items -> @recorded_by
Applied_activity_assignment.assigned_activity -> ^sup_ct_fbk
%^rec_by = Applied_activity_assignment%
/assigning_reference_data(
    items=^rec_by,
    class_name='Recorded_by',
    ecl_id='urn:plcs:rdl:uk_defence')/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Activity_method.name '/IGNORE'
Activity_method.description '/IGNORE'
Activity_method.consequence '/IGNORE'
Activity_method.purpose '/IGNORE'
Applied_activity_assignment.role '/IGNORE'
Date_or_date_time_assignment.role '/IGNORE'
Date_or_date_time_assignment.role '/IGNORE'
Applied_activity_assignment.role '/IGNORE'

XML representation of path

<refpath
   template="support_cost_feedback">
   <instantiate
      entity="Activity_method"
      context="UK_Defence">
      
   </instantiate>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Activity_method"
            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="Activity_method"
            attribute="description"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Activity_method"
            attribute="consequence"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Activity_method"
            attribute="purpose"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <bind
      parameter="act_method">
      <express_entity
         entity="Activity_method"
         context="UK_Defence">
         
      </express_entity>
   </bind>
   <call_template
      name="representing_activity_actual"
      business_context="UK_Defence">
      <param_in
         name="id"
         value="@ID">
         
      </param_in>
      <param_in
         name="id_class_name"
         value="'Support_cost_feedback_identifier'">
         
      </param_in>
      <param_in
         name="id_ecl_id"
         value="'urn:plcs:rdl:uk_defence'">
         
      </param_in>
      <param_in
         name="id_owner"
         value="@source_organization">
         
      </param_in>
      <param_in
         name="id_owner_class_name"
         value="'Identifier_owner'">
         
      </param_in>
      <param_in
         name="id_owner_ecl_id"
         value="'urn:plcs:rdl:uk_defence, date_class_name='">
         
      </param_in>
   </call_template>
   <bind
      parameter="sup_ct_fbk">
      <template_instance
         template="representing_activity_actual"
         parameter="act_act">
         
      </template_instance>
   </bind>
   <comment>
      [Optional 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:uk_defence'">
         
      </param_in>
      <param_in
         name="is_assigned_to"
         value="^sup_ct_fbk">
         
      </param_in>
   </call_template>
   <comment>
      relationship to activity resource usage cost
   </comment>
   <instantiate
      entity="Applied_activity_assignment"
      context="UK_Defence">
      
   </instantiate>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Applied_activity_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="Applied_activity_assignment"
            attribute="items"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="resource_cost">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Applied_activity_assignment"
            attribute="assigned_activity"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="sup_ct_fbk">
            
         </bound_parameter>
      </source>
   </assign>
   <bind
      parameter="res_cost">
      <express_entity
         entity="Applied_activity_assignment"
         context="UK_Defence">
         
      </express_entity>
   </bind>
   <call_template
      name="assigning_reference_data"
      business_context="UK_Defence">
      <param_in
         name="items"
         value="^res_cost">
         
      </param_in>
      <param_in
         name="class_name"
         value="'Resource_cost'">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="'urn:plcs:rdl:uk_defence'">
         
      </param_in>
   </call_template>
   <comment>
      relationship to end time
   </comment>
   <instantiate
      entity="Date_or_date_time_assignment"
      context="UK_Defence">
      
   </instantiate>
   <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="items"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="sup_ct_fbk">
            
         </bound_parameter>
      </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="end_date">
            
         </param_in_ref>
      </source>
   </assign>
   <bind
      parameter="end_date_time">
      <express_entity
         entity="Date_or_date_time_assignment"
         context="UK_Defence">
         
      </express_entity>
   </bind>
   <call_template
      name="assigning_reference_data"
      business_context="UK_Defence">
      <param_in
         name="items"
         value="^end_date_time">
         
      </param_in>
      <param_in
         name="class_name"
         value="'Date_actual_end'">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
   </call_template>
   <comment>
      relationship to record_date
   </comment>
   <instantiate
      entity="Date_or_date_time_assignment"
      context="UK_Defence">
      
   </instantiate>
   <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="items"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="sup_ct_fbk">
            
         </bound_parameter>
      </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>
   <bind
      parameter="record_date_time">
      <express_entity
         entity="Date_or_date_time_assignment"
         context="UK_Defence">
         
      </express_entity>
   </bind>
   <call_template
      name="assigning_reference_data"
      business_context="UK_Defence">
      <param_in
         name="items"
         value="^record_date_time">
         
      </param_in>
      <param_in
         name="class_name"
         value="'Record_date'">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="'urn:plcs:rdl:uk_defence'">
         
      </param_in>
   </call_template>
   <comment>
      relationship to recorded by
   </comment>
   <instantiate
      entity="Applied_activity_assignment"
      context="UK_Defence">
      
   </instantiate>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Applied_activity_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="Applied_activity_assignment"
            attribute="items"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="recorded_by">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Applied_activity_assignment"
            attribute="assigned_activity"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="sup_ct_fbk">
            
         </bound_parameter>
      </source>
   </assign>
   <bind
      parameter="rec_by">
      <express_entity
         entity="Applied_activity_assignment"
         context="UK_Defence">
         
      </express_entity>
   </bind>
   <call_template
      name="assigning_reference_data"
      business_context="UK_Defence">
      <param_in
         name="items"
         value="^rec_by">
         
      </param_in>
      <param_in
         name="class_name"
         value="'Recorded_by'">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="'urn:plcs:rdl:uk_defence'">
         
      </param_in>
   </call_template>
</refpath>

© UK MOD 2010 — All rights reserved