Template:— representing_person_in_organization (rep_pers_org) Date: 2008/02/26 15:26:31
Revision: 1.15
Template: representing_person_in_organization

XML references to the Template

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

representing_person_in_organization

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="representing_person_in_organization" capability="representing_person_organization">
  <param name="last_name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="first_name">
    <param_value>/NULL</param_value>
    <description></description>
  </param>
  <param name="middle_names">
    <param_value>/NULL</param_value>
    <description></description>
  </param>
  <param name="prefix_titles">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="suffix_titles">
    <param_value></param_value>
    <description></description>
  </param>
  <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_person_in_organization">
  <param_in name="last_name" value=""/>
  <param_in name="first_name" value="/NULL"/>
  <param_in name="middle_names" value="/NULL"/>
  <param_in name="prefix_titles" value=""/>
  <param_in name="suffix_titles" value=""/>
  <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_person_in_organization
/representing_person_in_organization(last_name='', first_name='/NULL', middle_names='/NULL', prefix_titles='', suffix_titles='', org_id='', org_id_class_name='', org_id_ecl_id='urn:plcs:rdl:std')/

Path

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

-- Set the Person_in_organization attribute role
Person_in_organization.role = '/IGNORE'

-- Instantiate Person and point at it
Person_in_organization.concerned_person -> Person

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

-- Set the Person attributes
Person.last_name -> @last_name
Person.first_name -> @first_name
Person.middle_names -> @middle_names
Person.prefix_titles -> @prefix_titles
Person.suffix_titles -> @suffix_titles

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

-- Instantiate representing_organization template
/representing_organization(
    org_id=@org_id,
    org_id_class_name=@org_id_class_name,
    org_id_ecl_id=@org_id_ecl_id)/

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

-- Assign the Person_in_organization to the Organization in the
-- representing_organization template
Person_in_organization.containing_organization -> ^org
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Person_in_organization.role '/IGNORE'

XML representation of path

<refpath
   template="representing_person_in_organization">
   <comment>
      Bind the Person_in_organization to the parameter ^pers_in_org.
   </comment>
   <comment>
      The parameter is a reference parameter so the Person_in_organization
   </comment>
   <comment>
      entity can be referred to when this template is used.
   </comment>
   <bind
      parameter="pers_in_org">
      <express_entity
         entity="Person_in_organization"
         context="">
         
      </express_entity>
   </bind>
   <comment>
      Set the Person_in_organization attribute role
   </comment>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Person_in_organization"
            attribute="role"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Instantiate Person and point at it
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Person_in_organization"
            attribute="concerned_person"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <express_entity
            entity="Person"
            context="">
            
         </express_entity>
      </source>
   </assign>
   <comment>
      Bind the Person to the parameter ^pers.
   </comment>
   <comment>
      The parameter is a reference parameter so the Person
   </comment>
   <comment>
      entity can be referred to when this template is used.
   </comment>
   <bind
      parameter="pers">
      <express_entity
         entity="Person"
         context="">
         
      </express_entity>
   </bind>
   <comment>
      Set the Person attributes
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Person"
            attribute="last_name"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="last_name">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Person"
            attribute="first_name"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="first_name">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Person"
            attribute="middle_names"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="middle_names">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Person"
            attribute="prefix_titles"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="prefix_titles">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Person"
            attribute="suffix_titles"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="suffix_titles">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      Bind the Person to the parameter ^pers.
   </comment>
   <comment>
      The parameter is a reference parameter so the Person
   </comment>
   <comment>
      entity can be referred to when this template is used.
   </comment>
   <bind
      parameter="pers">
      <express_entity
         entity="Person"
         context="">
         
      </express_entity>
   </bind>
   <comment>
      Instantiate representing_organization template
   </comment>
   <call_template
      name="representing_organization"
      business_context="">
      <param_in
         name="org_id"
         value="@org_id">
         
      </param_in>
      <param_in
         name="org_id_class_name"
         value="@org_id_class_name">
         
      </param_in>
      <param_in
         name="org_id_ecl_id"
         value="@org_id_ecl_id">
         
      </param_in>
   </call_template>
   <comment>
      Bind the Organization in the to the representing_organization template
   </comment>
   <comment>
      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">
      <template_instance
         template="representing_organization"
         parameter="org">
         
      </template_instance>
   </bind>
   <comment>
      Assign the Person_in_organization to the Organization in the
   </comment>
   <comment>
      representing_organization template
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Person_in_organization"
            attribute="containing_organization"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="org">
            
         </bound_parameter>
      </source>
   </assign>
</refpath>

© OASIS 2010 — All rights reserved