Template:— activity_deferment (act_def)
Context:— UK_Defence
Date: 2010/03/15 14:22:40
Revision: 1.2
Template: activity_deferment

XML references to the Template

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

activity_deferment

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="activity_deferment" context="UK_Defence" >
  <param name="authorised_by">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="date_year">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="date_month">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="date_day">
    <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="ID_type">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="related_product">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="type">
    <param_value>Concession</param_value>
    <description></description>
  </param>
  <param name="related_activity">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="activity_deferment">
  <param_in name="authorised_by" value=""/>
  <param_in name="date_year" value=""/>
  <param_in name="date_month" value=""/>
  <param_in name="date_day" value=""/>
  <param_in name="ID" value=""/>
  <param_in name="source_organization" value=""/>
  <param_in name="ID_type" value=""/>
  <param_in name="name" value=""/>
  <param_in name="related_product" value=""/>
  <param_in name="type" value="Concession"/>
  <param_in name="related_activity" value=""/>
</template_example>

activity_deferment
/activity_deferment(authorised_by='', date_year='', date_month='', date_day='', ID='', source_organization='', ID_type='', name='', related_product='', type='Concession', related_activity='')/

Path

/concession(
    authorised_by=@authorised_by,
    date_year=@date_year,
    date_month=@date_month,
    date_day=@date_day,
    ID=@ID,
    source_organization=@source_organization,
    ID_type=@ID_type,
    name=@name,
    related_product=@related_product,
    type=@type)/
%^approval = $concession.approval%
Approval_assignment

-- Bind the Approval_assignment to the parameter ^approval_assgn.
-- The parameter is a reference parameter so the Approval_assignment
-- entity can be referred to when this template is used.
%^approval_assgn = Approval_assignment%
Approval_assignment.role = '/IGNORE'
Approval_assignment.items -> @related_activity
Approval_assignment.assigned_approval -> ^approval
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Approval_assignment.role '/IGNORE'

XML representation of path

<refpath
   template="activity_deferment">
   <call_template
      name="concession"
      business_context="UK_Defence">
      <param_in
         name="authorised_by"
         value="@authorised_by">
         
      </param_in>
      <param_in
         name="date_year"
         value="@date_year">
         
      </param_in>
      <param_in
         name="date_month"
         value="@date_month">
         
      </param_in>
      <param_in
         name="date_day"
         value="@date_day">
         
      </param_in>
      <param_in
         name="ID"
         value="@ID">
         
      </param_in>
      <param_in
         name="source_organization"
         value="@source_organization">
         
      </param_in>
      <param_in
         name="ID_type"
         value="@ID_type">
         
      </param_in>
      <param_in
         name="name"
         value="@name">
         
      </param_in>
      <param_in
         name="related_product"
         value="@related_product">
         
      </param_in>
      <param_in
         name="type"
         value="@type">
         
      </param_in>
   </call_template>
   <bind
      parameter="approval">
      <template_instance
         template="concession"
         parameter="approval">
         
      </template_instance>
   </bind>
   <instantiate
      entity="Approval_assignment"
      context="UK_Defence">
      
   </instantiate>
   <comment>
      Bind the Approval_assignment to the parameter ^approval_assgn.
   </comment>
   <comment>
      The parameter is a reference parameter so the Approval_assignment
   </comment>
   <comment>
      entity can be referred to when this template is used.
   </comment>
   <bind
      parameter="approval_assgn">
      <express_entity
         entity="Approval_assignment"
         context="UK_Defence">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Approval_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="Approval_assignment"
            attribute="items"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="related_activity">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Approval_assignment"
            attribute="assigned_approval"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="approval">
            
         </bound_parameter>
      </source>
   </assign>
</refpath>

© UK MOD 2010 — All rights reserved