Template:— referencing_task (ref_task) Date: 2009/04/26 18:00:55
Revision: 1.20
Template: referencing_task

XML references to the Template

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

referencing_task

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="referencing_task" capability="representing_task">
  <param name="task_id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="task_id_class_name">
    <param_value>Task_method_identification_code</param_value>
    <description></description>
  </param>
  <param name="task_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="task_org_id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="task_org_id_class_name">
    <param_value>Organization_name</param_value>
    <description></description>
  </param>
  <param name="task_org_id_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="task_ver_id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="task_ver_id_class_name">
    <param_value>Version_identification_code</param_value>
    <description></description>
  </param>
  <param name="task_ver_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="task_ver_org_id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="task_ver_org_id_class_name">
    <param_value>Organization_name</param_value>
    <description></description>
  </param>
  <param name="task_ver_org_id_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="referencing_task">
  <param_in name="task_id" value=""/>
  <param_in name="task_id_class_name" value="Task_method_identification_code"/>
  <param_in name="task_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="task_org_id" value=""/>
  <param_in name="task_org_id_class_name" value="Organization_name"/>
  <param_in name="task_org_id_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="task_ver_id" value=""/>
  <param_in name="task_ver_id_class_name" value="Version_identification_code"/>
  <param_in name="task_ver_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="task_ver_org_id" value=""/>
  <param_in name="task_ver_org_id_class_name" value="Organization_name"/>
  <param_in name="task_ver_org_id_ecl_id" value="urn:plcs:rdl:std"/>
</template_example>

referencing_task
/referencing_task(task_id='', task_id_class_name='Task_method_identification_code', task_ecl_id='urn:plcs:rdl:std', task_org_id='', task_org_id_class_name='Organization_name', task_org_id_ecl_id='urn:plcs:rdl:std', task_ver_id='', task_ver_id_class_name='Version_identification_code', task_ver_ecl_id='urn:plcs:rdl:std', task_ver_org_id='', task_ver_org_id_class_name='Organization_name', task_ver_org_id_ecl_id='urn:plcs:rdl:std')/

Path

Task_method
%^task_method = Task_method%
Task_method.name = '/IGNORE'
Task_method.description = '/IGNORE'
Task_method.consequence = '/IGNORE'
Task_method.purpose = '/IGNORE'

-- Identify the Task_method
/assigning_identification(
    items=Task_method,
    id=@task_id,
    id_class_name=@task_id_class_name,
    id_ecl_id=@task_ecl_id,
    org_id=@task_org_id,
    org_id_class_name=@task_org_id_class_name,
    org_id_ecl_id=@task_org_id_ecl_id )/

-- Task method version
Task_method_version
%^task_method_version = Task_method_version%
Task_method_version.name = '/IGNORE'
Task_method_version.description = '/IGNORE'
Task_method_version.consequence = '/IGNORE'
Task_method_version.purpose = '/IGNORE'
Task_method_version.of_task_method -> ^task_method

-- Identify the Task_method_version as version
/assigning_identification(
    items=^task_method_version,
    id=@task_ver_id,
    id_class_name=@task_ver_id_class_name,
    id_ecl_id=@task_ver_ecl_id,
    org_id=@task_ver_org_id,
    org_id_class_name=@task_ver_org_id_class_name,
    org_id_ecl_id=@task_ver_org_id_ecl_id )/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Task_method.name '/IGNORE' Activity_method.name
Task_method.description '/IGNORE' Activity_method.description
Task_method.consequence '/IGNORE' Activity_method.consequence
Task_method.purpose '/IGNORE' Activity_method.purpose
Task_method_version.name '/IGNORE' Activity_method.name
Task_method_version.description '/IGNORE' Activity_method.description
Task_method_version.consequence '/IGNORE' Activity_method.consequence
Task_method_version.purpose '/IGNORE' Activity_method.purpose

XML representation of path

<refpath
   template="referencing_task">
   <instantiate
      entity="Task_method"
      context="">
      
   </instantiate>
   <bind
      parameter="task_method">
      <express_entity
         entity="Task_method"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Task_method"
            attribute="name"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value="'/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Task_method"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value="'/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Task_method"
            attribute="consequence"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value="'/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Task_method"
            attribute="purpose"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value="'/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Identify the Task_method
   </comment>
   <call_template
      name="assigning_identification"
      business_context="">
      <param_in
         name="items"
         value="Task_method">
         
      </param_in>
      <param_in
         name="id"
         value="@task_id">
         
      </param_in>
      <param_in
         name="id_class_name"
         value="@task_id_class_name">
         
      </param_in>
      <param_in
         name="id_ecl_id"
         value="@task_ecl_id">
         
      </param_in>
      <param_in
         name="org_id"
         value="@task_org_id">
         
      </param_in>
      <param_in
         name="org_id_class_name"
         value="@task_org_id_class_name">
         
      </param_in>
      <param_in
         name="org_id_ecl_id"
         value="@task_org_id_ecl_id ">
         
      </param_in>
   </call_template>
   <comment>
      Task method version
   </comment>
   <instantiate
      entity="Task_method_version"
      context="">
      
   </instantiate>
   <bind
      parameter="task_method_version">
      <express_entity
         entity="Task_method_version"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Task_method_version"
            attribute="name"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value="'/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Task_method_version"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value="'/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Task_method_version"
            attribute="consequence"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value="'/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Task_method_version"
            attribute="purpose"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value="'/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Task_method_version"
            attribute="of_task_method"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="task_method">
            
         </bound_parameter>
      </source>
   </assign>
   <comment>
      Identify the Task_method_version as version
   </comment>
   <call_template
      name="assigning_identification"
      business_context="">
      <param_in
         name="items"
         value="^task_method_version">
         
      </param_in>
      <param_in
         name="id"
         value="@task_ver_id">
         
      </param_in>
      <param_in
         name="id_class_name"
         value="@task_ver_id_class_name">
         
      </param_in>
      <param_in
         name="id_ecl_id"
         value="@task_ver_ecl_id">
         
      </param_in>
      <param_in
         name="org_id"
         value="@task_ver_org_id">
         
      </param_in>
      <param_in
         name="org_id_class_name"
         value="@task_ver_org_id_class_name">
         
      </param_in>
      <param_in
         name="org_id_ecl_id"
         value="@task_ver_org_id_ecl_id ">
         
      </param_in>
   </call_template>
</refpath>

© OASIS 2010 — All rights reserved