Template:— assigning_process_property (asg_proc_prp) Date: 2008/03/06 21:45:39
Revision: 1.17
Template: assigning_process_property

XML references to the Template

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

assigning_process_property

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="assigning_process_property" capability="assigning_process_properties">
  <param name="property_class_name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="property_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="described_element">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="assigning_process_property">
  <param_in name="property_class_name" value=""/>
  <param_in name="property_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="described_element" value=""/>
</template_example>

assigning_process_property
/assigning_process_property(property_class_name='', property_ecl_id='urn:plcs:rdl:std', described_element='')/

Path

-- Instantiate an Activity_property
Activity_property

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

-- Set the Activity_property attributes name and description to be ignored
Activity_property.name = '/IGNORE'
Activity_property.description = '/IGNORE'

-- Assign reference data for name of property
/assigning_reference_data(
    items=^property,
    class_name=@property_class_name,
    ecl_id=@property_ecl_id)/

-- Assign the property to the
-- to the instances passed into the template through the @described_element
-- input parameter (e.g. an Activity_actual)
Activity_property.described_element -> @described_element
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Activity_property.name '/IGNORE'
Activity_property.description '/IGNORE'

XML representation of path

<refpath
   template="assigning_process_property">
   <comment>
      Instantiate an Activity_property
   </comment>
   <instantiate
      entity="Activity_property"
      context="">
      
   </instantiate>
   <comment>
      Bind the Activity_property to the parameter ^property.
   </comment>
   <comment>
      The parameter is a reference parameter so the Activity_property
   </comment>
   <comment>
      entity can be referred to when this template is used.
   </comment>
   <bind
      parameter="property">
      <express_entity
         entity="Activity_property"
         context="">
         
      </express_entity>
   </bind>
   <comment>
      Set the Activity_property attributes name and description to be ignored
   </comment>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Activity_property"
            attribute="name"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Activity_property"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Assign reference data for name of property
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="">
      <param_in
         name="items"
         value="^property">
         
      </param_in>
      <param_in
         name="class_name"
         value="@property_class_name">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="@property_ecl_id">
         
      </param_in>
   </call_template>
   <comment>
      Assign the property to the
   </comment>
   <comment>
      to the instances passed into the template through the @described_element
   </comment>
   <comment>
      input parameter (e.g. an Activity_actual)
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Activity_property"
            attribute="described_element"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="described_element">
            
         </param_in_ref>
      </source>
   </assign>
</refpath>

© OASIS 2010 — All rights reserved