Template:— assigning_approving_organization (asg_apr_org)
Capability:assigning_approvals
[warning:]The use of this template is deprecated. (2008-01-09)
Date: 2008/01/14 10:11:44
Revision: 1.14
Template: assigning_approving_organization

XML references to the Template

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

assigning_approving_organization

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="assigning_approving_organization" capability="assigning_approvals">
  <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>
  <param name="authorized_approval">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="assigning_approving_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"/>
  <param_in name="authorized_approval" value=""/>
</template_example>

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

Path

-- Instantiate an Approving_person_organization
Approving_person_organization

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

-- Set the Approving_person_organization attributes
Approving_person_organization.role = '/IGNORE'

-- Assign the Approving_person_organization to the
-- Approval entity passed into the template through
-- the @authorized_approval input parameter
Approving_person_organization.authorized_approval -> @authorized_approval

-- Instantiate Organization and point at it
Approving_person_organization.person_organization -> Organization

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

-- Identify the Organization
/assigning_identification_with_no_organization(
    items=^organization,
    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
Approving_person_organization.role '/IGNORE'
Organization.name '/IGNORE'
Organization.id '/IGNORE'

XML representation of path

<refpath
   template="assigning_approving_organization">
   <comment>
      Instantiate an Approving_person_organization
   </comment>
   <instantiate
      entity="Approving_person_organization"
      context="">
      
   </instantiate>
   <comment>
      Bind the Approving_person_organization to the parameter ^app_pers_org.
   </comment>
   <comment>
      The parameter is a reference parameter so the Approving_person_organization
   </comment>
   <comment>
      entity can be referred to when this template is used.
   </comment>
   <bind
      parameter="app_pers_org">
      <express_entity
         entity="Approving_person_organization"
         context="">
         
      </express_entity>
   </bind>
   <comment>
      Set the Approving_person_organization attributes
   </comment>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Approving_person_organization"
            attribute="role"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Assign the Approving_person_organization to the
   </comment>
   <comment>
      Approval entity passed into the template through
   </comment>
   <comment>
      the @authorized_approval input parameter
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Approving_person_organization"
            attribute="authorized_approval"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="authorized_approval">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      Instantiate Organization and point at it
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Approving_person_organization"
            attribute="person_organization"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <express_entity
            entity="Organization"
            context="">
            
         </express_entity>
      </source>
   </assign>
   <comment>
      Bind the Organization to the parameter ^organization.
   </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="organization">
      <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="^organization">
         
      </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