336: p_role_display_name => l_owner_name );
337:
338: IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) OR
339: (l_owner_role is NULL) THEN
340: IF(FND_PROFILE.Value('CUG_DEFAULT_SR_WF_ROLE') is null) THEN
341: wf_core.context( pkg_name => 'CUG_GENERIC_WKFLW_PKG',
342: proc_name => 'Replace_SR_Owner',
343: arg1 => 'p_owner_id=>'||
344: to_char(l_source_id));
344: to_char(l_source_id));
345: l_errmsg_name := 'CUG_INCIDENT_OWNER_NOT_VALID';
346: raise l_API_ERROR;
347: ELSE
348: l_owner_role := FND_PROFILE.Value('CUG_DEFAULT_SR_WF_ROLE');
349: END IF; -- End of fnd_profile check
350: END IF; -- End of l_return_status check
351:
352: END IF; -- If source id != null
345: l_errmsg_name := 'CUG_INCIDENT_OWNER_NOT_VALID';
346: raise l_API_ERROR;
347: ELSE
348: l_owner_role := FND_PROFILE.Value('CUG_DEFAULT_SR_WF_ROLE');
349: END IF; -- End of fnd_profile check
350: END IF; -- End of l_return_status check
351:
352: END IF; -- If source id != null
353:
353:
354: END IF; -- End of resource_type check
355: /*
356: ELSE
357: l_owner_role := FND_PROFILE.Value('CUG_DEFAULT_SR_WF_ROLE');
358: END IF; --end of the entire if-then-else block
359: */
360:
361:
1222: result := 'N';
1223: ELSE
1224: /* 08/30 -- begin - to fix bug# 1964265 */
1225:
1226: FND_PROFILE.Get('USER_ID', l_user_id);
1227:
1228: JTF_TASKS_PUB.create_task (
1229: p_api_version => 1.0,
1230: p_task_name => l_SRTasks_Details_rec.task_name,
1425:
1426: -- FOR l_SRTasks_rec IN c_SRTasks_csr LOOP
1427: l_task_type_id := l_SRTasks_rec.task_type_id;
1428:
1429: IF (l_SRTasks_rec.name = FND_PROFILE.Value('CUG_TASK_FAILED_STATUS')) THEN
1430: WF_Engine.SetItemAttrText(itemtype => itemtype,
1431: itemkey => itemkey,
1432: aname => 'CUG_ERROR_TYPE',
1433: avalue => 'failed task');
1459:
1460: IF (l_resource_type = 'RS_EMPLOYEE') THEN
1461: l_role_name := JTF_RS_RESOURCE_PUB.get_wf_role(l_resource_id);
1462: IF (l_role_name IS NULL) THEN
1463: l_resource_name := FND_PROFILE.VALUE('CUG_DEFAULT_TASK_WF_ROLE');
1464: ELSE
1465: l_resource_name := l_role_name;
1466: END IF;
1467: ELSE
1464: ELSE
1465: l_resource_name := l_role_name;
1466: END IF;
1467: ELSE
1468: l_role_name := FND_PROFILE.VALUE('CUG_DEFAULT_TASK_WF_ROLE');
1469: END IF;
1470: --
1471: -- End of changes by ANEEMUCH date 23-May-2002
1472:
1482:
1483:
1484: result := 'CUGCIC_A_TASK_FAILED';
1485: return;
1486: ELSIF (l_SRTasks_rec.name = FND_PROFILE.Value('CUG_TASK_SUCCESS_STATUS')) THEN
1487: l_tasks_pending := 1;
1488: ELSE
1489: l_tasks_pending := 0;
1490: result := 'CUGCIC_WAITING_FOR_COMPLETION';