Template:— assigning_justification (asg_just) Date: 2010/03/10 10:15:12
Revision: 1.16
Template: assigning_justification

XML references to the Template

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

assigning_justification

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

Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="assigning_justification" capability="representing_justification">
  <param name="just_item">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="just_asgn_role">
    <param_value>Justification_assignment_role</param_value>
    <description></description>
  </param>
  <param name="role_ecl_id">
    <param_value>urn:plcs:rdl:std</param_value>
    <description></description>
  </param>
  <param name="just_txt">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="assigning_justification">
  <param_in name="just_item" value=""/>
  <param_in name="just_asgn_role" value="Justification_assignment_role"/>
  <param_in name="role_ecl_id" value="urn:plcs:rdl:std"/>
  <param_in name="just_txt" value=""/>
</template_example>

assigning_justification
/assigning_justification(just_item='', just_asgn_role='Justification_assignment_role', role_ecl_id='urn:plcs:rdl:std', just_txt='')/

Path

-- Mark the Justification entity as
-- referable when this template is used by binding it to the reference
-- parameter ^justification
%^justification = Justification%
Justification.id = '/IGNORE'
Justification.name = '/IGNORE'
Justification.description = '/IGNORE'
Justification.context_description = '/IGNORE'

-- Mark the Justification_assignment entity as
-- referenceable when this template is used by binding it to the reference
-- parameter just_assgn
%^just_asgn = Justification_assignment%
Justification_assignment.description = '/IGNORE'
Justification_assignment.role = '/IGNORE'
Justification_assignment.item -> @just_item
Justification_assignment.justification -> ^justification

-- provide the role of the identification by classifying the Justification_assignment
/assigning_reference_data(
    items=^just_asgn,
    class_name=@just_asgn_role,
    ecl_id=@role_ecl_id)/

-- provide a description of the Justification
/assigning_descriptor(
    descr=@just_txt,
    class_name='Justification_description',
    ecl_id='urn:plcs:rdl:std',
    is_assigned_to=^justification)/
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Justification.id '/IGNORE'
Justification.name '/IGNORE'
Justification.description '/IGNORE'
Justification.context_description '/IGNORE'
Justification_assignment.description '/IGNORE'
Justification_assignment.role '/IGNORE'

XML representation of path

<refpath
   template="assigning_justification">
   <comment>
      Mark the Justification entity as
   </comment>
   <comment>
      referable when this template is used by binding it to the reference
   </comment>
   <comment>
      parameter ^justification
   </comment>
   <bind
      parameter="justification">
      <express_entity
         entity="Justification"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Justification"
            attribute="id"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Justification"
            attribute="name"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Justification"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Justification"
            attribute="context_description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <comment>
      Mark the Justification_assignment entity as
   </comment>
   <comment>
      referenceable when this template is used by binding it to the reference
   </comment>
   <comment>
      parameter just_assgn
   </comment>
   <bind
      parameter="just_asgn">
      <express_entity
         entity="Justification_assignment"
         context="">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Justification_assignment"
            attribute="description"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="">
      <target>
         <express_attribute
            entity="Justification_assignment"
            attribute="role"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Justification_assignment"
            attribute="item"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="just_item">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Justification_assignment"
            attribute="justification"
            context="">
            
         </express_attribute>
      </target>
      <source>
         <bound_parameter
            name="justification">
            
         </bound_parameter>
      </source>
   </assign>
   <comment>
      provide the role of the identification by classifying the Justification_assignment
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="">
      <param_in
         name="items"
         value="^just_asgn">
         
      </param_in>
      <param_in
         name="class_name"
         value="@just_asgn_role">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="@role_ecl_id">
         
      </param_in>
   </call_template>
   <comment>
      provide a description of the Justification
   </comment>
   <call_template
      name="assigning_descriptor"
      business_context="">
      <param_in
         name="descr"
         value="@just_txt">
         
      </param_in>
      <param_in
         name="class_name"
         value="'Justification_description'">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
      <param_in
         name="is_assigned_to"
         value="^justification">
         
      </param_in>
   </call_template>
</refpath>

© OASIS 2010 — All rights reserved