Template:— assigning_work_output (awout) Date: 2010/01/14 16:30:11
Revision: 1.17
Template: assigning_work_output

XML references to the Template

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

assigning_work_output

Set up a hyperlink to the template definition.
<template_ref name="assigning_work_output" capability="representing_activity"/>

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="assigning_work_output" capability="representing_activity">
  <param name="class_name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="activity_item">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="assigning_work_output">
  <param_in name="class_name" value=""/>
  <param_in name="ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="activity_item" value=""/>
</template_example>

assigning_work_output
/assigning_work_output(class_name='', ecl_id='urn:plcs:rdl:std', activity_item='')/

Path

Work_output_assignment

-- Mark the Work_output entity as
-- referable when this template is used by binding it to the reference
-- parameter work_output
%^work_asg = Work_output_assignment%
Work_output_assignment.item -> @activity_item
Work_output_assignment.assigned_output -> Work_output

-- Mark the Work_output entity as
-- referable when this template is used by binding it to the reference
-- parameter work_output
%^work_output = Work_output%
Work_output.name = '/IGNORE'
Work_output.description = '/IGNORE'

-- Assign reference data for type of Work_output
/assigning_reference_data(
    items=^work_output,
    class_name=@class_name,
    ecl_id=@ecl_id)/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Work_output.name '/IGNORE'
Work_output.description '/IGNORE'

XML representation of path

<refpath
   template="assigning_work_output">
   <instantiate
      entity="Work_output_assignment"
      context="">
      
   </instantiate>
   <comment>
      Mark the Work_output entity as
   </comment>
   <comment>
      referable when this template is used by binding it to the reference
   </comment>
   <comment>
      parameter work_output
   </comment>
   <bind
      parameter="work_asg">
      <express_entity
         entity="Work_output_assignment"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Work_output_assignment"
            attribute="item"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="activity_item">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Work_output_assignment"
            attribute="assigned_output"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <express_entity
            entity="Work_output"
            context="">
            
         </express_entity>
      </source>
   </assign>
   <comment>
      Mark the Work_output entity as
   </comment>
   <comment>
      referable when this template is used by binding it to the reference
   </comment>
   <comment>
      parameter work_output
   </comment>
   <bind
      parameter="work_output">
      <express_entity
         entity="Work_output"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Work_output"
            attribute="name"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Work_output"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Assign reference data for type of Work_output
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="">
      <param_in
         name="items"
         value="^work_output">
         
      </param_in>
      <param_in
         name="class_name"
         value="@class_name">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="@ecl_id">
         
      </param_in>
   </call_template>
</refpath>

© OASIS 2010 — All rights reserved