Template:— assigning_code (asg_code)
Capability: assigning_codes
Date: 2007/06/22 12:28:56
Revision: 1.7
Template: assigning_code

Path

Classification_assignment
Classification_assignment.role = '/IGNORE'
Classification_assignment.items -> @items
Classification_assignment.assigned_class -> Class

-- Mark the External_class entity as referable when this template is used.
-- In other words, bind the External_class instance to the reference
-- parameter ext_class
%^class = Class%
Class.id = '/IGNORE'
Class.description = '/IGNORE'
Class.name = @class_name
/assigning_reference_data(
    items=^class,
    class_name=@code_class_name,
    ecl_id=@code_ecl_id)/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Classification_assignment.role '/IGNORE'
Class.id '/IGNORE'
Class.description '/IGNORE'
Class.name @class_name

XML representation of path

<refpath
   template="assigning_code">
   <instantiate
      entity="Classification_assignment">
      
   </instantiate>
   <assign
      assignment_type="equals">
      <target>
         <express_attribute
            entity="Classification_assignment"
            attribute="role">
            
         </express_attribute>
      </target>
      <source>
         <string
            value="'/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Classification_assignment"
            attribute="items">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="items">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Classification_assignment"
            attribute="assigned_class">
            
         </express_attribute>
      </target>
      <source>
         <express_entity
            entity="Class">
            
         </express_entity>
      </source>
   </assign>
   <comment>
      Mark the External_class entity as referable when this template is used.
   </comment>
   <comment>
      In other words, bind the External_class instance to the reference
   </comment>
   <comment>
      parameter ext_class
   </comment>
   <bind
      parameter="class">
      <express_entity
         entity="Class">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals">
      <target>
         <express_attribute
            entity="Class"
            attribute="id">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals">
      <target>
         <express_attribute
            entity="Class"
            attribute="description">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals">
      <target>
         <express_attribute
            entity="Class"
            attribute="name">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="class_name">
            
         </param_in_ref>
      </source>
   </assign>
   <call_template
      name="assigning_reference_data">
      <param_in
         name="items"
         value="^class">
         
      </param_in>
      <param_in
         name="class_name"
         value="@code_class_name">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="@code_ecl_id">
         
      </param_in>
   </call_template>
</refpath>