Deferring to the Background Engine

Hi,
We are using standalone workflow. We have an activity that we defer to the background engine by setting the cost to be above the threshold of 50. We have submitted a DBMS_JOB which calls
wf_engine.background(null,50,null,true,false);
every 5 minutes. This does indeed process the deferred activity. We have a situation however where we would like to launch 4 processes each of which has a deferred activity. The background engine processes each activity sequentially whereas we would like the 4 processes to be processed at the same time. Is this possible?
Thanks,
Gavin

Gavin,
You could use the "deferred tread" function from the standard wordflow lib (WF_STANDARD) in stead of raising the costs to above 50. After this deferred thread function you can model paralel functions. If you would like to wait for all parallel processes to complete before continueing your flow you should also use the "and" function also from the standard workflow lib.
Greetings,
Ron

Similar Messages

  • Using timeout items and running the background engine

    Hi all!
    I tried to read all the information about timeouts and engine, but I think I don't understand anything.
    I want to use a loop, that after every 4 minutes runs the given plsql code until 15 times.
    There are 4 different result. 1: continue the loop, 2: good result, 3: bad result, 4: loop reachs max running count (15).
    1. I don't know how to set the result code.
    2. How start the background engine. Is it startable from my plsql code? I have to start the engine at every item_type and item_key pair, or I have to start it only once?

    You need not handle Loop Max out in your result. You can handle that usng Loop Counter standard activity that you can find in the WF Builder. Insert this counter in the Loop.
    Write a simple Function Activity that you want to be executed every 4 minutes. That also sits in the Loop.
    Now insert a WAIT activity in the loop that should wait for 4 minutes relative to the current completion time. So, that loop will look like...
    ----> Function ----> Wait ----> Loop Counter ----> (Go back to Function on loop... exit out if maxed out)
    The exit condition transition for the loop occurs from Loop Counter activity.
    You don't need a timeout here anywhere. Running background engine should be purely outside of your code. It is a concurrent program that you can schedule to run at regular intervals for whatever parameter you choose.
    Thanks
    Vijay

  • How to close the report background engine programatically in developer 6.0?

    Friends,
    We have developed our application using Oracle Developer 6.0 as front end and Oracle 9iR2 as a back end.
    whenever the user is opening the application one session is creating after that if he runs any report the report background engine is started and that engine also creating one session. So, unnecessarily two sessions are opening for a single application.
    So, how can we close the report background engine programatically after the report displays all the records?
    Moreover, when the user close the application, the report background engine is still open. the user has to close the report background engine manually.
    so how can we solve this issue?
    Thanks
    Sathyguy

    i got this while searching but its not working.....
    Problem Description
    Starting reports using a RUN_PRODUCT on Windows platforms starts a
    Reports Background Engine (RBE). After leaving the forms application the
    background engine is still running and must be terminated by the user.
    Solution Description
    This is intendet behaviour.
    To close the Background Engine programmatically use the Reports Runtime parameter
    ORACLE_SHUTDOWN. E.g.
    Perform the following actions to stop the RBE when closing the Forms
    application:
    1) Create a dummy report which only does e.g. a SELECT * FROM DUAL
    This report has a DESTYPE=FILE and a DESNAME to e.g. C:\TEMP\DUMMY.OUT
    2) In the POST-FORMS trigger add the following code:
    DECLARE
    pl_id ParamList;
    BEGIN
    pl_id := Create_Parameter_List('dummy');
    Add_Parameter(pl_id,'ORACLE_SHUTDOWN',TEXT_PARAMETER,'Yes');
    Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO');
    Run_product(REPORTS,'<<name dummy rapport>>',SYNCHRONOUS, RUNTIME,
    FILESYSTEM,pl_id,NULL);
    END;
    Explanation
    The Report Background Engine runs separately from the Forms application and
    there is no direct relation between these processes. The Forms should signal
    the RBE that is being closed.
    When the Form is closed the POST-FORM triggers sends a dummy report to
    the RBE. Since the ORACLE_SHUTDOWN=Yes parameter is used after running the
    report the RBE is terminated.
    A small side-effect of the solution is that a small file (5Kb) is created on
    the file-system contaning the output of the dummy report.

  • Closing Oracle Background Engine Window.

    Hello,
    I am working on Oracle Reports 6.0. When I run any report Oracle Background Engine Window opens & show which report is running. But after closing report still that window remains as it is. It there any way to close that window onces I complited report.
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Vijay ([email protected]):
    Hello,
    I am working on Oracle Reports 6.0. When I run any report Oracle Background Engine Window opens & show which report is running. But after closing report still that window remains as it is. It there any way to close that window onces I complited report.
    <HR></BLOCKQUOTE>
    I guess it's designed so that it does not have to reload the Background Engine everytime you run the next report.
    Maybe in your case you do not run reports frequently, but in our office report runs are quite often so it's a feature that is quite welcomed.
    null

  • Report background engine not generated

    Hi Friends,
    I have installed Developer 6i -Forms and Reports.
    When I try to run a report in an aplication after giving parameters in the paraform it gives an error illegal operation for rwbe60 it doesn't generate the background engine and so the report in not run.
    If i run the same report through report builder it runs but no report background engine is generated.
    Pls give a solution uf anyone can.
    Thanks in advance
    Manoj

    Hi,
    Add the following:
    add_parameter(pl_id, 'ORACLE_SHUTDOWN', TEXT_PARAMETER, 'Yes');
    Note, the 'Yes' is case sensitive. The 'y' must be upper case followed by lower case 'es'.
    run_product(REPORTS, '<repname>', SYNCHRONUS, RUNTIME, FILESYSTEM, pl_id);
    Best Regards,
    Arun Malhotra,
    Oracle Support Services

  • Report Background Engine  Crashes

    I have a problem with Report Background Engine. When I try running a report through forms, the Report Background Engine and the Forms Runtime hangs. And If I End Task the Forms Runtime, the forms runtime closes and the background engine shows the report properly. Now I am not able to run reports properly from the Forms.
    In my coding I use RUN_PRODUCT for calling the report from the forms. The O/s is Windows 98.
    Please provide me with a solution asap.

    Please apply latest 6i patchset and try. (Yours is very old. Latest is 6.0.8.0.24. So many bug fixes have gone in since your patchset)

  • Reports Background Engine

    Hello all,
    I'm calling reports (v6.0.8.11) from forms (v6.0.8.11 ) using RUN_PRODUCT, but the background engine is taking an inordinate amount of time to start up, resulting in the first request to run a report coming back with an integration error. Once the background engine is up and running, then I can call reports without a problem.
    To get round this I tried to start the background engine in a pre-form trigger on the form using WIN_API_SHELL.WINEXEC. This resulted in the form itself taking a long time to start up and then the report background engine still took a while before appearing giving me the same problem as earlier.
    This is all on a P3 machine with 120m ram, running windows nt4. Does anyone have any bright ideas?

    We put the background engine into the startup folder in windows to solve this problem and most instance of another one
    We get multiple background engines running when a report is started while the background engine is busy.

  • Error calling background engine!!!

    Hi guys!!
    can you help me???
    Status row for item 'WFEVDEME/PO345345', activity ID '228'
    This is the error when i4m launching the background engine!!!
    The Item Type WFEVDEME doesn4t exists.Why the sqlplus are returning this error????
    cheers

    Hi
    I can4t purge that itemType because is not there, I purge that item type but when i4m lauching the background engine it still make this error...
    ERRO na linha 1:
    ORA-20002: 3101: Status row for item 'WFEVDEME/PO55555', activity ID '228' does
    not exist.
    ORA-06512: na "OWF_MGR2.WF_ENGINE", linha 2753
    ORA-06512: na linha 5
    But that item type dosen4t exists...
    please help me...
    If you are on a Production system and are getting this kind of error, please log an iTAR on Oracle Metalink.
    If this is just a development system, might be just as easy to purge the WFEVDEME itemtype using the wfrmtype.sql script. See the Workflow Guide for details.

  • Report Background Engine - How do I determine where it is located

    We have several servers running Oracle Forms and Reports.
    The person who set up the applications I supported has
    left and no one can tell me which Reports Background
    engine/server my reports are running on. How can I
    determine it and tell them.
    Thank you.
    Bob

    Hi Bob,
    If you are running the background engine (rwrbe60.exe on windows or rwrbe60 on solaris using run_product) then it will be in the same Oracle Home as your Forms installation. However, if you are running with the Reports Server (rwmts60.exe or rwmts60) then there is a server parameter that should be part of your command line. If you are using the cgi and you don't see it, it's likely specified in the key which is defined in your cgicmd.dat file. The cgicmd.dat file is located on the machine where your rwcgi60 executable resides. That server name will match an entry in your tnsnames.ora file located on the same machine.
    Hope that helps,
    Toby

  • Reports Background Engine & ntdll.dll

    Hi all,
    I'm facing a strange problem on some reports.
    When launching (or even closing) a report, setting some parameters (or even leaving the default ones), the background engine crashes and the well-known WindowsXP "..do you want to send information...?" window appears. Clicking on button "Details", I found these informations:
    AppName: rwrbe60.exe
    AppVer: 3.0.0.0
    ModName: ntdll.dll
    ModVer: 5.1.2600.0
    Offset: 000036f7
    <a list of threads with their stack>
    The db referenced by the report is an Oracle10gXE instance. The report is build with OracleForms6i.
    Any suggest would be appreciated.
    Many thanks,
    GB

    dear all
    you can pass parameter from form to report to close report server after close report
    add_parameter(pl_id, 'oracle_shutdown',text_parameter, 'Yes');
    then it will be ok
    good luck
    Message was edited by:
    nim
    Message was edited by:
    nim

  • Automatically close report background engine

    After running a report with a graph in it from Forms using run_product, how can you automatically close the reports background engine and the graphics engine that get left open.
    Thanks!

    Hi,
    If you add another parameter to the parameter list as shown below, it will shutdown the background engine when you close the report.
    ADD_PARAMETER(PL_ID,'ORACLE_SHUTDOWN',TEXT_PARAMETER,'YES');
    Hope this helps,
    Haritha

  • Closing the Background report engine

    I use a menu that can call several reports, and when they open, the Reports Background Engine runs. I understand why it is useful to keep this open while the main app is on, but it does not close out automatically when the app closes. Is there a command that will do this?
    Thanks,
    Sara

    I Guess,
    Add_Parameter(pl_id, 'ORACLE_SHUTDOWN', TEXT_PARAMETER, 'YES') will do (pl_id is the parameter list that you must have created to run each individual report)

  • How to display the output of report(9i) using Report Background Engine

    Hi,
    We are converting the forms and reports from 6i to 9i.
    we could run the report in the browser from form using WEB.SHOW_DOCUMENT built-in, but we are not able to display the report output from form using the Report Background Engine.Let us know if you have any solution for this.
    Regards,
    Pramila.

    Pramila,
    you have to use Reports Server called from RUN_REPORT_OBJECT(). Please see the Reports Integration whitepaper on otn.oracle.com/products/forms. You can either look it up in the Forms 10g collateral seciton or the Forms 9i collateral section.
    Frank

  • Get rig of Reports Background Engine at the bottom of screen

    The Reports Background Engine is automatically placed at the bottom when a report is called from Form Builder. It remains there even if closing the report or exiting out of the application. Is there a way to close it automatically on exiting the application?
    Any solutions?
    Thanks.
    null

    Hi,
    The answer is to use HOST calls:
    host('runrep user/password ...');
    See the details for the runrep command.
    This should do.

  • Specifying the report server, disabling the reports background engine.

    When calling a report from a form, where the desname, destype, deformat is chosen, how do i specify the report server? Also when i run the form and call the report from a button how do I disable the report background engine?
    Many Thanks
    Richard

    hello,
    the server is defined by the SERVER parameter in the parameter list.
    regards,
    philipp

Maybe you are looking for