Template:— assigning_task_interval (asg_task_intvl)
Context:— NOLITO
Date: 2008/05/06 14:07:06
Revision: 1.1
Template: assigning_task_interval

XML references to the Template

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

assigning_task_interval

Set up a hyperlink to the template definition.
<template_ref name="assigning_task_interval" context="NOLITO" />

Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="assigning_task_interval" context="NOLITO" >
  <param name="interval_type">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="operating_state">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="operating_state_ecl_id">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="task">
    <param_value></param_value>
    <description></description>
  </param>
  <param name="interval">
    <param_value></param_value>
    <description></description>
  </param>
</template_table>

Setup a template_example:
<template_example name="assigning_task_interval">
  <param_in name="interval_type" value=""/>
  <param_in name="operating_state" value=""/>
  <param_in name="operating_state_ecl_id" value=""/>
  <param_in name="task" value=""/>
  <param_in name="interval" value=""/>
</template_example>

assigning_task_interval
/assigning_task_interval(interval_type='', operating_state='', operating_state_ecl_id='', task='', interval='')/

Path

Identification_assignment

-- Mark the Identification_assignment entity as
-- referable when this template is used by binding it to the reference
-- parameter id_assgn
%^id_assgn = Identification_assignment%

[warning:]Error P8: the template assigning_task_interval does not have a parameter name [id].
Identification_assignment.identifier = @id
Identification_assignment.role = '/IGNORE'
Identification_assignment.description = '/NULL'

[warning:]Error P4: the template assigning_task_interval does not have a parameter name [items].
Identification_assignment.items -> @items

-- provide the role of the identification by classifying the Identification_assignment
/assigning_reference_data(
    items=^id_assgn,
    class_name=@id_class_name,
    ecl_id=@id_ecl_id)/

[warning:]Error t3: the template assigning_task_interval does not have a parameter name [id_class_name]. Parameters are: interval_type operating_state operating_state_ecl_id task interval items class_name ecl_id

[warning:]Error t3: the template assigning_task_interval does not have a parameter name [id_ecl_id]. Parameters are: interval_type operating_state operating_state_ecl_id task interval items class_name ecl_id

-- assign an organization to the identifier and classify it as 'Owner_of'
/assigning_organization(
    items=^id_assgn,
    org_id=@org_id,
    org_id_class_name=@org_id_class_name,
    org_id_ecl_id=@org_id_ecl_id,
    org_assgn_class_name='Owner_of',
    org_assgn_ecl_id='urn:plcs:rdl:std')/

[warning:]Error t3: the template assigning_task_interval does not have a parameter name [org_id]. Parameters are: interval_type operating_state operating_state_ecl_id task interval items class_name ecl_id

[warning:]Error t3: the template assigning_task_interval does not have a parameter name [org_id_class_name]. Parameters are: interval_type operating_state operating_state_ecl_id task interval items class_name ecl_id

[warning:]Error t3: the template assigning_task_interval does not have a parameter name [org_id_ecl_id]. Parameters are: interval_type operating_state operating_state_ecl_id task interval items class_name ecl_id
The following entities are instantiated with attributes as specified:
Entity in path Value Inherited from
Identification_assignment.identifier @id
Identification_assignment.role '/IGNORE'
Identification_assignment.description '/NULL'

XML representation of path

<refpath
   template="assigning_task_interval">
   <instantiate
      entity="Identification_assignment"
      context="NOLITO">
      
   </instantiate>
   <comment>
      Mark the Identification_assignment entity as
   </comment>
   <comment>
      referable when this template is used by binding it to the reference
   </comment>
   <comment>
      parameter id_assgn
   </comment>
   <bind
      parameter="id_assgn">
      <express_entity
         entity="Identification_assignment"
         context="NOLITO">
         
      </express_entity>
   </bind>
   <assign
      assignment_type="equals"
      context="NOLITO">
      <target>
         <express_attribute
            entity="Identification_assignment"
            attribute="identifier"
            context="NOLITO">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="id">
            
         </param_in_ref>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="NOLITO">
      <target>
         <express_attribute
            entity="Identification_assignment"
            attribute="role"
            context="NOLITO">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/IGNORE' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="equals"
      context="NOLITO">
      <target>
         <express_attribute
            entity="Identification_assignment"
            attribute="description"
            context="NOLITO">
            
         </express_attribute>
      </target>
      <source>
         <string
            value=" '/NULL' ">
            
         </string>
      </source>
   </assign>
   <assign
      assignment_type="points-to">
      <target>
         <express_attribute
            entity="Identification_assignment"
            attribute="items"
            context="NOLITO">
            
         </express_attribute>
      </target>
      <source>
         <param_in_ref
            name="items">
            
         </param_in_ref>
      </source>
   </assign>
   <comment>
      provide the role of the identification by classifying the Identification_assignment
   </comment>
   <call_template
      name="assigning_reference_data"
      business_context="NOLITO">
      <param_in
         name="items"
         value="^id_assgn">
         
      </param_in>
      <param_in
         name="class_name"
         value="@id_class_name">
         
      </param_in>
      <param_in
         name="ecl_id"
         value="@id_ecl_id">
         
      </param_in>
   </call_template>
   <comment>
      assign an organization to the identifier and classify it as 'Owner_of'
   </comment>
   <call_template
      name="assigning_organization"
      business_context="NOLITO">
      <param_in
         name="items"
         value="^id_assgn">
         
      </param_in>
      <param_in
         name="org_id"
         value="@org_id">
         
      </param_in>
      <param_in
         name="org_id_class_name"
         value="@org_id_class_name">
         
      </param_in>
      <param_in
         name="org_id_ecl_id"
         value="@org_id_ecl_id">
         
      </param_in>
      <param_in
         name="org_assgn_class_name"
         value="'Owner_of'">
         
      </param_in>
      <param_in
         name="org_assgn_ecl_id"
         value="'urn:plcs:rdl:std'">
         
      </param_in>
   </call_template>
</refpath>

© Saab AB 2010 — All rights reserved