Template:— product_role_fit (prod_r_f)
Context:— UK_Defence
Date: 2009/04/17 11:04:01
Revision: 1.2
Template: product_role_fit

XML references to the Template

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

product_role_fit

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="product_role_fit" 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="type">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="related_role">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="related_fit">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="product_role_fit">
  <param_in name="ID" value=""/>
  <param_in name="source_organization" value=""/>
  <param_in name="type" value=""/>
  <param_in name="related_role" value=""/>
  <param_in name="related_fit" value=""/>
</template_example>

product_role_fit
/product_role_fit(ID='', source_organization='', type='', related_role='', related_fit='')/

Path

-- Instantiate an Applied_activity_assignment
Applied_activity_assignment

-- Bind the Applied_activity_assignment to the reference parameter
%^role_fit = Applied_activity_assignment%

-- Set the Applied_activity_assignment attribute role to be ignored
Applied_activity_assignment.role = '/IGNORE'
Applied_activity_assignment.items -> @related_fit
Applied_activity_assignment.assigned_activity -> @related_role

-- instantiate the product role fits identifier
/identifier(
    ID=@ID,
    source_organization=@source_organization,
    type=@type,
    items=^role_fit)/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Applied_activity_assignment.role '/IGNORE'

XML representation of path

<refpath
   template="product_role_fit">
   <comment>
      Instantiate an Applied_activity_assignment
   </comment>
   <instantiate
      entity="Applied_activity_assignment"
      context="UK_Defence">
      
   </instantiate>
   <comment>
      Bind the Applied_activity_assignment to the reference parameter
   </comment>
   <bind
      parameter="role_fit">
      <express_entity
         entity="Applied_activity_assignment"
         context="UK_Defence">
         
      </express_entity>
   </bind>
   <comment>
      Set the Applied_activity_assignment attribute role to be ignored
   </comment>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Applied_activity_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="Applied_activity_assignment"
            attribute="items"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="related_fit">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Applied_activity_assignment"
            attribute="assigned_activity"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="related_role">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      instantiate the product role fits identifier
   </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="@type">
         
      </param_in>
      <param_in
         name="items"
         value="^role_fit">
         
      </param_in>
   </call_template>
</refpath>

© UK MOD 2010 — All rights reserved