How to start a background engine

When I use wfbkg.sql to start a background engine, it says wf_engine.Background has not been identified. What should I do? And is it necessary to use background engines?
thanks,
Alice

Hi,
What version of workflow are you using? What user are you running the script as?
In standalone workflow, login as your workflow user (default user is owf_mgr but this can change during installation), and you should be able to run it. Either that or just run
exec wf_engine.backgroundfrom SQL*Plus.
In Apps, you should schedule the job through concurrent manager as Workflow Administrator.
You only need to run a background engine if you have any processes which are not going to timeout, defer to the background, or get stuck (where the correct path cannot be determined). If you aren't deferring or having timeouts, then you don't need to run a background engine at all - my first multi-million pound Workflow implementation didn't have any background engines, but this is more the exception than the norm.
HTH,
Matt
Alpha review chapters from my book "Developing With Oracle Workflow" are available on my website:
http://www.workflowfaq.com
http://forum.workflowfaq.com

Similar Messages

  • Starting Workflow Background Engine

    When grant a role to a user in E-BS using "User Managment responsibility", I get this waring
    Updates to Role data will not be visible in the application until the following processes are started : Workflow Background Engine
    1. How does one start Workflow Background Engine?
    2. Will bouncing the server going to give that role to the user?
    regards, Yora

    Updates to Role data will not be visible in the application until the following processes are started : Workflow Background Engine
    1. How does one start Workflow Background Engine?Please see this thread for the same issue -- Workflow Agent Listener and Workflow Background Engine
    2. Will bouncing the server going to give that role to the user?Yes.
    Thanks,
    Hussein

  • How to hide report background engine window

    hi
    i m using reports6i and when i run a report thorugh forms,reports background engine window also invoke and i want to hide that winodw .any one know how to hide report background engine or is this possibl. if so plz let me how to apply this.
    thnx in advance

    Hi,
    call report using this code
    begin
         srw.run_report('report='||path_forms('R')||'SUB_LEDGER_BALANCE.rep
    L=' || :control
    || ' cdate=' || to_char(:cdate));
    EXCEPTION
    when srw.run_report_failure then
    srw.message(30, 'Error runing reports.');
    raise srw.program_abort;
    end;
    if u use this code for calling report then report background engine window not open also u can open multipul report in same time
    Rizwan Shafiq
    www.rizwanshafiq.blogspot.com

  • How to use Workflow Background Engine in Oracle Apps?

    I have created the development of a custom workflow,tested it in Developer studio in Workflow administrator and has been working correctly. I was hoping to implement this workflow using Workflow background process Concurrent request and move to production.Unfortunately when submititng the concurrent request I am not receiving any notification eventhough all the time Concurrent request always completes normal.(Also when submitting as concurrent request workflow is not prompting for the itemkey). Is it not possible to implement a workflow in the application using background concurrent process? Any help is appreciated.

    Please note that Workflow Background engine is used to process workflows that are in deferred status. It is not used to launch the workflow. You will have to write your own code to launch the Workflow using one of the following methods.
    1. Use WF_ENGINE.CreateProcess and WF_ENGINE.LaunchProcess APIs.
    2. Register a Business Event, create a subscription to the event to launch the workflow and raise the Business Event from your code.
    Workflow Background Engine has parameters such as Itemtype, Min and Max Thresholds, Process Deferred, Process Timeout and Process Stuck... which basically determine the type of background work it has to do.
    Please refer to Workflow Developer Guide on how to launch Workflows and the uses of Workflow Background Engine.
    Thanks
    Vijay

  • How to close "Reports Background Engine" automatically

    Dear Sir,
    I wanna close "Report Background Engine" automatically after closing the report.
    I tried to add the following parameter to close it in the caller form, but it didn't work:
    add_parameter(p1, 'oracle_shutdown', TEXT_PARAMETER, 'Yes') ;
    Waitting for Help!

    Hi,
    I think the problem might be with oracle_shutdown being in small case letters or you are using a version of forms6 or 6i that this line doesn't work due to a bug via Oracle in the engine ..
    Here is my line to shut down the report background engine.
    Add_Parameter(pl_id,'ORACLE_SHUTDOWN',TEXT_PARAMETER,'Yes');
    Thanks
    Mary Santry

  • How to Hide Report Background Engine

    Hi, can you help me on my problem. What should I do, to hide the Report Background Engine when the report is running.
    Thanks in advance!
    Eric
    null

    Hi,
    call report using this code
    begin
         srw.run_report('report='||path_forms('R')||'SUB_LEDGER_BALANCE.rep
    L=' || :control
    || ' cdate=' || to_char(:cdate));
    EXCEPTION
    when srw.run_report_failure then
    srw.message(30, 'Error runing reports.');
    raise srw.program_abort;
    end;
    if u use this code for calling report then report background engine window not open also u can open multipul report in same time
    Rizwan Shafiq
    www.rizwanshafiq.blogspot.com

  • How avoid multi reports background engine (D2K6I + patch7  C/S)

    after Developer tools migrate from D2K60 to D2k6i (with patch7), if call multi reports with ASYNCHRONOUS comm mode from forms, these will have multi reports background engine will startup, so need more session will connect to database, this is my need.
    So I need have method to avoid startup multi reports background engine.
    Not suggest me with SYNCHRONOUS comm mode or automatic close report background engine. the above two methods are difficulty to carry through for me.
    Thanks & test regards!

    Before developer tools migration, When run a set of reports with ASYNCHRONOUS comm mode, only one reports background engine startup, and all report as queue requests in the reports background engine, this is my need. I don't want any change because developer tools migration
    Please give me your idea, Thanks again.

  • How to start work flow agent listener and work flow background engines R12

    Hi,
    I need to start work flow agent listener and workflow background engine in R12.1.3. Could you please specify how to start a workflow agent listener and workflow agent background engine.
    Please send me link if any documents are there .
    Best Regards,
    Anil

    I need to start work flow agent listener and workflow background engine in R12.1.3. Could you please specify how to start a workflow agent listener and workflow agent background engine. How to start the Workflow Deferred Agent Listener andWorkflow Java Deferred Agent Listener? [ID 548918.1]
    Please send me link if any documents are there . Please search the forum before posting similar questions.
    http://forums.oracle.com/forums/search.jspa?threadID=&q=How+to+start+Workflow+Agent+Listener&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    http://forums.oracle.com/forums/search.jspa?threadID=&q=How+to+start+Workflow+Background+process&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • 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

  • Workflow Background Engine Down

    Hi all
    can any one help me out how to make Workflow Background Engine UP when it is Down.
    Navigation to find it Out is
    (N)>Workflow administrator web applications---->Oracle Applications Manager----> Workflow manger
    Thanks in Advance
    background engine

    We have EBS version 12.1.3 and it is running fine. But in workflow, Background Engine is down. Please help How I can start this.Pleas see the below values.
    Notification Mailers - Up
    Background Engines - Down
    Agent Listeners - Up
    Purge - Up
    Service Components - Up
    Control Queue Cleanup - Up
    Please let me know the reason for this and how this will affect the instance.Was this working before? If yes, any changes been done recently?
    Can you find any errors in the Workflow/Database log files?
    Please go through (Introductory Questions About Workflow Background Engine [ID 156187.1]). Also, please run the test in (12.0.6+: Oracle Workflow Cartridge (WF): Background Engine Setup Diagnostic Test [VIDEO] [ID 1174449.1]) and see if it returns any error/warning messages.
    Thanks,
    Hussein

  • 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.

  • 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.

  • Reports Background Engine - How To Automatically Close?

    I use Developer 6. When I run a Reports, using RUN_PRODUCT built-in from a menu, a REPORTS BACKGROUND ENGINE starts up automatically, and it opens a session with the server, and runs reports. Since it is in another session, I cannot use uncommitted records created in my Forms Runtime session in any of the reports.
    Further, when I exit out of my application, this REPORTS BACKGROUND ENGINE stays put. The user is expected to physically go and close this window, and consequently the Oracle session at the server end.
    I've been unsuccessful in figuring out how to close this window and exit from my Application.
    Could any one enlighten me on how to close this REPORTS BACKGROUND ENGINE while exiting out of my application programatically please?
    Regards,
    Ram

    hello,
    you can use the ORACLE_SHUTDOWN parameter to shutdown the RBE.
    regards,
    the oracle reports team --pw                                                                                                                                                                                                                                       

  • [SOLVED] How to get NetworkManager start on background during boot?

    NetworkManager has always taken relatively long time to start during boot, presumably waiting for wlan to connect.
    $ systemd-analyze blame
    7.682s NetworkManager.service
    Previously I was able to get it to start on background by removing /etc/systemd/system/multi-user.target.wants/NetworkManager.service
    This prevented multi-user.target from waiting for NM to start and it would continue to connect on background while my boot finishes.
    However, after upgrade to networkmanager-0.9.10.0-2 that doesn't seem work any more.
    If I remove the .service file from multi-user.target.wants/, NetworkManager doesn't start during boot at all.
    enabling NetworkManager.service creates these symlinks:
    # systemctl enable NetworkManager
    Created symlink from /etc/systemd/system/dbus-org.freedesktop.NetworkManager.service to /usr/lib/systemd/system/NetworkManager.service.
    Created symlink from /etc/systemd/system/multi-user.target.wants/NetworkManager.service to /usr/lib/systemd/system/NetworkManager.service.
    Created symlink from /etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service to /usr/lib/systemd/system/NetworkManager-dispatcher.service.
    looks like enabling any other basic systemd unit links the .service file to multi-user.target.wants/ as well..
    How can I enable NetworkManager.service during boot without multi-user.target.wants/, and get it to start on background again?
    any ideas appreciated :)
    Last edited by ooo (2014-08-03 12:13:28)

    Okay, looks like this can be resolved by simply changing the NetworkManager.service type from dbus to forking.
    $ systemd-analyze blame
    173ms NetworkManager.service
    Here's the modified service file if anyone's interested:
    place it in /etc/systemd/system/NetworkManager.service
    [Unit]
    Description=Network Manager
    Wants=network.target
    Before=network.target
    [Service]
    Type=forking
    PIDFile=/var/run/NetworkManager.pid
    BusName=org.freedesktop.NetworkManager
    ExecStart=/usr/bin/NetworkManager --pid-file=/var/run/NetworkManager.pid
    # NM doesn't want systemd to kill its children for it
    KillMode=process
    [Install]
    WantedBy=multi-user.target
    Alias=dbus-org.freedesktop.NetworkManager.service
    Also=NetworkManager-dispatcher.service
    You need to disable NetworkManager.service before creating the file and enable it after so that systemd links the file from /etc/systemd instead of /usr/lib/systemd,
    there may be simpler way but I can't be bothered to go through systemd manuals any more.
    Note that this will probably break any systemd .service that actually requires network, although that was the case with my previous workaround as well.
    I won't guarantee this will work for you and won't set your machine on fire. If you have issues, simply remove the file and re-enable to go back to default

  • How to turn OFF Reports Background Engine?

    I know how to programatically invoke the RBE [win_api_shell.winexec('c:\orant6.0\bin\rwrbe60',WIN_API.SW_SHOWMINIMIZED);]
    But the RBE stays out there after the report runs. Does anyone know a way to TERMINATE it programmatically?
    Same question for the Oracle Graphics Background Engine.

    Add this parameter:
    ADD_PARAMETER ( pl_id, 'ORACLE_SHUTDOWN',
    TEXT_PARAMETER, 'YES' );
    null

Maybe you are looking for

  • PROBLEM CONNECTING MY BEFW11S4 TO THE INTERNET

    OK FIRST OFF I GET IT USED OFF EBAY the guy said it came from his job.BUT OTHER THAN THAT.I CONNECTED THE 2 ETHERNET Cables one from the modem to the router and the other from the router port 1 to my laptop.i keep getting the router cannot connect to

  • Parallel Port (Mac OS 9)?

    I am putting together an electronic circuit for controlling a stepper motor. The board includes an option for a parallel port as typically found on older PCs. Is there a product available that would give me a parallel port on my G4 tower that I could

  • Ignore DTD declaration in incoming XML message

    Hi, I have an issue where I am receiving an incoming XML message which starts with a DTD declaration. This causes an issue with the XML parser step in the mapping because the parser attempts to resolve the DTD location. However this location is exter

  • Where is the DVD menu?

    Reading from Apples page about Compressor 3.5 new features "Blu-ray disc and DVD burning2 You can now easily burn a Blu-ray disc or a DVD directly from Compressor. Quickly add a menu to your disc by choosing one of the beautiful Apple-designed HD or

  • What games can I purchase for an IPOD NANO 1gb?

    Are there any games available to purchase for an Ipod Nano 1 gb?