Template:— representing_part (rep_part) Capability:representing_parts |
Date: 2009/04/28 17:24:29 Revision: 1.36
|
XML references to the Template
These can be cut and pasted into the XML as required.
representing_part
Set up a hyperlink to the template definition.
<template_ref name="representing_part" capability="representing_parts"/>
Set up a table of the template parameters.
<template_table figure_id="?" instance="" name="representing_part" capability="representing_parts">
<param name="part_id">
<param_value></param_value>
<description></description>
</param>
<param name="part_id_class_name">
<param_value>Part_identification_code</param_value>
<description></description>
</param>
<param name="part_id_ecl_id">
<param_value>urn:plcs:rdl:std</param_value>
<description></description>
</param>
<param name="part_org_id">
<param_value></param_value>
<description></description>
</param>
<param name="part_org_id_class_name">
<param_value>Organization_name</param_value>
<description></description>
</param>
<param name="part_org_id_ecl_id">
<param_value>urn:plcs:rdl:std</param_value>
<description></description>
</param>
<param name="part_vn_id">
<param_value></param_value>
<description></description>
</param>
<param name="part_vn_id_class_name">
<param_value>Version_identification_code</param_value>
<description></description>
</param>
<param name="part_vn_id_ecl_id">
<param_value>urn:plcs:rdl:std</param_value>
<description></description>
</param>
<param name="part_vn_org_id">
<param_value></param_value>
<description></description>
</param>
<param name="part_vn_org_id_class_name">
<param_value>Organization_name</param_value>
<description></description>
</param>
<param name="part_vn_org_id_ecl_id">
<param_value>urn:plcs:rdl:std</param_value>
<description></description>
</param>
<param name="domain">
<param_value>Product_life_cycle_support</param_value>
<description></description>
</param>
<param name="domain_ecl_id">
<param_value>urn:plcs:rdl:std</param_value>
<description></description>
</param>
<param name="life_cycle_stage">
<param_value>Support_stage</param_value>
<description></description>
</param>
<param name="life_cycle_stage_ecl_id">
<param_value>urn:plcs:rdl:std</param_value>
<description></description>
</param>
</template_table>
Setup a template_example:
<template_example name="representing_part">
<param_in name="part_id" value=""/>
<param_in name="part_id_class_name" value="Part_identification_code"/>
<param_in name="part_id_ecl_id" value="urn:plcs:rdl:std"/>
<param_in name="part_org_id" value=""/>
<param_in name="part_org_id_class_name" value="Organization_name"/>
<param_in name="part_org_id_ecl_id" value="urn:plcs:rdl:std"/>
<param_in name="part_vn_id" value=""/>
<param_in name="part_vn_id_class_name" value="Version_identification_code"/>
<param_in name="part_vn_id_ecl_id" value="urn:plcs:rdl:std"/>
<param_in name="part_vn_org_id" value=""/>
<param_in name="part_vn_org_id_class_name" value="Organization_name"/>
<param_in name="part_vn_org_id_ecl_id" value="urn:plcs:rdl:std"/>
<param_in name="domain" value="Product_life_cycle_support"/>
<param_in name="domain_ecl_id" value="urn:plcs:rdl:std"/>
<param_in name="life_cycle_stage" value="Support_stage"/>
<param_in name="life_cycle_stage_ecl_id" value="urn:plcs:rdl:std"/>
</template_example>
/
representing_part(part_id='', part_id_class_name='Part_identification_code', part_id_ecl_id='urn:plcs:rdl:std', part_org_id='', part_org_id_class_name='Organization_name', part_org_id_ecl_id='urn:plcs:rdl:std', part_vn_id='', part_vn_id_class_name='Version_identification_code', part_vn_id_ecl_id='urn:plcs:rdl:std', part_vn_org_id='', part_vn_org_id_class_name='Organization_name', part_vn_org_id_ecl_id='urn:plcs:rdl:std', domain='Product_life_cycle_support', domain_ecl_id='urn:plcs:rdl:std', life_cycle_stage='Support_stage', life_cycle_stage_ecl_id='urn:plcs:rdl:std')/
Path
-- Part Part-- Mark the Part entity as referable when this template -- is used by binding by the reference parameter ^part %^part =
Part%
Part.id = '/IGNORE'
Part.name = '/IGNORE'
Part.description = '/IGNORE'
-- Identify the Part /
assigning_identification(
items=^part,
id=@part_id,
id_class_name=@part_id_class_name,
id_ecl_id=@part_id_ecl_id,
org_id=@part_org_id,
org_id_class_name=@part_org_id_class_name,
org_id_ecl_id=@part_org_id_ecl_id )/
-- establish the ref parameter %^part_id_assgn = $assigning_identification.id_assgn%
-- -- Product category assignment Product_category_assignment-- Not able to reference from outside -- Attach the assignment to the Part Product_category_assignment.products ->
Part-- -- Product category Product_categoryProduct_category.id = '/IGNORE'
Product_category.name = 'part'
Product_category.description = '/IGNORE'
%^catgy =
Product_category%
-- Attach the assignment to the Product_category Product_category_assignment.category ->
Product_category-- Part version -- Part_version-- Mark the Part_version entity as referable when this template -- is used by binding it to the reference parameter ^version %^version =
Part_version%
Part_version.id = '/IGNORE'
Part_version.description = '/IGNORE'
-- Relate the part_version to the part Part_version.of_product ->
Part-- Identify the Part_version /
assigning_identification(
items=^version,
id=@part_vn_id,
id_class_name=@part_vn_id_class_name,
id_ecl_id=@part_vn_id_ecl_id,
org_id=@part_vn_org_id,
org_id_class_name=@part_vn_org_id_class_name,
org_id_ecl_id=@part_vn_org_id_ecl_id )/
-- establish the ref parameter %^part_version_id_assgn = $assigning_identification.id_assgn%
-- Part_view_definition-- Mark the Part_view_definition entity as referable -- when this template is used by binding it to the reference -- parameter ^view %^view =
Part_view_definition%
Part_view_definition.id = '/IGNORE'
Part_view_definition.name = '/IGNORE'
Part_view_definition.additional_characterization = '/IGNORE'
-- Relate the part_version to the part Part_view_definition.defined_version ->
Part_version-- View_definition_context-- Mark the View_definition_context entity as referable when this -- template is used by binding it to the reference parameter ^contxt %^contxt =
View_definition_context%
-- Ignore the attributes View_definition_context.application_domain = '/IGNORE'
View_definition_context.life_cycle_stage = '/IGNORE'
View_definition_context.description = '/IGNORE'
-- provide the application domain of the view definition by classification /
assigning_reference_data(
items=^contxt,
class_name=@domain,
ecl_id=@domain_ecl_id)/
-- provide the life cycle stage of the view definition by classification /
assigning_reference_data(
items=^contxt,
class_name=@life_cycle_stage,
ecl_id=@life_cycle_stage_ecl_id)/
-- Relate the part_view_definition to the View_definition_context Part_view_definition.initial_context ->
View_definition_context
The following entities are instantiated with attributes as specified:
XML representation of path
<refpath
template="representing_part">
<comment>
Part
</comment>
<instantiate
entity="Part"
context="">
</instantiate>
<comment>
Mark the Part entity as referable when this template
</comment>
<comment>
is used by binding by the reference parameter ^part
</comment>
<bind
parameter="part">
<express_entity
entity="Part"
context="">
</express_entity>
</bind>
<assign
assignment_type="equals"
context="">
<target>
<express_attribute
entity="Part"
attribute="id"
context="">
</express_attribute>
</target>
<source>
<string
value=" '/IGNORE' ">
</string>
</source>
</assign>
<assign
assignment_type="equals"
context="">
<target>
<express_attribute
entity="Part"
attribute="name"
context="">
</express_attribute>
</target>
<source>
<string
value=" '/IGNORE' ">
</string>
</source>
</assign>
<assign
assignment_type="equals"
context="">
<target>
<express_attribute
entity="Part"
attribute="description"
context="">
</express_attribute>
</target>
<source>
<string
value=" '/IGNORE' ">
</string>
</source>
</assign>
<comment>
Identify the Part
</comment>
<call_template
name="assigning_identification"
business_context="">
<param_in
name="items"
value="^part">
</param_in>
<param_in
name="id"
value="@part_id">
</param_in>
<param_in
name="id_class_name"
value="@part_id_class_name">
</param_in>
<param_in
name="id_ecl_id"
value="@part_id_ecl_id">
</param_in>
<param_in
name="org_id"
value="@part_org_id">
</param_in>
<param_in
name="org_id_class_name"
value="@part_org_id_class_name">
</param_in>
<param_in
name="org_id_ecl_id"
value="@part_org_id_ecl_id ">
</param_in>
</call_template>
<comment>
establish the ref parameter
</comment>
<bind
parameter="part_id_assgn">
<template_instance
template="assigning_identification"
parameter="id_assgn">
</template_instance>
</bind>
<comment>
</comment>
<comment>
Product category assignment
</comment>
<instantiate
entity="Product_category_assignment"
context="">
</instantiate>
<comment>
Not able to reference from outside
</comment>
<comment>
Attach the assignment to the Part
</comment>
<assign
assignment_type="points-to">
<target>
<express_attribute
entity="Product_category_assignment"
attribute="products"
context="">
</express_attribute>
</target>
<source>
<express_entity
entity="Part"
context="">
</express_entity>
</source>
</assign>
<comment>
</comment>
<comment>
Product category
</comment>
<instantiate
entity="Product_category"
context="">
</instantiate>
<assign
assignment_type="equals"
context="">
<target>
<express_attribute
entity="Product_category"
attribute="id"
context="">
</express_attribute>
</target>
<source>
<string
value=" '/IGNORE' ">
</string>
</source>
</assign>
<assign
assignment_type="equals"
context="">
<target>
<express_attribute
entity="Product_category"
attribute="name"
context="">
</express_attribute>
</target>
<source>
<string
value=" 'part' ">
</string>
</source>
</assign>
<assign
assignment_type="equals"
context="">
<target>
<express_attribute
entity="Product_category"
attribute="description"
context="">
</express_attribute>
</target>
<source>
<string
value=" '/IGNORE' ">
</string>
</source>
</assign>
<bind
parameter="catgy">
<express_entity
entity="Product_category"
context="">
</express_entity>
</bind>
<comment>
Attach the assignment to the Product_category
</comment>
<assign
assignment_type="points-to">
<target>
<express_attribute
entity="Product_category_assignment"
attribute="category"
context="">
</express_attribute>
</target>
<source>
<express_entity
entity="Product_category"
context="">
</express_entity>
</source>
</assign>
<comment>
Part version
</comment>
<comment>
</comment>
<instantiate
entity="Part_version"
context="">
</instantiate>
<comment>
Mark the Part_version entity as referable when this template
</comment>
<comment>
is used by binding it to the reference parameter ^version
</comment>
<bind
parameter="version">
<express_entity
entity="Part_version"
context="">
</express_entity>
</bind>
<assign
assignment_type="equals"
context="">
<target>
<express_attribute
entity="Part_version"
attribute="id"
context="">
</express_attribute>
</target>
<source>
<string
value=" '/IGNORE' ">
</string>
</source>
</assign>
<assign
assignment_type="equals"
context="">
<target>
<express_attribute
entity="Part_version"
attribute="description"
context="">
</express_attribute>
</target>
<source>
<string
value=" '/IGNORE' ">
</string>
</source>
</assign>
<comment>
Relate the part_version to the part
</comment>
<assign
assignment_type="points-to">
<target>
<express_attribute
entity="Part_version"
attribute="of_product"
context="">
</express_attribute>
</target>
<source>
<express_entity
entity="Part"
context="">
</express_entity>
</source>
</assign>
<comment>
Identify the Part_version
</comment>
<call_template
name="assigning_identification"
business_context="">
<param_in
name="items"
value="^version">
</param_in>
<param_in
name="id"
value="@part_vn_id">
</param_in>
<param_in
name="id_class_name"
value="@part_vn_id_class_name">
</param_in>
<param_in
name="id_ecl_id"
value="@part_vn_id_ecl_id">
</param_in>
<param_in
name="org_id"
value="@part_vn_org_id">
</param_in>
<param_in
name="org_id_class_name"
value="@part_vn_org_id_class_name">
</param_in>
<param_in
name="org_id_ecl_id"
value="@part_vn_org_id_ecl_id ">
</param_in>
</call_template>
<comment>
establish the ref parameter
</comment>
<bind
parameter="part_version_id_assgn">
<template_instance
template="assigning_identification"
parameter="id_assgn">
</template_instance>
</bind>
<comment>
</comment>
<instantiate
entity="Part_view_definition"
context="">
</instantiate>
<comment>
Mark the Part_view_definition entity as referable
</comment>
<comment>
when this template is used by binding it to the reference
</comment>
<comment>
parameter ^view
</comment>
<bind
parameter="view">
<express_entity
entity="Part_view_definition"
context="">
</express_entity>
</bind>
<assign
assignment_type="equals"
context="">
<target>
<express_attribute
entity="Part_view_definition"
attribute="id"
context="">
</express_attribute>
</target>
<source>
<string
value=" '/IGNORE' ">
</string>
</source>
</assign>
<assign
assignment_type="equals"
context="">
<target>
<express_attribute
entity="Part_view_definition"
attribute="name"
context="">
</express_attribute>
</target>
<source>
<string
value=" '/IGNORE' ">
</string>
</source>
</assign>
<assign
assignment_type="equals"
context="">
<target>
<express_attribute
entity="Part_view_definition"
attribute="additional_characterization"
context="">
</express_attribute>
</target>
<source>
<string
value=" '/IGNORE' ">
</string>
</source>
</assign>
<comment>
Relate the part_version to the part
</comment>
<assign
assignment_type="points-to">
<target>
<express_attribute
entity="Part_view_definition"
attribute="defined_version"
context="">
</express_attribute>
</target>
<source>
<express_entity
entity="Part_version"
context="">
</express_entity>
</source>
</assign>
<comment>
</comment>
<instantiate
entity="View_definition_context"
context="">
</instantiate>
<comment>
Mark the View_definition_context entity as referable when this
</comment>
<comment>
template is used by binding it to the reference parameter ^contxt
</comment>
<bind
parameter="contxt">
<express_entity
entity="View_definition_context"
context="">
</express_entity>
</bind>
<comment>
Ignore the attributes
</comment>
<assign
assignment_type="equals"
context="">
<target>
<express_attribute
entity="View_definition_context"
attribute="application_domain"
context="">
</express_attribute>
</target>
<source>
<string
value=" '/IGNORE' ">
</string>
</source>
</assign>
<assign
assignment_type="equals"
context="">
<target>
<express_attribute
entity="View_definition_context"
attribute="life_cycle_stage"
context="">
</express_attribute>
</target>
<source>
<string
value=" '/IGNORE' ">
</string>
</source>
</assign>
<assign
assignment_type="equals"
context="">
<target>
<express_attribute
entity="View_definition_context"
attribute="description"
context="">
</express_attribute>
</target>
<source>
<string
value=" '/IGNORE' ">
</string>
</source>
</assign>
<comment>
provide the application domain of the view definition by classification
</comment>
<call_template
name="assigning_reference_data"
business_context="">
<param_in
name="items"
value="^contxt">
</param_in>
<param_in
name="class_name"
value="@domain">
</param_in>
<param_in
name="ecl_id"
value="@domain_ecl_id">
</param_in>
</call_template>
<comment>
provide the life cycle stage of the view definition by classification
</comment>
<call_template
name="assigning_reference_data"
business_context="">
<param_in
name="items"
value="^contxt">
</param_in>
<param_in
name="class_name"
value="@life_cycle_stage">
</param_in>
<param_in
name="ecl_id"
value="@life_cycle_stage_ecl_id">
</param_in>
</call_template>
<comment>
Relate the part_view_definition to the View_definition_context
</comment>
<assign
assignment_type="points-to">
<target>
<express_attribute
entity="Part_view_definition"
attribute="initial_context"
context="">
</express_attribute>
</target>
<source>
<express_entity
entity="View_definition_context"
context="">
</express_entity>
</source>
</assign>
</refpath>