Template:— MoDAvDEXmessage_inventory_loss (MoDAvmsg_inv_loss)
Context:— MoDAvDEX
Date: 2008/02/08 07:49:40
Revision: 1.8
Template: MoDAvDEXmessage_inventory_loss

XML references to the Template

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

MoDAvDEXmessage_inventory_loss

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="MoDAvDEXmessage_inventory_loss" context="MoDAvDEX" >
  <param name="msg_identifier">
    <param_value>/NULL</param_value>
    <description></description>
  </param>
  <param name="sent_year">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="sent_month">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="sent_day">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="sent_hour">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="sent_minute">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="sent_second">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="sender_organization">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="receiver_organization">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="contract_identifier">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="extract_year">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="extract_month">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="extract_day">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="extract_hour">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="extract_minute">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="extract_second">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="security_class">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="activity_identifier">
    <param_value>/NULL</param_value>
    <description></description>
  </param>
  <param name="activity_organization">
    <param_value>/NULL</param_value>
    <description></description>
  </param>
  <param name="activity_year">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="activity_month">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="activity_day">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="activity_hour">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="activity_minute">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="activity_second">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="serial_number">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="part_number">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="supplier">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="NSN">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="MoDAvDEXmessage_inventory_loss">
  <param_in name="msg_identifier" value="/NULL"/>
  <param_in name="sent_year" value=""/>
  <param_in name="sent_month" value=""/>
  <param_in name="sent_day" value=""/>
  <param_in name="sent_hour" value=""/>
  <param_in name="sent_minute" value=""/>
  <param_in name="sent_second" value=""/>
  <param_in name="sender_organization" value=""/>
  <param_in name="receiver_organization" value=""/>
  <param_in name="contract_identifier" value=""/>
  <param_in name="extract_year" value=""/>
  <param_in name="extract_month" value=""/>
  <param_in name="extract_day" value=""/>
  <param_in name="extract_hour" value=""/>
  <param_in name="extract_minute" value=""/>
  <param_in name="extract_second" value=""/>
  <param_in name="security_class" value=""/>
  <param_in name="activity_identifier" value="/NULL"/>
  <param_in name="activity_organization" value="/NULL"/>
  <param_in name="activity_year" value=""/>
  <param_in name="activity_month" value=""/>
  <param_in name="activity_day" value=""/>
  <param_in name="activity_hour" value=""/>
  <param_in name="activity_minute" value=""/>
  <param_in name="activity_second" value=""/>
  <param_in name="serial_number" value=""/>
  <param_in name="part_number" value=""/>
  <param_in name="supplier" value=""/>
  <param_in name="NSN" value=""/>
</template_example>

MoDAvDEXmessage_inventory_loss
/MoDAvDEXmessage_inventory_loss(msg_identifier='/NULL', sent_year='', sent_month='', sent_day='', sent_hour='', sent_minute='', sent_second='', sender_organization='', receiver_organization='', contract_identifier='', extract_year='', extract_month='', extract_day='', extract_hour='', extract_minute='', extract_second='', security_class='', activity_identifier='/NULL', activity_organization='/NULL', activity_year='', activity_month='', activity_day='', activity_hour='', activity_minute='', activity_second='', serial_number='', part_number='', supplier='', NSN='')/

Path

-- instantiate reportable_item
/reportable_item(
    serial_number=@serial_number,
    part_number=@part_number,
    supplier=@supplier,
    NSN=@NSN)/
%^par = $reportable_item.par%
%^view = $reportable_item.view%
%^res_item = Resource_item%
Resource_item.name = '/IGNORE'
Resource_item.description = '/IGNORE'
Resource_item.resource_items -> ^par
%^mng_res = Managed_resource%
Managed_resource.name = '/IGNORE'
Managed_resource.description = '/IGNORE'
Managed_resource.item -> ^res_item
/representing_count(
    value='1')/
%^count = $representing_count.count%
%^res_event = Decreasing_resource_event%
Decreasing_resource_event.name = '/IGNORE'
Decreasing_resource_event.description = '/IGNORE'
Decreasing_resource_event.quantity -> ^count
Decreasing_resource_event.resource -> ^mng_res
/assigning_asserted_state(
    state_class_name='Decommissioned',
    state_ecl_id='urn:plcs:rdl:ModAvDex',
    assigned_to=^par)/
%^state_decom = $assigning_asserted_state.state_obs%
/representing_activity_actual(
    id=@activity_identifier,
    id_class_name='Activity_identification_code',
    id_ecl_id='urn:plcs:rdl:std',
    id_owner=@activity_organization,
    id_owner_class_name='Organization_name',
    id_owner_ecl_id='urn:plcs:rdl:std',
    method='',
    date_class_name='Date_actual_start',
    date_ecl_id='urn:plcs:rdl:std',
    year=@activity_year,
    month=@activity_month,
    day=@activity_day,
    hour=@activity_hour,
    minute=@activity_minute,
    second=@activity_second,
    sense='.EXACT.',
    hour_offset='0',
    minute_offset='0')/
%^act_act = $representing_activity_actual.act_act%

-- instantiate MoDAvDEXmessage
/MoDAvDEXmessage(
    msg_identifier=@msg_identifier,
    sent_year=@sent_year,
    sent_month=@sent_month,
    sent_day=@sent_day,
    sent_hour=@sent_hour,
    sent_minute=@sent_minute,
    sent_second=@sent_second,
    sender_organization=@sender_organization,
    receiver_organization=@receiver_organization,
    contract_identifier=@contract_identifier,
    extract_year=@extract_year,
    extract_month=@extract_month,
    extract_day=@extract_day,
    extract_hour=@extract_hour,
    extract_minute=@extract_minute,
    extract_second=@extract_second,
    security_class=@security_class,
    content=^act_act)/

-- instantiate assigning_activity
/assigning_activity(
    role_class_name='Activity_input',
    role_ecl_id='urn:plcs:rdl:std',
    assigned_activity=^act_act,
    items=^res_event)/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Resource_item.name '/IGNORE'
Resource_item.description '/IGNORE'
Managed_resource.name '/IGNORE'
Managed_resource.description '/IGNORE'
Decreasing_resource_event.name '/IGNORE' Resource_event.name
Decreasing_resource_event.description '/IGNORE' Resource_event.description

XML representation of path

<refpath
   template="MoDAvDEXmessage_inventory_loss">
   <comment>
      instantiate reportable_item
   </comment>
   <call_template
      name="reportable_item"
      business_context="MoDAvDEX">
      <param_in
         name="serial_number"
         value="@serial_number">
         
      </param_in>
      <param_in
         name="part_number"
         value="@part_number">
         
      </param_in>
      <param_in
         name="supplier"
         value="@supplier">
         
      </param_in>
      <param_in
         name="NSN"
         value="@NSN">
         
      </param_in>
   </call_template>
   <bind
      parameter="par">
      <template_instance
         template="reportable_item"
         parameter="par">
         
      </template_instance>
   </bind>
   <bind
      parameter="view">
      <template_instance
         template="reportable_item"
         parameter="view">
         
      </template_instance>
   </bind>
   <bind
      parameter="res_item">
      <express_entity
         entity="Resource_item"
         context="MoDAvDEX">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="MoDAvDEX">
      <target>
         <express_attribute
            entity="Resource_item"
            attribute="name"
            context="MoDAvDEX">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="MoDAvDEX">
      <target>
         <express_attribute
            entity="Resource_item"
            attribute="description"
            context="MoDAvDEX">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Resource_item"
            attribute="resource_items"
            context="MoDAvDEX">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="par">
            
         </bound_parameter>
      </source>
   </assign>
   <bind
      parameter="mng_res">
      <express_entity
         entity="Managed_resource"
         context="MoDAvDEX">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="MoDAvDEX">
      <target>
         <express_attribute
            entity="Managed_resource"
            attribute="name"
            context="MoDAvDEX">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="MoDAvDEX">
      <target>
         <express_attribute
            entity="Managed_resource"
            attribute="description"
            context="MoDAvDEX">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Managed_resource"
            attribute="item"
            context="MoDAvDEX">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="res_item">
            
         </bound_parameter>
      </source>
   </assign>
   <call_template
      name="representing_count"
      business_context="MoDAvDEX">
      <param_in
         name="value"
         value="'1'">
         
      </param_in>
   </call_template>
   <bind
      parameter="count">
      <template_instance
         template="representing_count"
         parameter="count">
         
      </template_instance>
   </bind>
   <bind
      parameter="res_event">
      <express_entity
         entity="Decreasing_resource_event"
         context="MoDAvDEX">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="MoDAvDEX">
      <target>
         <express_attribute
            entity="Decreasing_resource_event"
            attribute="name"
            context="MoDAvDEX">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="MoDAvDEX">
      <target>
         <express_attribute
            entity="Decreasing_resource_event"
            attribute="description"
            context="MoDAvDEX">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Decreasing_resource_event"
            attribute="quantity"
            context="MoDAvDEX">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="count">
            
         </bound_parameter>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Decreasing_resource_event"
            attribute="resource"
            context="MoDAvDEX">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="mng_res">
            
         </bound_parameter>
      </source>
   </assign>
   <call_template
      name="assigning_asserted_state"
      business_context="MoDAvDEX">
      <param_in
         name="state_class_name"
         value="'Decommissioned'">
         
      </param_in>
      <param_in
         name="state_ecl_id"
         value="'urn:plcs:rdl:ModAvDex'">
         
      </param_in>
      <param_in
         name="assigned_to"
         value="^par">
         
      </param_in>
   </call_template>
   <bind
      parameter="state_decom">
      <template_instance
         template="assigning_asserted_state"
         parameter="state_obs">
         
      </template_instance>
   </bind>
   <call_template
      name="representing_activity_actual"
      business_context="MoDAvDEX">
      <param_in
         name="id"
         value="@activity_identifier">
         
      </param_in>
      <param_in
         name="id_class_name"
         value="'Activity_identification_code'">
         
      </param_in>
      <param_in
         name="id_ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
      <param_in
         name="id_owner"
         value="@activity_organization">
         
      </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="method"
         value="''">
         
      </param_in>
      <param_in
         name="date_class_name"
         value="'Date_actual_start'">
         
      </param_in>
      <param_in
         name="date_ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
      <param_in
         name="year"
         value="@activity_year">
         
      </param_in>
      <param_in
         name="month"
         value="@activity_month">
         
      </param_in>
      <param_in
         name="day"
         value="@activity_day">
         
      </param_in>
      <param_in
         name="hour"
         value="@activity_hour">
         
      </param_in>
      <param_in
         name="minute"
         value="@activity_minute">
         
      </param_in>
      <param_in
         name="second"
         value="@activity_second">
         
      </param_in>
      <param_in
         name="sense"
         value="'.EXACT.'">
         
      </param_in>
      <param_in
         name="hour_offset"
         value="'0'">
         
      </param_in>
      <param_in
         name="minute_offset"
         value="'0'">
         
      </param_in>
   </call_template>
   <bind
      parameter="act_act">
      <template_instance
         template="representing_activity_actual"
         parameter="act_act">
         
      </template_instance>
   </bind>
   <comment>
      instantiate MoDAvDEXmessage
   </comment>
   <call_template
      name="MoDAvDEXmessage"
      business_context="MoDAvDEX">
      <param_in
         name="msg_identifier"
         value="@msg_identifier">
         
      </param_in>
      <param_in
         name="sent_year"
         value="@sent_year">
         
      </param_in>
      <param_in
         name="sent_month"
         value="@sent_month">
         
      </param_in>
      <param_in
         name="sent_day"
         value="@sent_day">
         
      </param_in>
      <param_in
         name="sent_hour"
         value="@sent_hour">
         
      </param_in>
      <param_in
         name="sent_minute"
         value="@sent_minute">
         
      </param_in>
      <param_in
         name="sent_second"
         value="@sent_second">
         
      </param_in>
      <param_in
         name="sender_organization"
         value="@sender_organization">
         
      </param_in>
      <param_in
         name="receiver_organization"
         value="@receiver_organization">
         
      </param_in>
      <param_in
         name="contract_identifier"
         value="@contract_identifier">
         
      </param_in>
      <param_in
         name="extract_year"
         value="@extract_year">
         
      </param_in>
      <param_in
         name="extract_month"
         value="@extract_month">
         
      </param_in>
      <param_in
         name="extract_day"
         value="@extract_day">
         
      </param_in>
      <param_in
         name="extract_hour"
         value="@extract_hour">
         
      </param_in>
      <param_in
         name="extract_minute"
         value="@extract_minute">
         
      </param_in>
      <param_in
         name="extract_second"
         value="@extract_second">
         
      </param_in>
      <param_in
         name="security_class"
         value="@security_class">
         
      </param_in>
      <param_in
         name="content"
         value="^act_act">
         
      </param_in>
   </call_template>
   <comment>
      instantiate assigning_activity
   </comment>
   <call_template
      name="assigning_activity"
      business_context="MoDAvDEX">
      <param_in
         name="role_class_name"
         value="'Activity_input'">
         
      </param_in>
      <param_in
         name="role_ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
      <param_in
         name="assigned_activity"
         value="^act_act">
         
      </param_in>
      <param_in
         name="items"
         value="^res_event">
         
      </param_in>
   </call_template>
</refpath>

© UK MOD 2010 — All rights reserved