Template:— ad_referencing_organization_typical_by_code (ad_ref_org_typ_by_code)
Context:— Aerospace_and_Defense
Date: 2011/04/20 12:52:06
Revision: 1.2
Template: ad_referencing_organization_typical_by_code

XML references to the Template

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

ad_referencing_organization_typical_by_code

Set up a hyperlink to the template definition.
<template_ref name="ad_referencing_organization_typical_by_code" context="Aerospace_and_Defense" />

Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="ad_referencing_organization_typical_by_code" context="Aerospace_and_Defense" >
  <param name="org_type_code">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="org_type_code_class_name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="org_type_code_class_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="ad_referencing_organization_typical_by_code">
  <param_in name="org_type_code" value=""/>
  <param_in name="org_type_code_class_name" value=""/>
  <param_in name="org_type_code_class_ecl_id" value="urn:plcs:rdl:std"/>
</template_example>

ad_referencing_organization_typical_by_code
/ad_referencing_organization_typical_by_code(org_type_code='', org_type_code_class_name='', org_type_code_class_ecl_id='urn:plcs:rdl:std')/

Path

Organization_type

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

-- provide the type of organization by assigning a code to the entity Organization_type
/assigning_code(
    class_name=@org_type_code,
    code_class_name=@org_type_code_class_name,
    code_ecl_id=@org_type_code_class_ecl_id,
    items=^org_type)/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Organization_type.name '/IGNORE'
Organization_type.description '/IGNORE'

XML representation of path

<refpath
   template="ad_referencing_organization_typical_by_code">
   <instantiate
      entity="Organization_type"
      context="Aerospace_and_Defense">
      
   </instantiate>
   <comment>
      Mark the Organization_type entity as
   </comment>
   <comment>
      referable when this template is used by binding it to the reference
   </comment>
   <comment>
      parameter org_type
   </comment>
   <bind
      parameter="org_type">
      <express_entity
         entity="Organization_type"
         context="Aerospace_and_Defense">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="Aerospace_and_Defense">
      <target>
         <express_attribute
            entity="Organization_type"
            attribute="name"
            context="Aerospace_and_Defense">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="Aerospace_and_Defense">
      <target>
         <express_attribute
            entity="Organization_type"
            attribute="description"
            context="Aerospace_and_Defense">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      provide the type of organization by assigning a code to the entity Organization_type
   </comment>
   <call_template
      name="assigning_code"
      business_context="Aerospace_and_Defense">
      <param_in
         name="class_name"
         value="@org_type_code">
         
      </param_in>
      <param_in
         name="code_class_name"
         value="@org_type_code_class_name">
         
      </param_in>
      <param_in
         name="code_ecl_id"
         value="@org_type_code_class_ecl_id">
         
      </param_in>
      <param_in
         name="items"
         value="^org_type">
         
      </param_in>
   </call_template>
</refpath>

© OASIS 2010 — All rights reserved