Template:— representing_organization (rep_org) Date: 2008/02/15 15:26:06
Revision: 1.17
Template: representing_organization

XML references to the Template

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

representing_organization

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="representing_organization" capability="assigning_organization">
  <param name="org_id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="org_id_class_name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="org_id_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="representing_organization">
  <param_in name="org_id" value=""/>
  <param_in name="org_id_class_name" value=""/>
  <param_in name="org_id_ecl_id" value="urn:plcs:rdl:std"/>
</template_example>

representing_organization
/representing_organization(org_id='', org_id_class_name='', org_id_ecl_id='urn:plcs:rdl:std')/

Path

-- Bind the Organization to the parameter ^org.
-- The parameter is a reference parameter so the Organization
-- entity can be referred to when this template is used.
%^org = Organization%

-- Identify the Organization
/assigning_identification_with_no_organization(
    items=^org,
    id=@org_id,
    id_class_name=@org_id_class_name,
    id_ecl_id=@org_id_ecl_id)/

-- Set the Organization attributes
Organization.name = '/IGNORE'
Organization.id = '/IGNORE'
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Organization.name '/IGNORE'
Organization.id '/IGNORE'

XML representation of path

<refpath
   template="representing_organization">
   <comment>
      Bind the Organization to the parameter ^org.
   </comment>
   <comment>
      The parameter is a reference parameter so the Organization
   </comment>
   <comment>
      entity can be referred to when this template is used.
   </comment>
   <bind
      parameter="org">
      <express_entity
         entity="Organization"
         context="">
         
      </express_entity>
   </bind>
   <comment>
      Identify the Organization
   </comment>
   <call_template
      name="assigning_identification_with_no_organization"
      business_context="">
      <param_in
         name="items"
         value="^org">
         
      </param_in>
      <param_in
         name="id"
         value="@org_id">
         
      </param_in>
      <param_in
         name="id_class_name"
         value="@org_id_class_name">
         
      </param_in>
      <param_in
         name="id_ecl_id"
         value="@org_id_ecl_id">
         
      </param_in>
   </call_template>
   <comment>
      Set the Organization attributes
   </comment>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Organization"
            attribute="name"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Organization"
            attribute="id"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
</refpath>

© OASIS 2010 — All rights reserved