-- Bind the Address_assignment to the parameter ^address_assgn. -- The parameter is a reference parameter so the Address_assignment -- entity can be referred to when this template is used. %^address_assgn = Address_assignment%
-- Assign reference data to Address_assignment /assigning_reference_data( items=^address_assgn, class_name=@address_class_name, ecl_id=@address_ecl_id)/
-- Bind the Address entity to the parameter ^address. -- The parameter is a reference parameter so the Address -- entity can be referred to when this template is used. %^address = Address%
<refpath template="assigning_address"> <comment> Instantiate an Address_assignment </comment> <instantiate entity="Address_assignment">
</instantiate> <comment> Set the Address_assignment attribute type to be ignored </comment> <assign assignment_type="equals"> <target> <express_attribute entity="Address_assignment" attribute="address_type">
</string> </source> </assign> <comment> Bind the Address_assignment to the parameter ^address_assgn. </comment> <comment> The parameter is a reference parameter so the Address_assignment </comment> <comment> entity can be referred to when this template is used. </comment> <bind parameter="address_assgn"> <express_entity entity="Address_assignment">
</express_entity> </bind> <comment> Assign reference data to Address_assignment </comment> <call_template name="assigning_reference_data"> <param_in name="items" value="^address_assgn">
</param_in> </call_template> <comment> Instantiate and point at an entity Address </comment> <assign assignment_type="points-to"> <target> <express_attribute entity="Address_assignment" attribute="assigned_address">
</param_in_ref> </source> </assign> <comment> Bind the Address entity to the parameter ^address. </comment> <comment> The parameter is a reference parameter so the Address </comment> <comment> entity can be referred to when this template is used. </comment> <bind parameter="address"> <express_entity entity="Address">
</express_entity> </bind> <comment> Assign the Address_assignment </comment> <comment> to the instances passed into the template through the @located_pers_org </comment> <comment> input parameter (e.g. a Person) </comment> <assign assignment_type="points-to"> <target> <express_attribute entity="Address_assignment" attribute="located_person_organizations">