Template:— required_pse_constituent_usage_phase (rpse_ctph)
Context:— UK_Defence
Date: 2009/10/29 15:59:25
Revision: 1.7
Template: required_pse_constituent_usage_phase

XML references to the Template

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

required_pse_constituent_usage_phase

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="required_pse_constituent_usage_phase" context="UK_Defence" >
  <param name="related_pse_constituent">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="source_organization">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="required_pse_constituent_usage_phase">
  <param_in name="related_pse_constituent" value=""/>
  <param_in name="id" value=""/>
  <param_in name="name" value=""/>
  <param_in name="source_organization" value=""/>
</template_example>

required_pse_constituent_usage_phase
/required_pse_constituent_usage_phase(related_pse_constituent='', id='', name='', source_organization='')/

Path

-- create the task method to represent the required_pse_usage_profile
-- note the template representing_task_step not used as numerous params not present;
-- but should be considered for future.
Task_step
Task_step.name = '/IGNORE'
Task_step.description = '/IGNORE'
Task_step.consequence = '/IGNORE'
Task_step.purpose = '/IGNORE'

-- assign to required_pse_usage_profile
%^required_pse_constituent_usage_phase = Task_step%

-- create the assignment to link the usage phase to the pse constituent
Task_element_assignment
Task_element_assignment.role = '/IGNORE'
Task_element_assignment.assigned_activity_method -> ^required_pse_constituent_usage_phase
Task_element_assignment.items -> @related_pse_constituent

-- identifier
/identifier(
    ID=@id,
    source_organization=@source_organization,
    type='required_pse_usage_phase_id',
    items=^required_pse_constituent_usage_phase)/

-- name
/assigning_reference_data(
    items=^required_pse_constituent_usage_phase,
    class_name=@name,
    ecl_id='urn:plcs:rdl:uk_defence')/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Task_step.name '/IGNORE' Activity_method.name
Task_step.description '/IGNORE' Activity_method.description
Task_step.consequence '/IGNORE' Activity_method.consequence
Task_step.purpose '/IGNORE' Activity_method.purpose
Task_element_assignment.role '/IGNORE' Applied_activity_method_assignment.role

XML representation of path

<refpath
   template="required_pse_constituent_usage_phase">
   <comment>
      create the task method to represent the required_pse_usage_profile
   </comment>
   <comment>
      note the template representing_task_step not used as numerous params not present;
   </comment>
   <comment>
      but should be considered for future.
   </comment>
   <instantiate
      entity="Task_step"
      context="UK_Defence">
      
   </instantiate>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Task_step"
            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="Task_step"
            attribute="description"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Task_step"
            attribute="consequence"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Task_step"
            attribute="purpose"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <string
            value="'/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      assign to required_pse_usage_profile
   </comment>
   <bind
      parameter="required_pse_constituent_usage_phase">
      <express_entity
         entity="Task_step"
         context="UK_Defence">
         
      </express_entity>
   </bind>
   <comment>
      create the assignment to link the usage phase to the pse constituent
   </comment>
   <instantiate
      entity="Task_element_assignment"
      context="UK_Defence">
      
   </instantiate>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <express_attribute
            entity="Task_element_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="Task_element_assignment"
            attribute="assigned_activity_method"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="required_pse_constituent_usage_phase">
            
         </bound_parameter>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Task_element_assignment"
            attribute="items"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="related_pse_constituent">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      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="'required_pse_usage_phase_id'">
         
      </param_in>
      <param_in
         name="items"
         value="^required_pse_constituent_usage_phase">
         
      </param_in>
   </call_template>
   <comment>
      name
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="UK_Defence">
      <param_in
         name="items"
         value="^required_pse_constituent_usage_phase">
         
      </param_in>
      <param_in
         name="class_name"
         value="@name">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="'urn:plcs:rdl:uk_defence'">
         
      </param_in>
   </call_template>
</refpath>

© UK MOD 2010 — All rights reserved