366: task_ctxt_id_txt varchar2(2000);
367: resp_ctxt_id number;
368:
369: act_name WF_ITEMS.ROOT_ACTIVITY%TYPE;
370: bg_id per_business_groups.BUSINESS_GROUP_ID%TYPE;
371: ou_id HR_OPERATING_UNITS.ORGANIZATION_ID%TYPE;
372: io_id ORG_ORGANIZATION_DEFINITIONS.ORGANIZATION_ID%TYPE;
373: BEGIN
374: result := 'TRUE';
409: fnd_profile.get('PER_BUSINESS_GROUP_ID', context);
410: bg_id := to_number(context);
411: resp_ctxt_id := bg_id;
412: select name into context
413: from per_business_groups
414: where BUSINESS_GROUP_ID = bg_id;
415: elsif (context_type = 'OU') then
416: fnd_profile.get('ORG_ID', context);
417: ou_id := to_number(context);