Template:— representing_project (rep_proj)
Capability:representing_project_information
Date: 2011/04/26 14:55:30
Revision: 1.3
Template: representing_project

XML references to the Template

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

representing_project

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="representing_project" capability="representing_project_information">
  <param name="name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="name_class">
    <param_value>Project_name</param_value>
    <description></description>
  </param>
  <param name="name_class_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="name_owner">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="name_owner_class">
    <param_value>Organization_name</param_value>
    <description></description>
  </param>
  <param name="name_owner_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="representing_project">
  <param_in name="name" value=""/>
  <param_in name="name_class" value="Project_name"/>
  <param_in name="name_class_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="name_owner" value=""/>
  <param_in name="name_owner_class" value="Organization_name"/>
  <param_in name="name_owner_ecl_id" value="urn:plcs:rdl:std"/>
</template_example>

representing_project
/representing_project(name='', name_class='Project_name', name_class_ecl_id='urn:plcs:rdl:std', name_owner='', name_owner_class='Organization_name', name_owner_ecl_id='urn:plcs:rdl:std')/

Path

Project
%^project = Project%
Project.id = '/IGNORE'
Project.name = '/IGNORE'
Project.description = '/IGNORE'
/assigning_identification(
    id= @name,
    id_class_name= @name_class,
    id_ecl_id= @name_class_ecl_id,
    org_id= @name_owner,
    org_id_class_name= @name_owner_class,
    org_id_ecl_id= @name_owner_ecl_id,
    items= ^project)/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Project.id '/IGNORE'
Project.name '/IGNORE'
Project.description '/IGNORE'

XML representation of path

<refpath
   template="representing_project">
   <instantiate
      entity="Project"
      context="">
      
   </instantiate>
   <bind
      parameter="project">
      <express_entity
         entity="Project"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Project"
            attribute="id"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Project"
            attribute="name"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Project"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <call_template
      name="assigning_identification"
      business_context="">
      <param_in
         name="id"
         value=" @name">
         
      </param_in>
      <param_in
         name="id_class_name"
         value=" @name_class">
         
      </param_in>
      <param_in
         name="id_ecl_id"
         value=" @name_class_ecl_id">
         
      </param_in>
      <param_in
         name="org_id"
         value=" @name_owner">
         
      </param_in>
      <param_in
         name="org_id_class_name"
         value=" @name_owner_class">
         
      </param_in>
      <param_in
         name="org_id_ecl_id"
         value=" @name_owner_ecl_id">
         
      </param_in>
      <param_in
         name="items"
         value=" ^project">
         
      </param_in>
   </call_template>
</refpath>

© OASIS 2010 — All rights reserved