Template:— ref_work_order (ref_wo)
Context:— MoDAvDEX
Date: 2008/01/17 09:00:27
Revision: 1.1
Template: ref_work_order

XML references to the Template

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

ref_work_order

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="ref_work_order" context="MoDAvDEX" >
  <param name="wo_id">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="ref_work_order">
  <param_in name="wo_id" value=""/>
</template_example>

ref_work_order
/ref_work_order(wo_id='')/

Path

/referencing_work_order(
    id=@wo_id,
    id_class_name='Work_order_identification_code',
    id_ecl_id='urn:plcs:rdl:std',
    org_id='LITS',
    org_id_class_name='Organization_name',
    org_id_ecl_id='urn:plcs:rdl:std',
    act_id=@wo_id,
    act_id_class_name='Activity_identification_code',
    act_id_ecl_id='urn:plcs:rdl:std',
    act_org_id='LITS',
    act_org_id_class_name='Organization_name',
    act_org_id_ecl_id='urn:plcs:rdl:std')/

-- Bind the Work_order to the parameter ^work_order.
-- The parameter is a reference parameter so the Work_order
-- entity can be referred to when this template is used.
%^work_order = $referencing_work_order.work_order%

-- Bind the Directed_activity to the parameter ^dir_act.
-- The parameter is a reference parameter so the Directed_activity
-- entity can be referred to when this template is used.
%^dir_act = $referencing_work_order.dir_act%

XML representation of path

<refpath
   template="ref_work_order">
   <call_template
      name="referencing_work_order"
      business_context="MoDAvDEX">
      <param_in
         name="id"
         value="@wo_id">
         
      </param_in>
      <param_in
         name="id_class_name"
         value="'Work_order_identification_code'">
         
      </param_in>
      <param_in
         name="id_ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
      <param_in
         name="org_id"
         value="'LITS'">
         
      </param_in>
      <param_in
         name="org_id_class_name"
         value="'Organization_name'">
         
      </param_in>
      <param_in
         name="org_id_ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
      <param_in
         name="act_id"
         value="@wo_id">
         
      </param_in>
      <param_in
         name="act_id_class_name"
         value="'Activity_identification_code'">
         
      </param_in>
      <param_in
         name="act_id_ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
      <param_in
         name="act_org_id"
         value="'LITS'">
         
      </param_in>
      <param_in
         name="act_org_id_class_name"
         value="'Organization_name'">
         
      </param_in>
      <param_in
         name="act_org_id_ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
   </call_template>
   <comment>
      Bind the Work_order to the parameter ^work_order.
   </comment>
   <comment>
      The parameter is a reference parameter so the Work_order
   </comment>
   <comment>
      entity can be referred to when this template is used.
   </comment>
   <bind
      parameter="work_order">
      <template_instance
         template="referencing_work_order"
         parameter="work_order">
         
      </template_instance>
   </bind>
   <comment>
      Bind the Directed_activity to the parameter ^dir_act.
   </comment>
   <comment>
      The parameter is a reference parameter so the Directed_activity
   </comment>
   <comment>
      entity can be referred to when this template is used.
   </comment>
   <bind
      parameter="dir_act">
      <template_instance
         template="referencing_work_order"
         parameter="dir_act">
         
      </template_instance>
   </bind>
</refpath>

© UK MOD 2010 — All rights reserved