Template:— concession_impact (con_impt)
Context:— UK_Defence
Date: 2009/04/17 10:34:29
Revision: 1.2
Template: concession_impact

XML references to the Template

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

concession_impact

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="concession_impact" context="UK_Defence" >
  <param name="description">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="impact">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="related_concession">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="concession_impact">
  <param_in name="description" value=""/>
  <param_in name="impact" value=""/>
  <param_in name="related_concession" value=""/>
</template_example>

concession_impact
/concession_impact(description='', impact='', related_concession='')/

Path

-- Instantiate an Approval_assignment
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%

-- Set the Approval_assignment attribute role
Approval_assignment.role = '/IGNORE'

-- Assign the Approval_assignment to the
-- instances passed into the template through the @impact
Approval_assignment.items -> @impact

-- Instantiate Approval and assign Approval_assignment to it
Approval_assignment.assigned_approval -> @related_concession
/assigning_descriptor(
    descr=@description,
    class_name='Description',
    ecl_id='urn:plcs:rdl:std',
    is_assigned_to=^approval_assgn)/
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="concession_impact">
   <comment>
      Instantiate an Approval_assignment
   </comment>
   <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>
   <comment>
      Set the Approval_assignment attribute role
   </comment>
   <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>
   <comment>
      Assign the Approval_assignment to the
   </comment>
   <comment>
      instances passed into the template through the @impact
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Approval_assignment"
            attribute="items"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="impact">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      Instantiate Approval and assign Approval_assignment to it
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Approval_assignment"
            attribute="assigned_approval"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="related_concession">
            
         </param_in_ref>
      </source>
   </assign>
   <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:std'">
         
      </param_in>
      <param_in
         name="is_assigned_to"
         value="^approval_assgn">
         
      </param_in>
   </call_template>
</refpath>

© UK MOD 2010 — All rights reserved