Using workflow from jsf pages...

We have built a simple JSF page on OC4J app server..
We want to call our workflow program from this page.
How should I use the CREATE PROCESS() AND START PROCESS() inside the JSF page?
We are using 10.1.2. application server. And We SSO connection between
OC4J 10 1. 3.2
we deploy our java application to this OC4J..
But we when we call workflow functions we get get_remote_user error.
Can we call direct PL/SQL API over JDBC connection without using OWF Java API.
Or we need (must) use Java aPI to supply this.
Thanks...

We see that we can call CREATE PROCESS() OR START PROCESS() inside the JSF page..
But the problem are about notifications which needs authentication now
How can we use notifications from java...
Can we call direct PL/SQL API over JDBC connection without using OWF Java API.
Or we need (must) use Java aPI to supply this.
Thanks...

Similar Messages

  • Calling a method in BPM Object from jsf page

    Hi All,
    How do I call a method in BPM object from JSF page? Is it possible to invoke it in a manner similar to invoking a method from managed bean in JSF application?
    Please help.
    Thanks and Regards,
    Veronica

    You can use f:invoke (or f:invokea to with parameters)
    For ajax calls, you can use f:invokeUrl to get the URL to a particular method within your BPM object, although make sure the Server-Side Method property is set to Yes.
    http://download.oracle.com/docs/cd/E13154_01/bpm/docs65/taglib/index.html

  • Can i call signed applet from jsf page in sun studio creator

    Hello javites,
    I want to know whether i can call signed applet from jsf page in sun studio creator. If possible, how do i go about it.
    Thanks.

    This tutorial may help:
    http://developers.sun.com/prodtech/javatools/jscreator/reference/techart/2/applet.html?feed=DSC

  • Problem with opening PDF files from JSF page using SDO

    Hi all,
    I'm new with JSF and was attempting to read a PDF file from a Database using SDO and JSF. The code below throws an exception when casting from DataObject to Blob. The getLcDoc() method was created by WSAD when I dragged an SDO relational record onto the JSF page. This method returns an DataObject type which I tried casting to a Blob type before using it further. However, an exception is thrown.
    Any feedback is appreciated.
    Arv
    try {
                   FacesContext faces = FacesContext.getCurrentInstance();
                   HttpServletResponse response =(HttpServletResponse) faces.getExternalContext().getResponse();
                   Blob file= (Blob)getLcDoc().get("ATTACH");
                   int iLength = (int)(file.length());
                   response.setHeader("Content-type", "application/pdf");
                   response.setHeader("Content-Disposition", "inline; filename=Attachment");
                   response.setHeader("Expires","0");
                   response.setHeader("Cache-Control","must-revalidate, post-check=0, pre-check=0");
                   response.setHeader("Pragma","public");
                   response.setContentLength(iLength);
                   ServletOutputStream os = response.getOutputStream();
                   InputStream in = null;
                   in = file.getBinaryStream();
                   byte buff[] = new byte[1024];
                   while (true) {
                   int i = in.read(buff);
                   if (i<0) break;
                   os.write(buff,0,i);
                   os.flush();
                   os.close();
         } catch(Exception ex){
              System.out.println("Error while reading file : " + ex.getMessage());
         }

    Hi...I found out that there is actually no need to use a Blob object at all. You can simply call the OutputStreams write() method and pass the DataObject.getBytes() method that returns a byte[] array. The revised code is shown at the end of this posting.
    However, a few other teething problems exist:
    1. This works well only if I specify the content type in response.setHeader() method. What if my users upload different types of files, is there a way that the browser opens according to the file type without setting the content type?
    2. I still have a problem opening PDF files, even if I specify - response.setHeader("Content-type", "application/pdf");
    I get the message - The file is damaged and could not be repaired
    3. I would also like this to open the attachment in a new window and using target="_blank" doesn't seem to work as seen below:
    <h:commandLink
                                                 styleClass="commandLink" id="link1" action="#{pc_DocumentDetailsRead.doLink1Action}" target="_blank">
                                                 <h:outputText id="text5" styleClass="outputText"
                                                      value="Click Here"></h:outputText>
                                            </h:commandLink>
    ------------------------Revised code-----------------------------------------
    FacesContext faces = FacesContext.getCurrentInstance();
                   HttpServletResponse response =(HttpServletResponse) faces.getExternalContext().getResponse();
                   response.setHeader("Content-type", "application/msword");
                   response.setHeader("Content-Disposition", "inline; filename=Attachment");
                   response.setHeader("Expires","0");
                   response.setHeader("Cache-Control","must-revalidate, post-check=0, pre-check=0");
                   response.setHeader("Pragma","public");
                   ServletOutputStream os = response.getOutputStream();
                   os.write(getLcDoc().getBytes("ATTACH"));
                   os.flush();
                   os.close();

  • Problem in using MySQL in JSF Pages

    Hi,
    I am facing a problem regarding use of MySQL in JSF.
    I am using IBM RAD 6.0 for application developement.
    Previously creating a normal java application which is used of retrieval of the data from the database was working fine. by including j/connector jar file in java build path.
    But when same program is converted to web service and accessed through a JSF page using a managed bean it is not working. It throws classNotFoundException
    Please reply at your earliest.
    Thanks in advance.
    Regards,
    Amit
    code :-
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    public class BeanClass
         public String display()
              Connection conn = null;
              Statement stmt = null;
              ResultSet rs = null;
              String returnDate = "";
              try
                   Class.forName("com.mysql.jdbc.Driver").newInstance();
                   System.out.println("Sucess");
                   conn=DriverManager.getConnection("jdbc:mysql://localhost/switching","root","pspl");
                   System.out.println("Sucess******");
                   stmt = conn.createStatement();
                   System.out.println("Sucess^^^^^^^^^");
                   rs = stmt.executeQuery("SELECT * FROM log1 where senderId = '008' ");
                   System.out.println("Sucess#########");
                   while(rs.next())
                        System.out.println("Date : " + rs.getString("expDate"));
                        returnDate = rs.getString("expDate");
                   System.out.println("Final success");     
                   System.out.println("Sucess@@@@@@@@@@@@@@@@");
              }catch(ClassNotFoundException cnfe)
                   System.err.println("Drivers not found " + cnfe.toString());
                   cnfe.printStackTrace();
              catch(IllegalAccessException iae)
                   System.err.println("Access Exception");
              catch(InstantiationException ie)
                   System.err.println("Instatiation Exception");
              catch(SQLException se)
                   System.err.println("SQL EXCEPTION");
                   se.printStackTrace();
              System.out.println("Date is = " + returnDate);
              return returnDate;
    Errors are :-
    [5/3/06 10:47:33:358 IST] 00000061 SystemErr R java.lang.ClassNotFoundException: com.mysql.jdbc.Driver     at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java(Compiled Code))
         at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java(Compiled Code))
         at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
         at java.lang.Class.forName1(Native Method)
         at java.lang.Class.forName(Class.java(Compiled Code))
         at packBean.BeanClass.display(BeanClass.java:29)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
         at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
         at com.ibm.ws.webservices.engine.dispatchers.java.JavaDispatcher.invokeMethod(JavaDispatcher.java:178)
         at com.ibm.ws.webservices.engine.dispatchers.java.JavaDispatcher.invokeOperation(JavaDispatcher.java:141)
         at com.ibm.ws.webservices.engine.dispatchers.SoapRPCProcessor.processRequestResponse(SoapRPCProcessor.java:423)
         at com.ibm.ws.webservices.engine.dispatchers.SoapRPCProcessor.processMessage(SoapRPCProcessor.java:388)
         at com.ibm.ws.webservices.engine.dispatchers.BasicDispatcher.processMessage(BasicDispatcher.java:134)
         at com.ibm.ws.webservices.engine.dispatchers.java.SessionDispatcher.invoke(SessionDispatcher.java:203)
         at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:225)
         at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCHandler.invoke(JAXRPCHandler.java:151)
         at com.ibm.ws.webservices.engine.handlers.WrappedHandler.invoke(WrappedHandler.java:64)
         at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:225)
         at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:225)
         at com.ibm.ws.webservices.engine.WebServicesEngine.invoke(WebServicesEngine.java:279)
         at com.ibm.ws.webservices.engine.transport.http.WebServicesServlet.doPost(WebServicesServlet.java:717)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at com.ibm.ws.webservices.engine.transport.http.WebServicesServletBase.service(WebServicesServletBase.java:341)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1282)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:673)
         at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:80)
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1802)
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:84)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:469)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:408)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:286)
         at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:201)
         at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:103)
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java(Compiled Code))
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled Code))
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java(Compiled Code))
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java(Compiled Code))
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))

    You have to put myfaces jar on the web-inf/lib

  • Calling a method in the Custom ADF component from JSF page

    HI.
    I have created some custom compoents by extending the core ADF Components. Like i have a ComboBoxDefault component with it's ComboBoxDefaultTag.java and Controls.tld file.
    Now my requirement is i want to bind my label to this component from the JSF page. like
    <fwcontrols:label binding="#{listComponents.comboBoxDefaultLabel}" id="label1"/>
    <fwcontrols:comboBoxDefault binding="#{listComponents.cmbLocales}"
    value="en_GB" id="comboBoxDefault" autoSubmit="true" label="label1">
    <f:selectItems value="#{listComponents.locales}"/>
    </fwcontrols:comboBoxDefault>
    In my JSF page the label will have an id, and that id will be specified in the label tag of the component.
    In Tag.java file i have overrided the setProperty(FacesBean facesBean). In this method i have bind all my properties. In core JSF the setProperty method is provided with the UIComponent parameter, so i can call my method in component also. Which is not in case of ADF Faces.
    My main point is how i can call my method setLabel() which is in ComboBoxDefault.java so that i can set the label.
    Thanks in Advance.

    Thanks for all your replies. I want this kind of a functionality because Im trying to invove a DC (Child DC) from a Parent DC such that the Child DC's view is displayed onto the view container of the Parent DC. I have embedded using 'interface view of a component instance' in the Parent Window and am able to create the component and set usage though the onPlugDefault of the Child View.
    But I observe that when i make a call from the parent, the flow is like this:
    1. The wdDoInit of the Child Component Controller gets triggered first.
    2. Then the wdDoInit of the Child's <b>VIEW</b> gets triggered
    3. and <b>THEN</b> the onPlugDefault of the Child Component Interface View
    What I had actually wanted was to Fire onPlugDefault where Im calling a method LoadData(), after which the Child DC's view must be triggered so it can display the fetched data.
    What is actually happening is the view gets displayed, but no data is displayed in the view.
    Right now I have just given a work around where Im triggering <b>LoadData()</b> of the <b>COmponent COntroller</b> from the <b>wdDoInit</b> of the <b>VIEW</b>.
    Is there a better way to do this? I find it strange that I have to load the Data from the view.
    Thanks
    Jack

  • Capture generated html output from jsf page in bean

    Hi Member,
    I have need to capture the html output coming form jsf page. means aftr rendering what html is displayed before user, we have need to get it in programm.
    like if we use:
    <h:dataTable......>
    <h:colum>heloo</h:column>
    </h:dataTable>
    then their ouput will be:
    <table>
    <tr><td>heloo</td></tr>
    </table>
    and i have need of these complete line with <table> ......</table>
    Please help me...
    Thanks
    Shailendra Kumar

    Thnx for quick reply.
    But i want to capture it in render response phase. May it will be possible??? Is render response phase is responsible for generation of HTML format?? If yes then how can we capture output coming from this phase.
    URLConnection if fine but it still hit server once. I don't want that. I want to store page html format during its view preparation for html.
    Thanks
    Shailendra Kumar

  • Howto use comments in JSF pages

    Hi all,
    I play a little bit with JSF, at the moment. I wonder that I cannot find any information about how to comment out a part of a JSF page, that it is not rendered.
    If I use the html comment tags <!-- --> then this part is already rendered if I access the page.
    If I want to comment out an invalid part, the execution will fails :(.
    So is there a comment tag in JSF, which is not be rendered if a page is access?
    Thank in advance
    Marco

    I'm sure you must have found a way by now, but to anyone who also has this problem (like myself :D) you can do the following.. I'm using Facelets as XHTML pages, and I didn't find a way of allow the JSP style comments:
    <%--    --%>But if you add the below to your web.xml, you can allow Facelets to skip HTML comments:
    <context-param>
        <param-name>facelets.SKIP_COMMENTS</param-name>
        <param-value>true</param-value>
      </context-param>So with the above in your web.xml, the below:
    First line: #{person.id}
    <!-- Second Line: #{person.id} -->would generate, assuming the person bean's id property is 5:
    First line: 5

  • Missing stylesheet classes from JSF page

    I'm not sure this is JHeadstart related and I will post on the JDeveloper forum as well but since all our applications are built using JHeadstart I thought I would post this hear in case other people had seen similar behaviour.
    We're using JDeveloper 10.1.3.4 and JHeadstart 10.1.3.3.81, developing JSF pages.
    Ocassionally when a page loads, the stylesheet classes are missing - I presume, as all the graphic rendering is not done, only text is shown on the screen - which then means that most of the user interaction is gone ! This is an intermittent problem. I was wondering if this is related to caching of page content at all and whether there is anything that can be done to help avoid the problem.
    Any feedback greatly appreciated !
    Cheers,
    Brent

    Hi Steven,
    This managed to resolve itself by undeploying the application, bouncing the server and redploying. It's happened more than once but it's not giving us too much grief ! We also noticed that if the application is viewed on IE8, a generic oracle-desktop ie css file is used (rather than the more specific oracle-desktop-ie7 one) which causes some delays when loading parts of the page.
    Cheers,
    Brent

  • Update OneToMany collection from jsf page

    Hello,
    I have a problem updating a OneToMany relationship from a jsf page.
    I get an parent object via the local interface from the ejb, then I remove a child from the onetomany relationship and call my save method on the stateless bean which just merges the parent object back to the entitymanager.
    But the child I've removed gets not deleted from the database (so its in the collection again after refresh).
    So whats the preferred way to do this?
    thanks
    Dirk

    Thanks for the reply.
    I have (actually had) two problems. The first one I've solved since my initial post (stupid error on my part).
    The other unsolved problem is JSF pages displaying stale data. User navigates to first page, navigates to second page, at this point the database changes, and then the user navigates back to first page. Navigating back to the first page shows the data how it was, not how it is, because it's from the session bean and not the database. If I could kill the session bean when the user navigates from the page the problem would be solved because I build the inital display in the constructor (BTW, please advise if this is a bad approach).
    Frank, your reply raised a question. Is there a way to specify a refresh frequency? If so, how?
    Thanks,
    Al Malin

  • Creating a pdf file of datatable from Jsf page

    Hi ,
    I want to prepare a pdf file of a data table and store at some system loaction from a Jsf page. How can this be acheived? Any example would be a great help.
    Thanks,

    hi here this adress http://displaytag.homeip.net/displaytag-examples-1.1/example-export.jsp with display tag you can export import your datatable to excel or pdf format.

  • Moving document using workflow from sub site to site collection

    Hi,
    I was looking for steps to move documents from sub sites to site collection or from sub site to sub-site in SharePoint 2013. I tried with reusable workflow but unable to set the target library which is in site collection level. Its not listing down the site
    collection libraries. It is showing libraries in sub site.
    Any ideas how it can be done by workflow? or any other approaches there ?
    Your suggestion would be appreciated.
    Thanks., Prakash

    Hi,
    According to your post, my understanding is that you wanted to move document from one site to another site using workflow.
    There is no out of the box action to achieve it in SharePoint.
    However, there is an avaiable activity Copy List Item Extended Activity in the CodePlex, you can have a look at it.
    http://spdactivities.codeplex.com/
    Note: the activity should be used in the SharePoint 2010 workflow platform.
    We can also use the site content and structure to achieve it(within the site collection ) .
    Make sure you have following features activated:
    Site Collection feature: SharePoint Server Publishing Infrastructure
    Site Feature: SharePoint Server Publishing
    Then go to: Site Actions >> Site Administration>>Content and Structure 
    Please refer to 'Move items' topic in this post
    http://office.microsoft.com/en-us/sharepoint-server-help/work-with-site-content-and-structure-HA010131723.aspx
    What’s more, we can also achieve it programmatically.
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/139e54de-bfa3-47b2-a56b-641830f76a0c/move-folders-and-items-across-diferent-sites-collections?forum=sharepointdevelopmentprevious
    http://www.codeproject.com/Articles/408817/Workflow-to-copy-a-file-from-one-site-to-another-s
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Controlling page setup properties from JSF page

    Hi there :)
    How to control print properties like size,margins on left,right,top,bottom,header,footer etc in page setup through jsf page?
    Thanks in advance.
    Cheers.

    Not.

  • YouCam video won't play - only audio. Used link from apps page. Can see screen capture.

    Hi there,
    We recorded a 1 minute video using Cyberlink Youcam (the one on the 8.1 apps page, as opposed to the one with shortcut on the main desktop page - Youcam5.) We can see te screenshot of the video, and hear the audio for entire duration of recording, but the video screen is only green. Help please!
    Amber
    This question was solved.
    View Solution.

    Hi @amberdag,
    Welcome to the HP Forums!
    I would like to take a moment and thank you for using the forum, it is a great place to find answers. For you to have the best experience in the HP forum, I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I understand that when you tried to playback your recording from YouCam 5, you can hear the audio, but the screen remains green.
    Have you done all your Windows updates?
    Is you Direct X, Adobe flash player and or Direcrt X up to date?
    Here is a link to How To Fix Green Screen Video Playback in YouTube in Windows 8.1 (from social.technet.microsoft.com) that should help you to overcome this issue.
    Here is a YouTube video that may also aid with this difficulty.
    YouTube Green Screen Playback Problem FIX
    Please let me know the outcome.
    Sparkles1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom right to say “Thanks” for helping!

  • Problem opening popup from jsf page....

    Hi to all....i have a problem, i'm trying to open a popup window using "outputLink".
    My code is:
    <h:outputLink value="#" onclick="window.open('#{appManager.basePath}/admin/selectCollection.jsf','','width=600, height=400, resizable=yes, fullscreen=no, menubar=no, toolbar=no, status=no, scrollbars=no, location=no')">
         <h:outputText value="#{bundle.selCollection}"> </h:outputText>
    </h:outputLink>
    The "window.open" works perfectly, but the parent window shows the page "Directory Listing For /" with the list of directories of my root project...
    What is the problem?

    try to use the popupFrame component of jenia4faces library (http://www.jenia.org).
    Is a good solution for popups problem

Maybe you are looking for

  • Auto create request by reading a row in MS SQL table?

    Auto create request by reading a row in MS SQL table? If all required data for a particular request type were included in a row of a MS SQL db table (staging table), could a request be created using a db adaptor?  Or is web services the only option t

  • Trying Sony DCR-TRV16E as pass-through for VHS to iMovieHD5

    Hello, I've used the Sony DCR-TRV16E as pass-through for VHS to Nero 6 on a PC before without any problems, and Skype on the iBook running OSX 10.4.11 is happy with the camcorder showing the VHS tapes, but iMovie just tells me "Camera No Tape". I've

  • Parameters in a OleDb Command Transformation

    Hi there, In order to prevent lookup errors in a lookup transformation, I've decided to go for an OleDb Command Transformation. This transformation should check the lookup and, if it turns out to be null, ir returns a dummy value. Otherwise, it would

  • Vbscript, wsh or batch? Unsure which will work.

    I've been trying to find something for a solution and the more I look the more confused I get. I tried a batch file, but can't get what I want. I need to map a temporary drive, open internet explorer with a specific folder\html file, allow user to br

  • Equium L10 - Is running very slowly

    I have a Toshiba Equium L10 (496MB RAM, 1.5Ghz celeron M Processor, 37.2GB HDD) It has been running very slowly for a while now and am getting really annoyed with it. It takes like 8 minis for the desktop to load plus a few more mins for the programs