Skip Headers

Oracle Workflow Administrator's Guide
Release 2.6.3.5

Part Number B12160-02
Previous Next       Contents Index Glossary
         Previous  Next          Contents  Index  Glossary

Guest Access in Java

Oracle Workflow provides Java methods to obtain URLs for guest access to the Status Monitor. These methods are defined in the Java class called oracle.apps.fnd.wf.monitor.webui.Monitor.

		/OA_HTML/OA.jsp?OAFunc=[parameters...]

		/OA_HTML/OA.jsp?OAFunc=[parameters...]

When calling these methods, you must provide the following parameters to indicate how you want to display the Status Monitor:

All method calls for guest access should be made from within an Oracle Applications Framework-based Web page.

Example

The following code excerpt shows an example of how to provide guest access to the Status Monitor in Java code. This example calls the getGuestAdvanceUrl() method in the oracle.apps.fnd.wf.monitor.webui.Monitor class.

/*****************************************************************
**
** Guest Access
**
** Assumes all method calls are made from within an Oracle
** Applications Framework page.
**
*****************************************************************/
...
import oracle.apps.fnd.wf.monitor.webui.Monitor;
...
  // This example assumes we want to set the destination link on 
// an OA text bean.Following the link will take the user to the
// advanced monitor on the "Activity History" page.
  public void processRequest(OAPageContext pageContext, 
OAWebBean webBean)
{
super.processRequest(pageContext, webBean);
    ...
    String itemType = [ however this value is obtained in page ];
String itemKey = [ however this value is obtained in page ];
String firstPage = "HISTORY";
String returnToLabel = "Return to Application XYZ";
      // Set to "U" to have Monitor code figure out if the current
// user should have Workflow Administrator privileges based
// on the Administrator role designation in Workflow.
      String adminMode = "U"; 

// Will add a parameter "retainAM=Y" to the resulting url
// so the developer doesn't have to do this manually if he
// wants to retain the calling Application Module when the
// user navigates to the Status Monitor.

boolean retainCallingAM = true;
    String url = null;
    try
{
url = Monitor.getGuestAdvanceUrl(pageContext, itemType,
itemKey, adminMode, firstPage,
returnToLabel, retainCallingAM);
}
catch (MonitorURLException me)
{
// Handle not being able to obtain a valid redirectUrl for
// the parameters.
}
    // Set the url string on the web bean.
    OAStaticStyledTextBean monitorLink = 
(OAStaticStyledTextBean)findIndexedChildRecursive
("AdvancedMonitorLink");
monitorLink.setDestination(url);

...
  } // end processRequest()


         Previous  Next          Contents  Index  Glossary



Oracle Logo
Copyright © 2003, 2004, Oracle. All rights reserved.