Template:— assigning_activity_method (asg_act_meth) Capability: representing_activity |
Date: 2007/06/21 20:28:05 Revision: 1.3
|
-- instantiate Activity Activity%^act =
Activity%
^act.id = '/IGNORE'
^act.name = '/IGNORE'
^act.description = '/IGNORE'
-- assign reference data to activity /
assigning_reference_data(
class_name=@act_class_name,
ecl_id=@act_ecl_id,
items=^act)/
Activity_method%^act_method =
Activity_method%
^act_method.name = '/IGNORE'
^act_method.purpose = '/IGNORE'
^act_method.description = '/IGNORE'
^act_method.consequence = '/IGNORE'
/
assigning_identification(
id=@name_id,
id_class_name=@name_id_class_name,
id_ecl_id=@name_id_ecl_id,
org_id=@name_org_id,
org_id_class_name=@name_org_id_class_name,
org_id_ecl_id=@name_org_id_ecl_id,
items=^act_method)/
/
assigning_reference_data(
class_name=@purpose_class_name,
ecl_id=@purpose_ecl_id,
items=^act_method)/
-- Assign the Activity to the Activity method
^act.chosen_method ->
^act_method
-- Instantiate an Applied_activity_assignment Applied_activity_assignment%^apl_act_asg =
Applied_activity_assignment%
-- Set the Applied_activity_assignment attribute role to be ignored
^apl_act_asg.role = '/IGNORE'
-- Assign reference data for role of Applied_activity_assignment /
assigning_reference_data(
items=^apl_act_asg,
class_name=@role_class_name,
ecl_id=@role_ecl_id)/
-- Assign the Applied_activity_assignment to the -- to the instances passed into the template through the @items -- input parameter (e.g. a Product_as_realized)
^apl_act_asg.items ->
@items-- Assign the Applied_activity_assignment to the Activity_actual
^apl_act_asg.assigned_activity ->
^act