Jasper report integration in Oracle BPM

Hello friends
We'r working on an application using Oracle BPM 11g (11.1.1.5.0)
What we are looking for is to have the ability to generate reports using iReport (jasper).
Using help from the previous thread below ,we have been able to call a report without any input parameters and by calling the servlet directly.
Re: generating jasper reports in Oracle BPM
What we're trying to do here is to have some input parameters for our report.
I'm trying to do this using a java class, but haven't found any sample to show me the way and samples I've found didn't work in Oracle BPM
Can anyone help me with this?
Thank you

Hi
I have finally solved my problem.
The problem was that I could not send the input parameter to the servlet.
Here is my code:
in my java class:
public String actionRunReport() throws Exception {
        // Add event code here...
        String emp = null;
        if (getEmployeeID().getValue() != null) {
            emp = getEmployeeID().getValue().toString();
        } else {
            emp = "1";
        FacesContext ctx = FacesContext.getCurrentInstance();
        HttpServletRequest request =
            (HttpServletRequest)ctx.getExternalContext().getRequest();
        HttpServletResponse response =
            (HttpServletResponse)ctx.getExternalContext().getResponse();
        request.setAttribute("empId", emp);
        request.getRequestDispatcher(response.encodeURL("/printrrportservlet")).forward(request,
                                                                                        response);
        response.flushBuffer();
        ctx.responseComplete();
        return null;
    }in my servlet:
public void doPost(HttpServletRequest request,
                       HttpServletResponse response) throws ServletException,
                                                            IOException {
        response.setContentType(CONTENT_TYPE);
        //OutputStream ouputStream = null;
        try {
            Connection conn = Connect.createConnection();
            String reportSource = "C:\\reports\\templates\\guarantees.jrxml";
            InputStream input = new FileInputStream(new File(reportSource));
            JasperDesign design = JRXmlLoader.load(input);
            JasperReport report = JasperCompileManager.compileReport(design);
            Map<String, Object> params = new HashMap<String, Object>();
            params.put("reportTitle", "Guarantees");
            params.put("author", "Milad");
            params.put("startDate", (new java.util.Date()).toString());
            params.put("empId", request.getAttribute("empId"));
            JasperPrint jasperPrint =
                JasperFillManager.fillReport(report, params, conn);
            OutputStream ouputStream = response.getOutputStream();
            JRExporter exporter = null;
            response.setContentType("application/pdf");
            exporter = new JRPdfExporter();
            exporter.setParameter(JRExporterParameter.JASPER_PRINT,
                                  jasperPrint);
            exporter.setParameter(JRExporterParameter.OUTPUT_STREAM,
                                  ouputStream);
            exporter.exportReport();
        } catch (Exception ex) {
            ex.printStackTrace();
    }In jspx page::
<af:commandButton text="Run report" id="cb1"
   action="#{printBean.actionRunReport}"/>in web.xml:
<servlet-mapping>
    <servlet-name>PrintrRportServlet</servlet-name>
    <url-pattern>/printrrportservlet</url-pattern>
</servlet-mapping>

Similar Messages

  • Jasper Reports Integration - beta release

    Hi guys,
    I have finally found the time to release the Jasper Reports Integration package for producing print ready reports.
    You can find all the details here: http://daust.blogspot.com/2010/01/jasper-reports-integration-beta-release.html
    Anybody is welcome to try the software and join the beta program.
    Thanks,
    ~Dietmar.

    Hi Wolfgang,
    Now it works as expected!That's the way I like it ;).
    I would like to save the report in a user table with a blob field, how can this be achieved?Easy, this is even already part of the test application.
    On the Report Tester tab you will find a button called "Get report as BLOB, then display". It calls the following page process:
    DECLARE
       l_blob        BLOB;
       l_mime_type   VARCHAR2 (100);
    BEGIN
       xlog ('PRC_GET_REPORT_TUNNEL', 'url (orig):' || :p5_report_url);
       -- generate the report and return in BLOB
       xlib_jasperreports.set_report_url (:p5_jasper_report_url);
       xlib_jasperreports.get_report
                                    (p_rep_name               => :p5_rep_name,
                                     p_rep_format             => :p5_rep_format,
                                     p_data_source            => :p5_data_source,
                                     p_rep_locale             => :p5_rep_locale,
                                     p_rep_encoding           => :p5_rep_encoding,
                                     p_additional_params      => :p5_additional_params,
                                     p_out_blob               => l_blob,
                                     p_out_mime_type          => l_mime_type
       -- set mime header
       OWA_UTIL.mime_header (ccontent_type      => l_mime_type,
                             bclose_header      => FALSE);
       -- set content length
       HTP.p ('Content-length: ' || DBMS_LOB.getlength (l_blob));
       OWA_UTIL.http_header_close;
       -- download the file and display in browser
       WPG_DOCLOAD.download_file (l_blob);
       -- release resources
       DBMS_LOB.freetemporary (l_blob);
       -- stop rendering of APEX page
       apex_application.g_unrecoverable_error := TRUE;
    EXCEPTION
       WHEN OTHERS
       THEN
          xlog ('PRC_GET_REPORT_TUNNEL', SQLERRM, 'ERROR');
          RAISE;
    END;Once you have the blob you can store it in a database table, done!
    There is only one tricky part. Should the Tomcat throw an exception then it will return a html error page (http code 200=ok). The request is perfectly valid but a human can see the error message.
    The API should throw an exception on that. A bit tricky once other J2EE servers are supported or the error messages vary.
    BTW: do you plan any additional features ?Perhaps, what are you looking for?
    Cheers,
    ~Dietmar.

  • Integration between Oracle BPM and RTD(rule engine)

    Hi,
    I have Oracle BPM - 10.3.2.0.0  Build 100141
    Oracle RTD(rules engine) - 3.0.0.1
    Please let me know whether the versions of RTD and Oracle BPM mentioned above can be integrated with each other.
    How the interaction between Oracle BPM enterprise and RTD will take place and how the data flow takes place between them.
    Thanks in advance

    Check this, u can get some info
    Re: What is a recommended approach to integrate Oracle BPM 10R3 and  Oracle UCM

  • Jasper Reports Integration - JNDI datasources

    Hello
    I wish to use Jasper Reports to create a few reports with Bar Charts which I send to users via emails from APEX.
    The system versions I am running is:-
    Product Build: 4.1.1.00.23
    CORE 11.2.0.1.0 Production
    NLSRTL Version 11.2.0.1.0 - Production
    Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    TNS for 64-bit Windows: Version 11.2.0.1.0 - Production
    I been installing Jasper Report following http://www.opal-consulting.de/apex/f?p=20090928:4
    In following the instructions I got as far as Tomcat installation point 7 where the JNDI datasourcse is defined.
    I the installations file \conf\Catalina\localhost\JasperReportsIntegration.xml should of been created. In case it has not
    Have I misunderstood the instructions?
    Thanks, Pete

    Hi Pete,
    Yes, you should install iReport to design your reports.
    I'm not completely sure about what you mean with "the format of the classpath". I guess you refer to the "classpath" tab in Tools > Options (?).
    A default installation of iReport does not allow you to create datasources of type Oracle JDBC driver. The JasperReportsIntegration kit includes a lib folder that contains two .jar files (ojdbc14.jar and orai18n.jar). Copy these two files to the following location: C:\Program Files\Jaspersoft\iReport-4.6.0\ireport\modules\ext. Then in iReport, go to Options > Tools and hit the classpath button. Click the button "Add JAR" and select the two .jar files from above. These steps make it possible to create a new datasource of type Oracle JDBC driver. I hope this answers your question. If not, provide more information and I'll get back to you...
    Don't mind the JasperReports Server by the way. The JasperReportsIntegration kit includes all the files you need to install and configure JasperReports.
    Goodbye,
    Nick

  • JSP Integration with Oracle BPM 11g

    Hi,
    Could you let me know, How to Integrate JSP with Oracle BPM 11g.
    Thanks

    Thanks for the information.
    But i was looking at how to integrate JSP with oracle bpm 11g.
    IN Oracle BPM 10gR3, We will integrate jsp in screenflow. In 11g, I am not sure how will we integrate JSP.
    Could you please let me know how to integrate JSP with BPM 11g. Thanks!.

  • Integration between Oracle BPM and Oracle UCM

    Hi
    I have a requirement how to integarte between Oracle BPM and Oracle UCM.
    Detailsabout the problem:
    Once user start the process and want to upload the document in the same process, the document should be uploaded into UCM and similarly user wants to update some document in the middle of the process , user can check-out the document and check-in the document (Docuemnt present on Oracle UCM).
    Please guide me what is the approach for that ?
    Thanks for your help in advance.

    Check this, u can get some info
    Re: What is a recommended approach to integrate Oracle BPM 10R3 and  Oracle UCM

  • Jasper Report  Integration Examples

    Hi
    Can any one of you send examples/source/link that shows how to implement jasper report in JAVA .I tried it in google.but i won't wrok. A simple and detailed example that shows finally how a PDF is generated

    Hi
    Can any one of you send examples/source/link that shows how to implement jasper report in JAVA .I tried it in google.but i won't wrok. A simple and detailed example that shows finally how a PDF is generated

  • Apex and Jasper Report Integration

    Hi all,
    If someone was interested to try another way for pdf generation from an apex application can try our Report Chunker based on Jasper Report and now avaiable to download on :
    [http://sourceforge.net/projects/reportchunker/]
    The latest release includes an APEX DEMO APPLICATION.
    Any feedback will be welcome.
    Edited by: NeOGeO on 23-set-2008 1.28

    A few points here.
    Documentation:
    You need to state what permissions are required.
    eg create table, create sequence, create trigger, read/write directory.
    You should also mention the authentication method you use.
    Fortunately I could figure that out myself.
    Now bearing in mind I am your typical target audience, I have no knowledge of Jasper reports, and very little knowledge of java and xml. So I'm now stuck as I don't know what to use for the xml layout or how to write my report.
    At least provide an example xml layout, a example report and a link to where the reports cab be obtained.
    If we need to have anything on the system before we start (eg jasper reports) then this should also be stated (including minimum required version)
    Thats it. Unfortunately I can't go any further until I know more.

  • Integration between Oracle BPM 10.3 and UCM 11g

    I need to use UCM to manage documents created during a BPM workflow. Instead of attaching these files to the BPM process instance i must put them into the content repository, organizing the folder structure.
    So all i need to use is: Search, GetInfo, and CheckIn functionality.
    I was trying importing RIDC jars into BPM but it was a very bad idea because of many errors at the introspection time.
    So I read there was a Oracle Content Integration EJB, but didn't fount id anywhere...
    The last solution I'm afraid I ought use are Web Services, or a second EJB layer that I should create myself, between BPM and UCM servers.
    Since I hope could use WS, is there such guide to use it, some samples using services?
    I'll trust in your help!!! Thanks in advance...
    Antonio Russo

    11g relies upon SOA suite components for much of the underlying infrastructure.
    Interactive activities are no longer modeled using the simple JSF based ALBPM style screen flows and UI editor. In 11g the human workflow engine is used for this purpose - it handles user routing, notifications, data associations, etc. The actual implementation is done in ADF using task flows. This gives you more flexibility, with the caveat of a bit more complexity.
    11g is a "codeless" environment. ALBPM style Automatic activities and PBL code are a thing of the past. Business logic is now performed either using Business Rules, or by calling Web Services. There are also adapters for accessing the database, FTP, and reading/writing files on the filesystem. Data flows through the process in the form of XML, some of which is abstracted away from the developer in the form of Business Objects in the catalog. However, knowing XML and XML related technologies is now much more important (XSD, XPath, XSL, etc.)
    The Eclipse style IDE is no longer used for design time. JDeveloper is the new IDE. You can also use BPM composer for some online (it's a web based app) project design and publishing.
    The Process Administrator app is now gone - that functionality is replaced by fusion middleware control (Enterprise Manager) and the workspace itself.
    More details can be found in the documentation:
    http://download.oracle.com/docs/cd/E14571_01/soa.htm

  • Primevera 6:Installation guide and Integration with Oracle BPM 11g

    Hi All,
    I working on BPM 11g. I want to integrate Primevera 6 v8.2 or higher version of Primevera with BPM 11g can any one help me out in this issue.I am unable to understand where to start from what i have to install first.
    I have already working environment on BPM 11g now to integrate Primevera what i have start with.Please help me out to move forward.If one has worked on this who has any screenshots please send me

    If your company has a maintenance contract with Oracle, you should be able to find more information in the Knowledge Base.

  • Jasper Reports Application Deployment to Oracle

    Hello everyone,
    I am deploying my project with jasper reports application to oracle. I have placed the jasperreports jar to .../10.1.3/j2ee/home/applib. When I do that I discovered that the commons-logging-1.0.2.jar of jasper is having conflict with oracle used commons-logging.jar. What is the best way to resolve this?
    For the mean time, I edited the server.xml so that only the jasper jar wil be loaded and I can see if my application is working. I does loads and executes but encounters the ff. errors:
    09/01/28 20:56:12 net.sf.jasperreports.engine.JRException: Error loading
    expression class : CashCollectionPrint_1226914856343_228291
    Is it because my application doesn't have a policy grant to load class files? I have checked the jazn.xml files and i don't know how to add policy grant. If that is really what's causing the jasper error, can anyone help me on giving my application a grant to load class files?
    Here are my environment details:
    Jasper reports version 2.0.4
    OS: Linux x86 (32 bit)
    DB: 10g R2
    The server instance is RUP6
    Thank you so much and I hope you can guide me in deploying my application.
    Rgs,
    Ish
    Edited by: user10226882 on Jan 29, 2009 9:36 AM

    This is the oracle reports forum. If you need information about jasper-reports you should post the question in an appropiate forum.

  • Primavera EPPM 8.2 and Oracle BPM 11.1.1.6

    Hello Forum,
    I'm a specialist in Oracle BPM and was instructed with a task to integrate EPPM 8.2 with Oracle BPM solution. So I am new to all this Primavera stuff but glad to learn it.
    According to EPPM 8.2 it can only be integrated with Oracle BPM 11.1.1.5 release (what I did). Could you tell me if it is certified to integrate with the latest release of Oracle BPM and WebCenter Content which is currently 11.1.1.6 ?

    It is certified to work only with BPM 11.1.1.5 and not the latest version :(. You can track http://docs.oracle.com/cd/E25030_01/index.htm to see if the support has been added.
    Sachin Gupta

  • LDAP Intigration with Oracle BPM 10.3.0.0.0

    Hi,
    I want to know about integration with LDAP connectivity with Oracle BPM suite.
    We don’t have any knowledge between the integration on Oracle BPM suit & LDAP.
    Please do the needful on the same as soon as possible.
    With Best Regards,
    Ratna Prasad.

    I configured LDAP directory, and I was able to see the participants. However the group information is not retrieved properly. Here is the error
    (cont) ] Main: Invalid characters found for attribute [OU name].
    [     (cont)     ] Main: Detail:Attribute [OU name] cannot be assigned the following value: [Dev/Test].
    [     (cont)     ] Main: The invalid character is: [].
    [     (cont)     ] Main:
    [     (cont)     ] Main: fuego.directory.exception.InvalidAttributeValueException: Invalid characters found for attribute [OU name].
    [     (cont)     ] Main: Detail:Attribute [OU name] cannot be assigned the following value: [Dev/Test].
    [     (cont)     ] Main: The invalid character is: [].
    [     (cont)     ] Main:
    Any ideas on what can be the possible solution?
    Thanks

  • Architecture of Oracle BPM

    Hi All,
    I'm writing MA Thesis on BPM systems. I'm comparing some implementations that support BPMN2.0.
    1. What I need is the Oracle BPM archtecture overview.
    1.1 What elements are a part of this product
    1.2 What elements build the infrastructure nessesary to use Oracle BPM
    2. What are ways to use Oracle BPM in my sample j2ee application. I wont to have my own interface and update state of processes and make some of the application parts get notified when process state reaches some point, etc. Is all written in http://download.oracle.com/docs/cd/E17904_01/integration.1111/e10224/bp_workflow.htm#BACHEFDH ???
    I suppose all that info is on documentation pages of Oracle SOA Suite and Oracle BPM Suite. The problem is I would need to dig through ALL that documencation to choose only parts that I need. I do not wont to become Oracle products expert, that comes in future not now:)
    So I kindly ask You to help me finding the range of documencation and it's chapters that would give me a good Overview of Architecture and possible integrations of Oracle BPM 11g, I need BPMN2.0 working:)
    Thx to All that reply.

    Hello -
    First of all the best for your Thesis and appreciating for selecting Oracle BPM.
    Check this : http://www.oracle.com/technetwork/middleware/bpm/obpm-articles-086639.html
    Most of the articles are by Mariano Benitez - BPM Architect.
    BR,
    Justin.

  • Integrating Jasper Reports with BPM Inbox

    BPM Dashboard has click able graphics which drill down the Inbox with the filtered results.
    Now we are using Jasper Reports for building Dashboard. We want to implement the same type of drill down functionality with Jasper Charts.
    Does anyone know how to filter the inbox like BPM Dashboard does ?

    More comments...
    When clicked on a chart in BPM Dashboard, it makes an AJAX call to get the updated chart information. While getting the chart information the call also updates the filter criteria in a predefined View. This view should have the required Filter criteria defined.
    After getting the response from the server.. Dashboard re-directs the parent window to a URL which displays the Filtered results.
    Now we are checking on how to make this AJAX call from Jasper report.

Maybe you are looking for

  • In Material master safety stock field is in display

    Hi, As a consultant i am able to change the Safety stock field in MRP view in the test system and Production also,but for the user this particular field is in display mode wheras other field in the MRP view user is able to change. Kindly help me if,t

  • After upgrade 12.1 2 invalid objects found

    Hi, after we upgrade from 12.0.6 to 12.1 qwe found 2 invalid objects show below ARP_ACCT_MAIN AP_ACCOUTING_EVENTS_PKG any idea pleas advice.

  • Song credits and album in iTunes Store

    Hello everybody, I have 2 song credits in my Apple ID account, but I know that they can be used only for individual songs, not whole albums. So, can I buy two random songs from desired album (using these credits) and then purchase rest of album (usin

  • Street numbers in WPF Bing map control

    Hello. I have a problem with map control. I can`t find information about how to display street (building) numbers like in Bing maps on the off site ( http://bing.com/maps) Can you help me?

  • Swing Applet - Internet Explorer - Focus issue - tool tips

    Hi , We are using Swing applet in IE Browser , except this swing component rest of the components in the browser are HTML/DHTML components. and we are having issue focus issue with this swing components , once immediately after launching the swing ap