Template:— ad_representing_contracted_product_variant (ad_rep_contr_prod_var)
Context:— Aerospace_and_Defense
Date: 2011/04/20 13:19:03
Revision: 1.2
Template: ad_representing_contracted_product_variant

XML references to the Template

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

ad_representing_contracted_product_variant

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="ad_representing_contracted_product_variant" context="Aerospace_and_Defense" >
  <param name="contract">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="product_variant">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="ad_representing_contracted_product_variant">
  <param_in name="contract" value=""/>
  <param_in name="product_variant" value=""/>
</template_example>

ad_representing_contracted_product_variant
/ad_representing_contracted_product_variant(contract='', product_variant='')/

Path

Document_assignment
Document_assignment.role = '/IGNORE'
Document_assignment.is_assigned_to -> @product_variant
%^contr_prod_var = Document_assignment%

-- Assign the role through ref data
/assigning_reference_data(
    items=^contr_prod_var,
    class_name='Contracted_product_variant',
    ecl_id='urn:plcs:rdl:ad')/

-- Identify the contract to be used
Document_assignment.assigned_document -> @contract
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Document_assignment.role '/IGNORE'

XML representation of path

<refpath
   template="ad_representing_contracted_product_variant">
   <instantiate
      entity="Document_assignment"
      context="Aerospace_and_Defense">
      
   </instantiate>
   <assign
      assignment_type="equals"
      context="Aerospace_and_Defense">
      <target>
         <express_attribute
            entity="Document_assignment"
            attribute="role"
            context="Aerospace_and_Defense">
            
         </express_attribute>
      </target>
      <source>
         <string
            value="'/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Document_assignment"
            attribute="is_assigned_to"
            context="Aerospace_and_Defense">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="product_variant">
            
         </param_in_ref>
      </source>
   </assign>
   <bind
      parameter="contr_prod_var">
      <express_entity
         entity="Document_assignment"
         context="Aerospace_and_Defense">
         
      </express_entity>
   </bind>
   <comment>
      Assign the role through ref data
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="Aerospace_and_Defense">
      <param_in
         name="items"
         value="^contr_prod_var">
         
      </param_in>
      <param_in
         name="class_name"
         value="'Contracted_product_variant'">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="'urn:plcs:rdl:ad'">
         
      </param_in>
   </call_template>
   <comment>
      Identify the contract to be used
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Document_assignment"
            attribute="assigned_document"
            context="Aerospace_and_Defense">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="contract">
            
         </param_in_ref>
      </source>
   </assign>
</refpath>

© OASIS 2010 — All rights reserved