Pages

OracleEBSpro is purely for knowledge sharing and learning purpose, with the main focus on Oracle E-Business Suite Product and other related Oracle Technologies.

I'm NOT responsible for any damages in whatever form caused by the usage of the content of this blog.

I share my Oracle knowledge through this blog. All my posts in this blog are based on my experience, reading oracle websites, books, forums and other blogs. I invite people to read and suggest ways to improve this blog.


Monday, April 15, 2013

Workflow Owned By restriction (View ALL workflows from ALL users)

Sometimes Workflow Owned By is restricted in the Status Monitor Tab of Workflow Administrator responsibility to the Owning User, the reason for this is lack of Workflow System Administrator Privileges for the user to view the Workflows submitted by all the users.

To make sure that the user able to view the Workflows owned by everyone is to identify which responsibility holds the Workflow System Administrator responsibilities and assign to themselves the corresponding responsibility.

Following query identifies who has been asssigned the Workflow System Administrator Role,

SELECT rs.text,r.display_name
FROM wf_resources rs, wf_local_roles r
WHERE rs.name='WF_ADMIN_ROLE'
AND rs.text=r.name;

If role found above is a responsibility role, then assign that responsibility to the user to be able to query any workflow item in the Status Monitor or update the Workflow System Administrator to the one found above as displayed below,


Also you can set by updating the table WF_RESOURCES as below, assigning the Workflow System Administrator Role to the 'System Administrator' responsibility,

UPDATE wf_resources
SET text='FND_RESP|SYSADMIN|SYSTEM_ADMINISTRATOR|STANDARD'
WHERE name='WF_ADMIN_ROLE';

COMMIT;


----------------------------------------------------------------
In most fresh instances you're not able to see all the workflows running on your system if you login with your own username with maybe System Administrator or the Workflow Administrator responsibility. Within the status monitor of Oracle Workflow you are only able to check active or completed workflows owned by yourself - in fact owned by the HR user which is attached to your username.

This might be caused due to the fact that user SYSADMIN is the Workflow System Administrator of your instance. In other words when you login as SYSADMIN you will be able to see all the workflows of the complete instance - and you've the option to skip, kill or retry/rewind a workflow.


Setting a different Workflow Administrator can be done through the front-end or with doing a small SQL update. I advise to try it first from the front :-). Login with SYSADMIN and use responsibility Workflow Administrator. Go to menu Administrator Workflow - Administration.


You'll notice that assigned as a Workflow System Administrator is user SYSADMIN.


Change the Workflow System Administrator into Workflow Administrator and apply the changes. After this change users with responsibility Workflow Administrator or System Administrator are able to see all workflows from all users within the Status Monitor. You'll notice the Workflow Owned By now having the value All Employees and Users.


The above can also be done by executing a small SQL statement. As the Workflow System Administrator is actually a role within table WF_RESOURCES you are able to change the setting here also. The text attribute of the role Workflow System Administrator, being the system role WF_ADMIN_ROLE, must be set to the corresponding value belonging to in this case Workflow Administrator, like we did above. The system value for Workflow Administrator is FND_RESP|FND|FNDWF_ADMIN|STANDARD. So the corresponding SQL is:

UPDATE WF_RESOURCES
SET TEXT='FND_RESP|FND|FNDWF_ADMIN|STANDARD'
WHERE NAME = 'WF_ADMIN_ROLE'


Of course execute a commit after that. After you executed the SQL the Workflow Administrator and System Administrator responsibility have access to all workflows and are able to execute actions on them - like killing or rewinding/retrying a workflow.


References:
http://oracleebsapps.blogspot.com/2011/08/view-all-workflows-from-all-users.html

No comments:

Post a Comment