Template:— assigning_potential_solution (asg_sol)
Capability:representing_work_request
Date: 2007/09/28 12:44:06
Revision: 1.10
Template: assigning_potential_solution

XML references to the Template

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

assigning_potential_solution

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="assigning_potential_solution" capability="representing_work_request">
  <param name="associated_request">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="assigned_method">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="assigning_potential_solution">
  <param_in name="associated_request" value=""/>
  <param_in name="assigned_method" value=""/>
</template_example>

assigning_potential_solution
/assigning_potential_solution(associated_request='', assigned_method='')/

Path

-- Instantiate the Activity_method_assignment
Activity_method_assignment
Activity_method_assignment.relation_type = '/IGNORE'

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

-- Assign the Activity_method_assignment to the
-- to the instances passed into the template through the @associated_request
-- input parameter namely a Work_request
Activity_method_assignment.associated_request -> @associated_request

-- Assign the Activity_method_assignment to the
-- to the instances passed into the template through the @assigned_method
-- input parameter namely an Activity_method
Activity_method_assignment.assigned_method -> @assigned_method

-- Set the status
/assigning_reference_data(
    items=Activity_method_assignment,
    class_name='Potential_solution',
    ecl_id='urn:plcs:rdl:std')/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Activity_method_assignment.relation_type '/IGNORE'

XML representation of path

<refpath
   template="assigning_potential_solution">
   <comment>
      Instantiate the Activity_method_assignment
   </comment>
   <instantiate
      entity="Activity_method_assignment"
      context="">
      
   </instantiate>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Activity_method_assignment"
            attribute="relation_type"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Bind the Activity_method_assignment to the parameter ^act_mthd_assgn.
   </comment>
   <comment>
      The parameter is a reference parameter so the Activity_method_assignment
   </comment>
   <comment>
      entity can be referred to when this template is used.
   </comment>
   <bind
      parameter="act_mthd_assgn">
      <express_entity
         entity="Activity_method_assignment"
         context="">
         
      </express_entity>
   </bind>
   <comment>
      Assign the Activity_method_assignment to the
   </comment>
   <comment>
      to the instances passed into the template through the @associated_request
   </comment>
   <comment>
      input parameter namely a Work_request
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Activity_method_assignment"
            attribute="associated_request"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="associated_request">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      Assign the Activity_method_assignment to the
   </comment>
   <comment>
      to the instances passed into the template through the @assigned_method
   </comment>
   <comment>
      input parameter namely an Activity_method
   </comment>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Activity_method_assignment"
            attribute="assigned_method"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="assigned_method">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      Set the status
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="">
      <param_in
         name="items"
         value="Activity_method_assignment">
         
      </param_in>
      <param_in
         name="class_name"
         value="'Potential_solution'">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
   </call_template>
</refpath>

© OASIS 2010 — All rights reserved