GetDiagramURL

Syntax

function GetDiagramURL
  (x_agent in varchar2,
   x_item_type in varchar2,
   x_item_key in varchar2,
   x_admin_mode in varchar2 default 'NO')
  return varchar2;

Description

Can be called by an application to return a URL that allows access to the Status Diagram page in the Status Monitor with guest access. The URL displays the Status Diagram page for a specific instance of a workflow process in the administrator version of the Status Monitor, operating either with or without administrator privileges.

Arguments (input)

x_agent This parameter is no longer used. Set this parameter to null.
x_item_type A valid item type.
x_item_key A string generated from the application object's primary key. The string uniquely identifies the item within an item type. The item type and key together identify the process to report on.
x_admin_mode A value of YES or NO. YES directs the function to grant administrator privileges to the user accessing the Status Monitor. NO directs the function to withhold administrator privileges from the user accessing the Status Monitor.

Sample Code

Example

Following is an example of how you can call GetDiagramUrl(). This example returns a URL that displays the diagram page for a process instance identified by the item type WFDEMO and item key 10022, in 'USER' mode or without administrator privileges:

URL := WF_MONITOR.GetDiagramURL
  (null,
   'WFDEMO',
   '10022', 
   'NO');