Template:— referencing_maintenance_task (ref_tsk)
Context:— MoDAvDEX
Date: 2008/01/28 11:56:19
Revision: 1.5
Template: referencing_maintenance_task

XML references to the Template

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

referencing_maintenance_task

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="referencing_maintenance_task" context="MoDAvDEX" >
  <param name="task_id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="task_version_id">
    <param_value>/NULL</param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="referencing_maintenance_task">
  <param_in name="task_id" value=""/>
  <param_in name="task_version_id" value="/NULL"/>
</template_example>

referencing_maintenance_task
/referencing_maintenance_task(task_id='', task_version_id='/NULL')/

Path

/referencing_task(
    task_id=@task_id,
    task_id_class_name='Task_method_identification_code',
    task_ecl_id='urn:plcs:rdl:std',
    task_org_id='LITS',
    task_org_id_class_name='Organization_name',
    task_org_id_ecl_id='urn:plcs:rdl:std',
    task_ver_id=@task_version_id,
    task_ver_id_class_name='Version_identification_code',
    task_ver_ecl_id='urn:plcs:rdl:std',
    task_ver_org_id='LITS',
    task_ver_org_id_class_name='Organization_name',
    task_ver_org_id_ecl_id='urn:plcs:rdl:std')/

-- Bind the Activity_method instantiated by representing_typical_activity
-- to the reference parameter ^chosen_method
%^task_method_version = $referencing_task.task_method_version%
/representing_typical_activity(
    id=@task_id,
    id_class_name='Activity_method_identification_code',
    id_ecl_id='urn:plcs:rdl:std',
    id_owner='LITS',
    id_owner_class_name='Organization_name',
    id_owner_ecl_id='urn:plcs:rdl:std',
    type='Typical_activity',
    type_ecl_id='urn:plcs:rdl:std')/

-- Bind the Activity_method instantiated by representing_typical_activity
-- to the reference parameter ^chosen_method
%^act_method = $representing_typical_activity.act_method%

-- Relate the typical activity and the task
Activity_method_realization.id = '/IGNORE'
Activity_method_realization.name = '/IGNORE'
Activity_method_realization.description = '/IGNORE'
Activity_method_realization.activity_method -> ^act_method
Activity_method_realization.realized_by -> ^task_method_version
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Activity_method_realization.id '/IGNORE'
Activity_method_realization.name '/IGNORE'
Activity_method_realization.description '/IGNORE'

XML representation of path

<refpath
   template="referencing_maintenance_task">
   <call_template
      name="referencing_task"
      business_context="MoDAvDEX">
      <param_in
         name="task_id"
         value="@task_id">
         
      </param_in>
      <param_in
         name="task_id_class_name"
         value="'Task_method_identification_code'">
         
      </param_in>
      <param_in
         name="task_ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
      <param_in
         name="task_org_id"
         value="'LITS'">
         
      </param_in>
      <param_in
         name="task_org_id_class_name"
         value="'Organization_name'">
         
      </param_in>
      <param_in
         name="task_org_id_ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
      <param_in
         name="task_ver_id"
         value="@task_version_id">
         
      </param_in>
      <param_in
         name="task_ver_id_class_name"
         value="'Version_identification_code'">
         
      </param_in>
      <param_in
         name="task_ver_ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
      <param_in
         name="task_ver_org_id"
         value="'LITS'">
         
      </param_in>
      <param_in
         name="task_ver_org_id_class_name"
         value="'Organization_name'">
         
      </param_in>
      <param_in
         name="task_ver_org_id_ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
   </call_template>
   <comment>
      Bind the Activity_method instantiated by representing_typical_activity
   </comment>
   <comment>
      to the reference parameter ^chosen_method
   </comment>
   <bind
      parameter="task_method_version">
      <template_instance
         template="referencing_task"
         parameter="task_method_version">
         
      </template_instance>
   </bind>
   <call_template
      name="representing_typical_activity"
      business_context="MoDAvDEX">
      <param_in
         name="id"
         value="@task_id">
         
      </param_in>
      <param_in
         name="id_class_name"
         value="'Activity_method_identification_code'">
         
      </param_in>
      <param_in
         name="id_ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
      <param_in
         name="id_owner"
         value="'LITS'">
         
      </param_in>
      <param_in
         name="id_owner_class_name"
         value="'Organization_name'">
         
      </param_in>
      <param_in
         name="id_owner_ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
      <param_in
         name="type"
         value="'Typical_activity'">
         
      </param_in>
      <param_in
         name="type_ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
   </call_template>
   <comment>
      Bind the Activity_method instantiated by representing_typical_activity
   </comment>
   <comment>
      to the reference parameter ^chosen_method
   </comment>
   <bind
      parameter="act_method">
      <template_instance
         template="representing_typical_activity"
         parameter="act_method">
         
      </template_instance>
   </bind>
   <comment>
      Relate the typical activity and the task
   </comment>
   <assign
      assignment_type="equals"
      context="MoDAvDEX">
      <target>
         <express_attribute
            entity="Activity_method_realization"
            attribute="id"
            context="MoDAvDEX">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="MoDAvDEX">
      <target>
         <express_attribute
            entity="Activity_method_realization"
            attribute="name"
            context="MoDAvDEX">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="MoDAvDEX">
      <target>
         <express_attribute
            entity="Activity_method_realization"
            attribute="description"
            context="MoDAvDEX">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Activity_method_realization"
            attribute="activity_method"
            context="MoDAvDEX">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="act_method">
            
         </bound_parameter>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Activity_method_realization"
            attribute="realized_by"
            context="MoDAvDEX">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="task_method_version">
            
         </bound_parameter>
      </source>
   </assign>
</refpath>

© UK MOD 2010 — All rights reserved