Created a customized workflow that has 3 approvers going one after another, while received notification has found in home page with type and subject but from user is empty. All the approvers are generated by item_attribute not with roles can any one please help me on this issue that how to display the "*From_User*" name.
Thanks in advance,
You can set the from role when creating the process as below
wf_engine.SetItemAttrText(<itemType>, <itemKey>, 'FROM_ROLE', '<FromUser>');
<FromUser> -> is the name of the role/user which should be displayed for From role
i am facing the problem that in worklist of home page has workflow notifications in that for customized workflow notifications didn't get details for from column, remaining type and subject columns has been printed normallay. Can anyone please help me on this issue.
For each workflow when launching the workflow process, set the from role value using wf_engine.SetItemAttrText() API
eg: for launching a workflow
l_itemType varchar2(50) ;
wf_engine.CreateProcess(l_itemType, l_itemKey, 'PROC2');
wf_engine.SetItemAttrText(l_itemType, l_itemKey, 'RECIPIENT', l_rcpt);
wf_engine.SetItemOwner(l_itemType, l_itemKey, 'SYSADMIN');
wf_engine.SetItemAttrText(l_itemType, l_itemKey, 'FROM_ROLE', 'PKUSER_B6702416_1'); -- To set FROM_ROLE role
or you can set FROM_ROLE when calling wf_engine.launchProcess() also
There is also a special message attribute '#FROM_ROLE' which you can define in workflow to set 'FROM_ROLE' value