Template:— assigning_project (asg_proj)
Capability:representing_project_information
Date: 2011/04/21 11:54:44
Revision: 1.5
Template: assigning_project

XML references to the Template

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

assigning_project

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="assigning_project" capability="representing_project_information">
  <param name="assigned_project">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="role_class">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="role_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="items">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="assigning_project">
  <param_in name="assigned_project" value=""/>
  <param_in name="role_class" value=""/>
  <param_in name="role_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="items" value=""/>
</template_example>

assigning_project
/assigning_project(assigned_project='', role_class='', role_ecl_id='urn:plcs:rdl:std', items='')/

Path

Project_assignment
%^proj_asg = Project_assignment%
Project_assignment.role = '/IGNORE'
Project_assignment.assigned_project -> @assigned_project
Project_assignment.items -> @items

-- provide the role of the project assignment
/assigning_reference_data(
    items=^proj_asg,
    class_name=@role_class,
    ecl_id=@role_ecl_id)/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Project_assignment.role '/IGNORE'

XML representation of path

<refpath
   template="assigning_project">
   <instantiate
      entity="Project_assignment"
      context="">
      
   </instantiate>
   <bind
      parameter="proj_asg">
      <express_entity
         entity="Project_assignment"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Project_assignment"
            attribute="role"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Project_assignment"
            attribute="assigned_project"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="assigned_project">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Project_assignment"
            attribute="items"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="items">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      provide the role of the project assignment
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="">
      <param_in
         name="items"
         value="^proj_asg">
         
      </param_in>
      <param_in
         name="class_name"
         value="@role_class">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="@role_ecl_id">
         
      </param_in>
   </call_template>
</refpath>

© OASIS 2010 — All rights reserved