This content has been marked as final. Show 4 replies
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
Thanks for the reply
Depends on the project from users have been changed the how can i set the from user. Can you please provide the example for below syntax wf_engine.SetItemAttrText.
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