Template:— assigning_approval_person_organization (asg_apr_pers_org) Capability: assigning_approvals |
Date: 2007/06/21 20:30:31 Revision: 1.3
|
-- Instantiate an Approval_assignment Approval_assignment-- The parameter is a reference parameter so the Approval_assignment -- entity can be referred to when this template is used. %^apr_asg =
Approval_assignment%
-- Set the Approval_assignment attribute role
^apr_asg.role = '/IGNORE'
-- Set the type of Approval_assignment /
assigning_reference_data(
items= ^apr.asg,
class_name=@apr_asg_role_class_name,
ecl_id=@apr_asg_role_ecl_id)/
-- Assign the Approval_assignment to the -- to the instances passed into the template through the @items -- input parameter (e.g. a Part_version)
^apr_asg.items ->
@items-- Instantiate Approval and point at it
^apr_asg.assigned_approval ->
Approval-- Bind the Approval to the parameter ^apr. -- The parameter is a reference parameter so the Approval -- entity can be referred to when this template is used. %^apr =
Approval%
-- Set the Approval attributes
^apr.purpose = '/IGNORE'
-- Bind the Approval_status to the parameter ^apr_stat. -- The parameter is a reference parameter so the Approval_status -- entity can be referred to when this template is used. %^apr_stat =
Approval_status%
-- Instantiate Approval_status and point at it
^apr.status ->
^apr_stat
-- Set the Approval_status attributes
^apr_stat.status_name = '/IGNORE'
-- Set the status /
assigning_reference_data(
items= ^apr.stat,
class_name=@apr_stat_class_name,
ecl_id=@apr_stat_ecl_id)/
-- Bind the Approving_person_organization to the parameter ^app_pers_org. -- The parameter is a reference parameter so the Approving_person_organization -- entity can be referred to when this template is used. %^app_pers_org =
Approving_person_organization%
-- Instantiate an Approving_person_organization and point at it
^app_pers_org.authorized_approval ->
^apr
-- Set the Approving_person_organization attributes
^app_pers_org.role = '/IGNORE'
-- Set the role of person/organization /
assigning_reference_data(
items= ^app_pers_org,
class_name=@pers_org_role_class_name,
ecl_id=@pers_org_role_ecl_id)/