Template:— dues_in (dues_in)
Context:— UK_Defence
Date: 2009/04/17 11:16:56
Revision: 1.9
Template: dues_in

XML references to the Template

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

dues_in

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="dues_in" context="UK_Defence" >
  <param name="id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="source_organization">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="quantity">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="related_demand">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="related_item_of_supply">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="when_due">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="dues_in">
  <param_in name="id" value=""/>
  <param_in name="source_organization" value=""/>
  <param_in name="quantity" value=""/>
  <param_in name="related_demand" value=""/>
  <param_in name="related_item_of_supply" value=""/>
  <param_in name="when_due" value=""/>
</template_example>

dues_in
/dues_in(id='', source_organization='', quantity='', related_demand='', related_item_of_supply='', when_due='')/

Path

-- dues in
Required_resource_by_resource_item

-- Item_of_supply
Required_resource_by_resource_item.resource_item -> @related_item_of_supply

-- [optional quantity]
/representing_value_with_unit(
    value=@quantity,
    unit='Count',
    unit_ecl_id='urn:plcs:rdl:std',
    si_unit='false')/
%^value_with_unit = $representing_value_with_unit.value%
Required_resource_by_resource_item.required_quantity -> ^value_with_unit
%^req_res_item = Required_resource_by_resource_item%

-- id
/identifier(
    ID=@id,
    source_organization=@source_organization,
    type='Dues_in_id_code',
    items=^req_res_item )/

-- [optional cleared_by]
-- use inventory_document_assignment or inventory_resource_event_relationship relationship templates
-- related_demand
Required_resource_assignment
Required_resource_assignment.assigned_resource -> ^req_res_item
Required_resource_assignment.item -> @related_demand
%^req_res_asst = Required_resource_assignment%

-- when_due
Date_or_date_time_assignment
%^when_due_date = Date_or_date_time_assignment%
^when_due_date.assigned_date -> @when_due
^when_due_date.role = 'dues_in_when_due_date'
^when_due_date.items -> ^req_res_item
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Date_or_date_time_assignment.role 'dues_in_when_due_date'

XML representation of path

<refpath
   template="dues_in">
   <comment>
      dues in
   </comment>
   <instantiate
      entity="Required_resource_by_resource_item"
      context="UK_Defence">
      
   </instantiate>
   <comment>
      Item_of_supply
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Required_resource_by_resource_item"
            attribute="resource_item"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="related_item_of_supply">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      [optional quantity]
   </comment>
   <call_template
      name="representing_value_with_unit"
      business_context="UK_Defence">
      <param_in
         name="value"
         value="@quantity">
         
      </param_in>
      <param_in
         name="unit"
         value="'Count'">
         
      </param_in>
      <param_in
         name="unit_ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
      <param_in
         name="si_unit"
         value="'false'">
         
      </param_in>
   </call_template>
   <bind
      parameter="value_with_unit">
      <template_instance
         template="representing_value_with_unit"
         parameter="value">
         
      </template_instance>
   </bind>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Required_resource_by_resource_item"
            attribute="required_quantity"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="value_with_unit">
            
         </bound_parameter>
      </source>
   </assign>
   <bind
      parameter="req_res_item">
      <express_entity
         entity="Required_resource_by_resource_item"
         context="UK_Defence">
         
      </express_entity>
   </bind>
   <comment>
      id
   </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="'Dues_in_id_code'">
         
      </param_in>
      <param_in
         name="items"
         value="^req_res_item ">
         
      </param_in>
   </call_template>
   <comment>
      [optional cleared_by]
   </comment>
   <comment>
      use inventory_document_assignment or inventory_resource_event_relationship relationship templates
   </comment>
   <comment>
      related_demand
   </comment>
   <instantiate
      entity="Required_resource_assignment"
      context="UK_Defence">
      
   </instantiate>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Required_resource_assignment"
            attribute="assigned_resource"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="req_res_item">
            
         </bound_parameter>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Required_resource_assignment"
            attribute="item"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="related_demand">
            
         </param_in_ref>
      </source>
   </assign>
   <bind
      parameter="req_res_asst">
      <express_entity
         entity="Required_resource_assignment"
         context="UK_Defence">
         
      </express_entity>
   </bind>
   <comment>
      when_due
   </comment>
   <instantiate
      entity="Date_or_date_time_assignment"
      context="UK_Defence">
      
   </instantiate>
   <bind
      parameter="when_due_date">
      <express_entity
         entity="Date_or_date_time_assignment"
         context="UK_Defence">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="points-to">
      <target>
         <bound_parameter
            name="when_due_date.assigned_date">
            
         </bound_parameter>
      </target>
      <source>
         <param_in_ref
            name="when_due">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <bound_parameter
            name="when_due_date.role">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value=" 'dues_in_when_due_date' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <bound_parameter
            name="when_due_date.items">
            
         </bound_parameter>
      </target>
      <source>
         <bound_parameter
            name="req_res_item">
            
         </bound_parameter>
      </source>
   </assign>
</refpath>

© UK MOD 2010 — All rights reserved