Template:— product_operational_state (prod_op_state)
Context:— UK_Defence
Date: 2009/05/06 08:13:06
Revision: 1.3
Template: product_operational_state

XML references to the Template

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

product_operational_state

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="product_operational_state" context="UK_Defence" >
  <param name="assigned_state">
    <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="type">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="related_product">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

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

product_operational_state
/product_operational_state(assigned_state='', ID='', source_organization='', type='', related_product='')/

Path

-- instantiate the state and the relationship to product
/assigning_asserted_state(
    state_class_name=@assigned_state,
    state_ecl_id='urn:plcs:rdl:uk_defence',
    assigned_to=@related_product)/
%^operational_state = $assigning_asserted_state.state_assert%

-- instantiate the product operational states identifier
/identifier(
    ID=@ID,
    source_organization=@source_organization,
    type=@type,
    items=^operational_state)/

XML representation of path

<refpath
   template="product_operational_state">
   <comment>
      instantiate the state and the relationship to product
   </comment>
   <call_template
      name="assigning_asserted_state"
      business_context="UK_Defence">
      <param_in
         name="state_class_name"
         value="@assigned_state">
         
      </param_in>
      <param_in
         name="state_ecl_id"
         value="'urn:plcs:rdl:uk_defence'">
         
      </param_in>
      <param_in
         name="assigned_to"
         value="@related_product">
         
      </param_in>
   </call_template>
   <bind
      parameter="operational_state">
      <template_instance
         template="assigning_asserted_state"
         parameter="state_assert">
         
      </template_instance>
   </bind>
   <comment>
      instantiate the product operational states 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="^operational_state">
         
      </param_in>
   </call_template>
</refpath>

© UK MOD 2010 — All rights reserved