Create a VO for the query which is given below through this you can get the current diagram url,
select WF_MONITOR.GetDiagramURL(WF_CORE.Translate('WF_WEB_AGENT'),NtfEO.MESSAGE_TYPE,NtfEO.ITEM_KEY,'NO') monitor_url from
(SELECT ITEM_KEY,MESSAGE_TYPE FROM WF_NOTIFICATIONS WHERE NOTIFICATION_ID = :1) NtfEO
First find the button component of your page.
call VO with the input parameters which will return the diagram url.
Put that url into the java script function.
Through the java script you can open a new popup window which will display the status monitor diagram
OASubmitButtonBean reAssignBea1n = (OASubmitButtonBean) paramOAWebBean.findChildRecursive("WfMonDiagramCtrl");
Serializable[] parameters1 = { NotificationId };
Serializable aa1 = am.invokeMethod("getMonitorURL", parameters1);
if (aa1 != null && !aa1.toString().equals(""))
{
String url = "window.open('" + aa1.toString() + "')";
paramOAPageContext.putJavaScriptFunction("LaunchMonitor", url);
}
Subscribe to:
Post Comments (Atom)
4 comments:
I am trying to display workflow status monitor URL on my custom OAF Page.
Can you please tell me how to do the "putJavaScriptFunction"?
Thanks,
Sanjay
Never mind Got it.
Sanjay
excellent, i used this as well :-) thanks mate ! -krakx
Anoop,
how to find out the notification id, if i initiate my workflow . i have many notifications so how to know the latest one to pass under
NOTIFICATION_ID = :1 ????
Post a Comment