Template:— assigning_task_method_version (asg_task_mv) Date: 2009/04/07 21:57:51
Revision: 1.9
Template: assigning_task_method_version

XML references to the Template

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

assigning_task_method_version

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="assigning_task_method_version" capability="representing_task_associations">
  <param name="assignment_role">
    <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="item">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="task_method_version">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="assigning_task_method_version">
  <param_in name="assignment_role" value=""/>
  <param_in name="role_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="item" value=""/>
  <param_in name="task_method_version" value=""/>
</template_example>

assigning_task_method_version
/assigning_task_method_version(assignment_role='', role_ecl_id='urn:plcs:rdl:std', item='', task_method_version='')/

Path

Task_method_version_assignment
%^task_mv_asg = Task_method_version_assignment%
Task_method_version_assignment.role = '/IGNORE'
Task_method_version_assignment.items -> @item
Task_method_version_assignment.assigned_activity_method -> @task_method_version

-- Assign the role of the assignment
/assigning_reference_data(
    items=^task_mv_asg,
    class_name=@assignment_role,
    ecl_id=@role_ecl_id)/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Task_method_version_assignment.role '/IGNORE' Applied_activity_method_assignment.role

XML representation of path

<refpath
   template="assigning_task_method_version">
   <instantiate
      entity="Task_method_version_assignment"
      context="">
      
   </instantiate>
   <bind
      parameter="task_mv_asg">
      <express_entity
         entity="Task_method_version_assignment"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Task_method_version_assignment"
            attribute="role"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value="'/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Task_method_version_assignment"
            attribute="items"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="item">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Task_method_version_assignment"
            attribute="assigned_activity_method"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="task_method_version">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      Assign the role of the assignment
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="">
      <param_in
         name="items"
         value="^task_mv_asg">
         
      </param_in>
      <param_in
         name="class_name"
         value="@assignment_role">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="@role_ecl_id">
         
      </param_in>
   </call_template>
</refpath>

© OASIS 2010 — All rights reserved