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

XML references to the Template

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

product_role_configuration

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

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

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

product_role_configuration
/product_role_configuration(ID='', source_organization='', type='', related_product='', related_role='')/

Path

Product_concept
%^prod_conpt = Product_concept%
Product_concept.id = '/IGNORE'
Product_concept.name = '/IGNORE'
Product_concept.description = '/IGNORE'
Product_configuration

-- Mark the Product_configuration entity as
-- referable when this template is used by binding it to the reference
-- parameter ^prod_conf
%^prod_conf = Product_configuration%
Product_configuration.id = '/IGNORE'
Product_configuration.name = '/IGNORE'
Product_configuration.description = '/IGNORE'
Product_configuration.item_context -> ^prod_conpt
/assigning_activity(
    role_class_name= '/NULL' role_ecl_id= 'urn:plcs:rdl:std',
    assigned_activity=@related_role,
    items=^prod_conf)/
Item_design_association.design -> @related_product
Item_design_association.configuration -> ^prod_conf

-- assign product role's identifier to activity_actual
/identifier(
    ID=@ID,
    source_organization=@source_organization,
    type=@type,
    items=^prod_conf)/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Product_concept.id '/IGNORE'
Product_concept.name '/IGNORE'
Product_concept.description '/IGNORE'
Product_configuration.id '/IGNORE'
Product_configuration.name '/IGNORE'
Product_configuration.description '/IGNORE'

XML representation of path

<refpath
   template="product_role_configuration">
   <instantiate
      entity="Product_concept"
      context="UK_Defence">
      
   </instantiate>
   <bind
      parameter="prod_conpt">
      <express_entity
         entity="Product_concept"
         context="UK_Defence">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Product_concept"
            attribute="id"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Product_concept"
            attribute="name"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Product_concept"
            attribute="description"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <instantiate
      entity="Product_configuration"
      context="UK_Defence">
      
   </instantiate>
   <comment>
      Mark the Product_configuration entity as
   </comment>
   <comment>
      referable when this template is used by binding it to the reference
   </comment>
   <comment>
      parameter ^prod_conf
   </comment>
   <bind
      parameter="prod_conf">
      <express_entity
         entity="Product_configuration"
         context="UK_Defence">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Product_configuration"
            attribute="id"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Product_configuration"
            attribute="name"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Product_configuration"
            attribute="description"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Product_configuration"
            attribute="item_context"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="prod_conpt">
            
         </bound_parameter>
      </source>
   </assign>
   <call_template
      name="assigning_activity"
      business_context="UK_Defence">
      <param_in
         name="role_class_name"
         value=" '/NULL' role_ecl_id= 'urn:plcs:rdl:std'">
         
      </param_in>
      <param_in
         name="assigned_activity"
         value="@related_role">
         
      </param_in>
      <param_in
         name="items"
         value="^prod_conf">
         
      </param_in>
   </call_template>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Item_design_association"
            attribute="design"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="related_product">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Item_design_association"
            attribute="configuration"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="prod_conf">
            
         </bound_parameter>
      </source>
   </assign>
   <comment>
      assign product role's identifier to activity_actual
   </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="^prod_conf">
         
      </param_in>
   </call_template>
</refpath>

© UK MOD 2010 — All rights reserved