Template:— person_with_skill (prsnskl) Context:— UK_Defence |
Date: 2009/05/11 23:51:22 Revision: 1.3
|
XML references to the Template
These can be cut and pasted into the XML as required.
person_with_skill
Set up a hyperlink to the template definition.
<template_ref name="person_with_skill" context="UK_Defence" />
Set up a table of the template parameters.
<template_table figure_id="?" instance="?" name="person_with_skill" context="UK_Defence" >
<param name="ID">
<param_value></param_value>
<description></description>
</param>
<param name="related_person">
<param_value></param_value>
<description></description>
</param>
<param name="related_skill">
<param_value></param_value>
<description></description>
</param>
<param name="effective_from_date_year">
<param_value></param_value>
<description></description>
</param>
<param name="effective_from_date_month">
<param_value></param_value>
<description></description>
</param>
<param name="effective_from_date_day">
<param_value></param_value>
<description></description>
</param>
<param name="effective_to_date_year">
<param_value></param_value>
<description></description>
</param>
<param name="effective_to_date_month">
<param_value></param_value>
<description></description>
</param>
<param name="effective_to_date_day">
<param_value></param_value>
<description></description>
</param>
</template_table>
Setup a template_example:
<template_example name="person_with_skill">
<param_in name="ID" value=""/>
<param_in name="related_person" value=""/>
<param_in name="related_skill" value=""/>
<param_in name="effective_from_date_year" value=""/>
<param_in name="effective_from_date_month" value=""/>
<param_in name="effective_from_date_day" value=""/>
<param_in name="effective_to_date_year" value=""/>
<param_in name="effective_to_date_month" value=""/>
<param_in name="effective_to_date_day" value=""/>
</template_example>
/
person_with_skill(ID='', related_person='', related_skill='', effective_from_date_year='', effective_from_date_month='', effective_from_date_day='', effective_to_date_year='', effective_to_date_month='', effective_to_date_day='')/
Path
Type_of_person_assignment-- The Type_of_person_assignment entity is -- referable when this template is used by binding it to the reference -- parameters %^skill =
Type_of_person_assignment%
Type_of_person_assignment.assigned_type_of_person ->
@related_skillType_of_person_assignment.role = '/IGNORE'
Type_of_person_assignment.items ->
@related_person-- id -- source_organization set to /NULL as per Identifier template characterizations when Person is the source; . /
identifier(
ID=@ID,
source_organization=/NULL,
type='Skill_assignment_identification_code',
items=^skill)/
-- effective from date /
assigning_dated_effectivity(
items=^skill,
start_year=@effective_from_date_year,
start_month=@effective_from_date_month,
start_day=@effective_from_date_day,
start_hour=0,
start_minute=0,
start_second=0,
start_sense=.EXACT.,
start_hour_offset=0,
start_minute_offset=0,
end_year=@effective_to_date_year,
end_month=@effective_to_date_month,
end_day=@effective_to_date_day,
end_hour=0,
end_minute=0,
end_second=0,
end_sense=.EXACT.,
end_hour_offset=0,
end_minute_offset=0,
role_class_name='Actual_effectivity',
role_ecl_id='urn:plcs:rdl:std')/
The following entities are instantiated with attributes as specified:
XML representation of path
<refpath
template="person_with_skill">
<instantiate
entity="Type_of_person_assignment"
context="UK_Defence">
</instantiate>
<comment>
The Type_of_person_assignment entity is
</comment>
<comment>
referable when this template is used by binding it to the reference
</comment>
<comment>
parameters
</comment>
<bind
parameter="skill">
<express_entity
entity="Type_of_person_assignment"
context="UK_Defence">
</express_entity>
</bind>
<assign
assignment_type="points-to">
<target>
<express_attribute
entity="Type_of_person_assignment"
attribute="assigned_type_of_person"
context="UK_Defence">
</express_attribute>
</target>
<source>
<param_in_ref
name="related_skill">
</param_in_ref>
</source>
</assign>
<assign
assignment_type="equals"
context="UK_Defence">
<target>
<express_attribute
entity="Type_of_person_assignment"
attribute="role"
context="UK_Defence">
</express_attribute>
</target>
<source>
<string
value=" '/IGNORE' ">
</string>
</source>
</assign>
<assign
assignment_type="points-to">
<target>
<express_attribute
entity="Type_of_person_assignment"
attribute="items"
context="UK_Defence">
</express_attribute>
</target>
<source>
<param_in_ref
name="related_person">
</param_in_ref>
</source>
</assign>
<comment>
id
</comment>
<comment>
source_organization set to /NULL as per Identifier template characterizations when Person is the source; .
</comment>
<call_template
name="identifier"
business_context="UK_Defence">
<param_in
name="ID"
value="@ID">
</param_in>
<param_in
name="source_organization"
value="/NULL">
</param_in>
<param_in
name="type"
value="'Skill_assignment_identification_code'">
</param_in>
<param_in
name="items"
value="^skill">
</param_in>
</call_template>
<comment>
effective from date
</comment>
<call_template
name="assigning_dated_effectivity"
business_context="UK_Defence">
<param_in
name="items"
value="^skill">
</param_in>
<param_in
name="start_year"
value="@effective_from_date_year">
</param_in>
<param_in
name="start_month"
value="@effective_from_date_month">
</param_in>
<param_in
name="start_day"
value="@effective_from_date_day">
</param_in>
<param_in
name="start_hour"
value="0">
</param_in>
<param_in
name="start_minute"
value="0">
</param_in>
<param_in
name="start_second"
value="0">
</param_in>
<param_in
name="start_sense"
value=".EXACT.">
</param_in>
<param_in
name="start_hour_offset"
value="0">
</param_in>
<param_in
name="start_minute_offset"
value="0">
</param_in>
<param_in
name="end_year"
value="@effective_to_date_year">
</param_in>
<param_in
name="end_month"
value="@effective_to_date_month">
</param_in>
<param_in
name="end_day"
value="@effective_to_date_day">
</param_in>
<param_in
name="end_hour"
value="0">
</param_in>
<param_in
name="end_minute"
value="0">
</param_in>
<param_in
name="end_second"
value="0">
</param_in>
<param_in
name="end_sense"
value=".EXACT.">
</param_in>
<param_in
name="end_hour_offset"
value="0">
</param_in>
<param_in
name="end_minute_offset"
value="0">
</param_in>
<param_in
name="role_class_name"
value="'Actual_effectivity'">
</param_in>
<param_in
name="role_ecl_id"
value="'urn:plcs:rdl:std'">
</param_in>
</call_template>
</refpath>