Template:— work_order (wrk_ord)
Context:— UK_Defence
Date: 2009/09/21 20:13:14
Revision: 1.4
Template: work_order

XML references to the Template

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

work_order

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="work_order" context="UK_Defence" >
  <param name="acceptence_criteria">
    <param_value>/UNUSED</param_value>
    <description></description>
  </param>
  <param name="category">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="id_type">
    <param_value>Work_order_identification_code</param_value>
    <description></description>
  </param>
  <param name="source_organization_id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="description">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="derived_from">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="issued_by">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="required_activities">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="required_deliverables">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="supplier">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="work_order">
  <param_in name="acceptence_criteria" value="/UNUSED"/>
  <param_in name="category" value=""/>
  <param_in name="id" value=""/>
  <param_in name="id_type" value="Work_order_identification_code"/>
  <param_in name="source_organization_id" value=""/>
  <param_in name="description" value=""/>
  <param_in name="derived_from" value=""/>
  <param_in name="issued_by" value=""/>
  <param_in name="required_activities" value=""/>
  <param_in name="required_deliverables" value=""/>
  <param_in name="supplier" value=""/>
</template_example>

work_order
/work_order(acceptence_criteria='/UNUSED', category='', id='', id_type='Work_order_identification_code', source_organization_id='', description='', derived_from='', issued_by='', required_activities='', required_deliverables='', supplier='')/

Path

-- Instantiate a Work_order
Work_order

-- [Optional Derived_from (links the work_order to the work_request)]
Work_order.in_response_to -> @derived_from

-- 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 = Work_order%
^work_order.name = '/IGNORE'
^work_order.description = '/IGNORE'

-- [optional category]
/assigning_reference_data(
    items=^work_order,
    class_name=@category,
    ecl_id='urn:plcs:rdl:uk_defence')/

-- Identify the Work_order
/identifier(
    items=^work_order,
    ID=@id,
    type=@id_type,
    source_organization=@source_organization_id)/

-- [Optional description]
/assigning_descriptor(
    descr=@description,
    class_name='Description',
    ecl_id='urn:plcs:rdl:uk_defence',
    is_assigned_to=^work_order)/

-- Approved Supplier of the Work_order
/assigning_approval(
    status=’Approved_supplier’,
    status_ecl_id='urn:plcs:rdl:uk_defence',
    items=^work_order,
    person_org=@supplier)/

-- [Optional Acceptance_criteria]
/assigning_descriptor(
    descr=@acceptence_criteria,
    class_name='Acceptance_criteria',
    ecl_id='urn:plcs:rdl:uk_defence',
    is_assigned_to=^work_order)/

-- Instantiate a Directed_activity
Directed_activity

-- Link the Directed_activity to the work_order
Directed_activity.directive -> ^work_order
Activity_method
%^act_method = Activity_method%
^act_method.name = '/UNUSED'
^act_method.purpose = '/UNUSED'

-- Link the Directed_activity to the UNUSED activity_method
Directed_activity.chosen_method -> ^act_method

-- 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 = Directed_activity%
^dir_act.id = '/IGNORE'
^dir_act.name = '/IGNORE'
^dir_act.description = '/IGNORE'

-- Identify the Directed_activity
/identifier(
    items=^dir_act,
    ID=@id,
    type=’Directed_activity_identification_code’,
    source_organization=@source_organization_id)/

-- Authorized Issuer of the Directive
/assigning_approval(
    status=’Authorized_issuer’,
    status_ecl_id='urn:plcs:rdl:uk_defence',
    items=^dir_act,
    person_org=@issued_by)/

-- Required activities
/assigning_activity(
    role_class_name='Required_activities',
    role_ecl_id='urn:plcs:rdl:uk_defence',
    assigned_activity=^dir_act,
    items=@required_activities)/

-- [Optional Aggregate required_deliverables]
/assigning_activity(
    role_class_name='Required_deliverables',
    role_ecl_id='urn:plcs:rdl:uk_defence',
    assigned_activity=^dir_act,
    items=@required_deliverables)/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Work_order.name '/IGNORE'
Work_order.description '/IGNORE'
Activity_method.name '/UNUSED'
Activity_method.purpose '/UNUSED'
Directed_activity.id '/IGNORE' Activity.id
Directed_activity.name '/IGNORE' Activity.name
Directed_activity.description '/IGNORE' Activity.description

XML representation of path

<refpath
   template="work_order">
   <comment>
      Instantiate a Work_order
   </comment>
   <instantiate
      entity="Work_order"
      context="UK_Defence">
      
   </instantiate>
   <comment>
      [Optional Derived_from (links the work_order to the work_request)]
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Work_order"
            attribute="in_response_to"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="derived_from">
            
         </param_in_ref>
      </source>
   </assign>
   <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">
      <express_entity
         entity="Work_order"
         context="UK_Defence">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <bound_parameter
            name="work_order.name">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <bound_parameter
            name="work_order.description">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      [optional category]
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="UK_Defence">
      <param_in
         name="items"
         value="^work_order">
         
      </param_in>
      <param_in
         name="class_name"
         value="@category">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="'urn:plcs:rdl:uk_defence'">
         
      </param_in>
   </call_template>
   <comment>
      Identify the Work_order
   </comment>
   <call_template
      name="identifier"
      business_context="UK_Defence">
      <param_in
         name="items"
         value="^work_order">
         
      </param_in>
      <param_in
         name="ID"
         value="@id">
         
      </param_in>
      <param_in
         name="type"
         value="@id_type">
         
      </param_in>
      <param_in
         name="source_organization"
         value="@source_organization_id">
         
      </param_in>
   </call_template>
   <comment>
      [Optional description]
   </comment>
   <call_template
      name="assigning_descriptor"
      business_context="UK_Defence">
      <param_in
         name="descr"
         value="@description">
         
      </param_in>
      <param_in
         name="class_name"
         value="'Description'">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="'urn:plcs:rdl:uk_defence'">
         
      </param_in>
      <param_in
         name="is_assigned_to"
         value="^work_order">
         
      </param_in>
   </call_template>
   <comment>
      Approved Supplier of the Work_order
   </comment>
   <call_template
      name="assigning_approval"
      business_context="UK_Defence">
      <param_in
         name="status"
         value="’Approved_supplier’">
         
      </param_in>
      <param_in
         name="status_ecl_id"
         value="'urn:plcs:rdl:uk_defence'">
         
      </param_in>
      <param_in
         name="items"
         value="^work_order">
         
      </param_in>
      <param_in
         name="person_org"
         value="@supplier">
         
      </param_in>
   </call_template>
   <comment>
      [Optional Acceptance_criteria]
   </comment>
   <call_template
      name="assigning_descriptor"
      business_context="UK_Defence">
      <param_in
         name="descr"
         value="@acceptence_criteria">
         
      </param_in>
      <param_in
         name="class_name"
         value="'Acceptance_criteria'">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="'urn:plcs:rdl:uk_defence'">
         
      </param_in>
      <param_in
         name="is_assigned_to"
         value="^work_order">
         
      </param_in>
   </call_template>
   <comment>
      Instantiate a Directed_activity
   </comment>
   <instantiate
      entity="Directed_activity"
      context="UK_Defence">
      
   </instantiate>
   <comment>
      Link the Directed_activity to the work_order
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Directed_activity"
            attribute="directive"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="work_order">
            
         </bound_parameter>
      </source>
   </assign>
   <instantiate
      entity="Activity_method"
      context="UK_Defence">
      
   </instantiate>
   <bind
      parameter="act_method">
      <express_entity
         entity="Activity_method"
         context="UK_Defence">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <bound_parameter
            name="act_method.name">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value=" '/UNUSED' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <bound_parameter
            name="act_method.purpose">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value=" '/UNUSED' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Link the Directed_activity to the UNUSED activity_method
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Directed_activity"
            attribute="chosen_method"
            context="UK_Defence">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="act_method">
            
         </bound_parameter>
      </source>
   </assign>
   <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">
      <express_entity
         entity="Directed_activity"
         context="UK_Defence">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <bound_parameter
            name="dir_act.id">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <bound_parameter
            name="dir_act.name">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="UK_Defence">
      <target>
         <bound_parameter
            name="dir_act.description">
            
         </bound_parameter>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Identify the Directed_activity
   </comment>
   <call_template
      name="identifier"
      business_context="UK_Defence">
      <param_in
         name="items"
         value="^dir_act">
         
      </param_in>
      <param_in
         name="ID"
         value="@id">
         
      </param_in>
      <param_in
         name="type"
         value="’Directed_activity_identification_code’">
         
      </param_in>
      <param_in
         name="source_organization"
         value="@source_organization_id">
         
      </param_in>
   </call_template>
   <comment>
      Authorized Issuer of the Directive
   </comment>
   <call_template
      name="assigning_approval"
      business_context="UK_Defence">
      <param_in
         name="status"
         value="’Authorized_issuer’">
         
      </param_in>
      <param_in
         name="status_ecl_id"
         value="'urn:plcs:rdl:uk_defence'">
         
      </param_in>
      <param_in
         name="items"
         value="^dir_act">
         
      </param_in>
      <param_in
         name="person_org"
         value="@issued_by">
         
      </param_in>
   </call_template>
   <comment>
      Required activities
   </comment>
   <call_template
      name="assigning_activity"
      business_context="UK_Defence">
      <param_in
         name="role_class_name"
         value="'Required_activities'">
         
      </param_in>
      <param_in
         name="role_ecl_id"
         value="'urn:plcs:rdl:uk_defence'">
         
      </param_in>
      <param_in
         name="assigned_activity"
         value="^dir_act">
         
      </param_in>
      <param_in
         name="items"
         value="@required_activities">
         
      </param_in>
   </call_template>
   <comment>
      [Optional Aggregate required_deliverables]
   </comment>
   <call_template
      name="assigning_activity"
      business_context="UK_Defence">
      <param_in
         name="role_class_name"
         value="'Required_deliverables'">
         
      </param_in>
      <param_in
         name="role_ecl_id"
         value="'urn:plcs:rdl:uk_defence'">
         
      </param_in>
      <param_in
         name="assigned_activity"
         value="^dir_act">
         
      </param_in>
      <param_in
         name="items"
         value="@required_deliverables">
         
      </param_in>
   </call_template>
</refpath>

© UK MOD 2010 — All rights reserved