Template:— assigning_activity (asg_act) Date: 2008/01/16 14:19:35
Revision: 1.15
Template: assigning_activity

XML references to the Template

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

assigning_activity

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="assigning_activity" capability="representing_activity">
  <param name="role_class_name">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="role_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="assigned_activity">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="items">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="assigning_activity">
  <param_in name="role_class_name" value=""/>
  <param_in name="role_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="assigned_activity" value=""/>
  <param_in name="items" value=""/>
</template_example>

assigning_activity
/assigning_activity(role_class_name='', role_ecl_id='urn:plcs:rdl:std', assigned_activity='', items='')/

Path

-- Instantiate an Applied_activity_assignment
Applied_activity_assignment

-- Bind the Applied_activity_assignment to the reference parameter
%^appl_act = Applied_activity_assignment%

-- Set the Applied_activity_assignment attribute role to be ignored
Applied_activity_assignment.role = '/IGNORE'

-- Assign reference data for role of Applied_activity_assignment
/assigning_reference_data(
    items=Applied_activity_assignment,
    class_name=@role_class_name,
    ecl_id=@role_ecl_id)/

-- Assign the Applied_activity_assignment to the
-- to the instances passed into the template through the @items
-- input parameter (e.g. a Product_as_realized)
Applied_activity_assignment.items -> @items

-- Assign the Applied_activity_assignment to the
-- to the Activity passed into the template through the @assigned_activity
-- input parameter (e.g. a Product_as_individual_view)
Applied_activity_assignment.assigned_activity -> @assigned_activity
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Applied_activity_assignment.role '/IGNORE'

XML representation of path

<refpath
   template="assigning_activity">
   <comment>
      Instantiate an Applied_activity_assignment
   </comment>
   <instantiate
      entity="Applied_activity_assignment"
      context="">
      
   </instantiate>
   <comment>
      Bind the Applied_activity_assignment to the reference parameter
   </comment>
   <bind
      parameter="appl_act">
      <express_entity
         entity="Applied_activity_assignment"
         context="">
         
      </express_entity>
   </bind>
   <comment>
      Set the Applied_activity_assignment attribute role to be ignored
   </comment>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Applied_activity_assignment"
            attribute="role"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Assign reference data for role of Applied_activity_assignment
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="">
      <param_in
         name="items"
         value="Applied_activity_assignment">
         
      </param_in>
      <param_in
         name="class_name"
         value="@role_class_name">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="@role_ecl_id">
         
      </param_in>
   </call_template>
   <comment>
      Assign the Applied_activity_assignment to the
   </comment>
   <comment>
      to the instances passed into the template through the @items
   </comment>
   <comment>
      input parameter (e.g. a Product_as_realized)
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Applied_activity_assignment"
            attribute="items"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="items">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      Assign the Applied_activity_assignment to the
   </comment>
   <comment>
      to the Activity passed into the template through the @assigned_activity
   </comment>
   <comment>
      input parameter (e.g. a Product_as_individual_view)
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Applied_activity_assignment"
            attribute="assigned_activity"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="assigned_activity">
            
         </param_in_ref>
      </source>
   </assign>
</refpath>

© OASIS 2010 — All rights reserved