422:
423:
424:
425: -- Once the parameters for workflow is validated, start the workflow
426: wf_engine.CreateProcess (ItemType => l_itemType,
427: ItemKey => l_itemKey,
428: process => g_wf_pcs_notify_cm);
429:
430: wf_engine.SetItemUserKey (ItemType => l_itemType,
426: wf_engine.CreateProcess (ItemType => l_itemType,
427: ItemKey => l_itemKey,
428: process => g_wf_pcs_notify_cm);
429:
430: wf_engine.SetItemUserKey (ItemType => l_itemType,
431: ItemKey => l_itemKey,
432: userKey => l_itemkey);
433:
434: wf_engine.SetItemAttrText (ItemType => l_itemType,
430: wf_engine.SetItemUserKey (ItemType => l_itemType,
431: ItemKey => l_itemKey,
432: userKey => l_itemkey);
433:
434: wf_engine.SetItemAttrText (ItemType => l_itemType,
435: ItemKey => l_itemKey,
436: aname => g_wf_attr_cm_notify_role,
437: avalue => l_adhoc_role);
438:
435: ItemKey => l_itemKey,
436: aname => g_wf_attr_cm_notify_role,
437: avalue => l_adhoc_role);
438:
439: wf_engine.SetItemAttrText (ItemType => l_itemType,
440: ItemKey => l_itemKey,
441: aname => g_wf_attr_attribute_name,
442: avalue => p_attribute_name);
443:
441: aname => g_wf_attr_attribute_name,
442: avalue => p_attribute_name);
443:
444:
445: wf_engine.SetItemAttrText (ItemType => l_itemType,
446: ItemKey => l_itemKey,
447: aname => g_wf_attr_partner_name,
448: avalue => p_partner_name);
449:
446: ItemKey => l_itemKey,
447: aname => g_wf_attr_partner_name,
448: avalue => p_partner_name);
449:
450: wf_engine.SetItemAttrText (ItemType => l_itemType,
451: ItemKey => l_itemKey,
452: aname => g_wf_attr_prtnr_cont_name,
453: avalue => p_pt_contact_name);
454:
453: avalue => p_pt_contact_name);
454:
455: l_send_respond_url := fnd_profile.value('PV_WORKFLOW_RESPOND_SELF_SERVICE_URL');
456:
457: wf_engine.SetItemAttrText ( ItemType => l_itemType,
458: ItemKey => l_itemKey,
459: aname => g_wf_attr_send_url,
460: avalue => l_send_respond_url);
461:
459: aname => g_wf_attr_send_url,
460: avalue => l_send_respond_url);
461:
462:
463: wf_engine.StartProcess (ItemType => l_itemType,
464: ItemKey => l_itemKey);
465:
466: -- Call the following procedure to see whether workflow was able to send notification successfully.
467: PV_ASSIGN_UTIL_PVT.checkforErrors