Possible to call owb process flwo from trigger?

Hi,
We wish to have a trigger which calls a owb process flow.
Is this possible?
Anybody an example?
Using Oracle 11.2.0.3
Thanks
Edited by: user5716448 on 12-Sep-2012 08:53

Hi,
Thanks but
Tried this but got following error
ORA-01919 - role OWB_D_OWBSYS does not exist.
Even tried in the obsys schema
Tried controcl centre owner as OWBSYS ( this is where the wb_rt_api_exec.run_task lives).
declare
   v number;
begin
  -- Test statements here
v := POR_execute_code('OWF_LOCN', 'PROCESS', 'WAREHOUSE_PF/POR7/POR_PF', ',', ',');
DBMS_OUTPUT.PUT_LINE(V);
end;Also tried the api itself - can execute mapping fine but problem with process flow says task not found/check type name and location
tried
works
DBMS_OUTPUT.PUT_LINE('Result: ' || TO_CHAR(owbsys.wb_rt_api_exec.run_task(
'TERMSPRD_DECOM_LOCATION','PLSQLMAP','MAP_POR10', null, null, 1)));
Not working
DBMS_OUTPUT.PUT_LINE('Result: ' || TO_CHAR(owbsys.wb_rt_api_exec.run_task(
'OWF_LOCN','ProcessFlow','POR_PF', null, null, 1)));
Tried WAREHOUSE_PF/POR7/POR_PF and POR_7/POR_PF but still no joy.
Any ideas?
Thanks fort your help so far

Similar Messages

  • How to call OWB Process Flow from APEX?

    Hello.
    I was wondering if there is a way that I can have a OWB process flow kick off from a button in APEX? I know you can have APEX perform PL/SQL upon being clicked, so I am wondering if there is a way that I can do the same for a process flow? We are looking to have a manual kick off for a job and we are trying to use APEX for this. Any information would be great!
    Thank you

    Hi,
    Using SOAP ?if there is a way ... please provide some examples.
    I finished my EDQ process, and now i am trying to find how to call it from APEX
    My web service WSDL is
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      <soap:Header/>
      <soap:Body>
        <dn:request xmlns:dn="http://www.datanomic.com/ws" id="?">
          <dn:record>
            <dn:ID>?</dn:ID>
          </dn:record>
        </dn:request>
      </soap:Body>
    </soap:Envelope>You did not state your Apex version. If you are on 4.x then see
    Creating a Web Service Reference Based on a WSDL
    Cheers,

  • Is it possible to call a activeX control from PL/SQL...?

    Hi all,
    Is it possible to call a activeX control from PL/SQL...? If yes, please give me sample code or any link.
    Thanks,
    Pal

    The LoadLibrary() Win32 call is used to find the physical DLL and load it into memory. This API call first look in the current directory for the file, and then uses the PATH environmental variable to try and find the file.
    Thus you need to make sure PATH is properly set. A Win32 process runs in a 32bit VM (Virtual Machine). Been a very long time since I did Windows server side development, but as I recall this VM inherits the default o/s environment (unlike Unix where the parent process environment is inherited).
    You can set the environment using the Properties menu of the System desktop icon (or via Control Panel).
    However.. Oracle does not run as your user. Typically it is installed as the o/s user Oracle and this user owns all the Oracle processes (listener, instance, etc).
    So you will need to make sure that this user's environment is correctly configured... Further more than this, I'm out of my depth. Did a lot of Windows stuff back in the 90's, but for many years now I'm only using Unix/Linux professionally - with Windows being my console platform for playing games at home. :-)
    On the Linux/Unix side, I configure the environment variable via the Listener. E.g. Under the entry SID_LIST_LISTENER, I configure the external procedure handler as follows:
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME=/tjs-dev/app/oracle/product/10.2.0)
    (PROGRAM = extproc)
    (ENVS = "EXTPROC_DLLS=ANY")
    )No idea how this applies and works on the Windows side.

  • Is it possible to call a 9i Forms from a 6i Forms ?

    Hello,
    I have a customer using CRM 11.5.10.2 ( Database 9.2.0.6 / 6i Forms) and will be created a functionality in the CRM screen, where end user will call (via button) a custom application running on 9i Forms.
    Customer believes that there is a technical limitation to achieve that. That is, call a 9i Forms from a 6i Forms.
    Is it possible to call a 9i Forms from a 6i Forms ?
    Thank you in advanced for help,
    Marcos Souza.

    I should have thought so, as Forms 9i is exclusively web-driven, so how you launch the URL is immaterial as long as you use a supported browser. As your Forms 9i apps will invariably be on a remote web server, you'll not encounter compatibility issues either. And Forms 6 and 9 development is possible on the same PC using multiple Oracle Homes. Ask Oracle beforehand if you are still not convinced.

  • IP - Is it possible to call exit planning function from ABAP Report..

    Hi All,
    Greetings.
    Is it possible to call exit planning function from ABAP Report (t-code SE38) ? Or I mean is not limited only to be called from ABAP Report, perhaps from BSP / Web-Dynpro / Function Module.
    If somebody here has been doing it before, I'm keen to ask to kindly share it. Particularly how to call and transfer data to that exit function.
    Or if somebody has done in BPS, appreciate if it can be shared too .
    Thanks a lot and have a good day,
    Best regards,
    Daniel N.

    Hi.
    You can achive this as suggested by Mattias in your previous post.
    Lets say you have next data structure:
    CostCenter | Amount | PercentForDistibution |
    Create input ready query in this format. Restrict cost center by variable type range.
    Create WAD with analysis item.
    When you run web page you enter range of cost centers (lets say you will enter 101004 to 101010).
    I assume you have data only for 101004 in your cube (lets say 1000).
    You will see only one record in your webpage.
    CostCenter | Amount | PercentForDistibution |
    101004       | 1000     | NOTHING
    When you create WAD in analysis item properties set "NUMBER_OF_NEW_LINES" to lets say 1 (so in WAD you will see always one blank line for entering new data).
    Just add 6 new records:
    CostCenter | Amount   | PercentForDistibution |
    101005       | NOTHING| 10
    101006       | NOTHING| 30
    101007       | NOTHING| 20
    101008       | NOTHING| 25
    101009       | NOTHING| 5
    101010       | NOTHING| 10
    Then run planning FOX function like this:
    FOREACH Z_COST_CENTER.
    IF {Amount, Z_COST_CENTER} <> 0
    Z_AMNT_TO_DISTRIBUTE = {Amount, Z_COST_CENTER}.
    ENDIF.
    ENDFOR.
    FOREACH Z_COST_CENTER.
    IF {PercentForDistibution Z_COST_CENTER} <> 0.
    {Amount, Z_COST_CENTER} = Z_AMNT_TO_DISTRIBUTE * {PercentForDistibution Z_COST_CENTER}.
    ENDIF.
    ENDFOR.
    It is not perfect FOX, but as an idead, it should work.
    Regards.

  • Is it possible to call a JavaScript function from a dialog?

    Hi there,
    At the moment I have created a dialog, that consists of three text fields that a user fills out, and then clicks next.
    What I am attempting to do, is pass the result of these three textboxes to a JavaScript function I have laying in a file in Web Resources. I've done some research, and I can't find anything.
    So my question is - is it possible to call a JavaScript function from a dialog?
    Thanks for your time.

    Hi,
         It is not possible unfortunately. We can start dialog from script but not the other way unfortunately. However, you can always write server side code for this and it will surely execute. So instead of javascript, write plug-in.
    Hope this helps.
     Minal Dahiya
     blog : http://minaldahiya.blogspot.com.au/
     If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful"

  • Call/Invoke an OWB Process Flow from a Windows Command/batch

    Hi everyone,
    I'm newbie in Oracle Warehouse Builder and I've developed some process flows to load data from one database to another.
    One of these process, called "MAIN", is the beginning of the execution. I need to call these process flow (MAIN) from the Windows Command Line
    or batch (.bat file) to schedule in Windows Sckeduler Tasks.
    Anyone have an idea to how to do this?
    Thanks a lot!
    Edited by: Maximiliano García on 24/02/2012 05:41 PM
    Edited by: Maximiliano García on 24/02/2012 05:41 PM

    Check this blog post here that shows how to execute via sqlplus, which you will then be able to wrapper in a batch script or whatever to schedule.
    https://blogs.oracle.com/warehousebuilder/entry/how_to_execute_process_flow_from_sqlplus
    Cheers
    David

  • Error when running the OWB process flow from the shell script

    Hi,
    I am able to deploy the process flow succesfully but when I execute the process flow from the shell script,I am getting the following error.Previously it worked fine.
    I had to make some chnage in the IP address,so i had to deploy again.
    Connected.
    SQL> @/oracle/product/owb92028/owb/rtp/sql/oem_exec_template.sql OWB_RTR LOC_P_REL PROCESS P_W_SOURCE "," ","
    Elapsed: 00:00:00.00
    Elapsed: 00:00:00.01
    Stage 1: Decoding Parameters
    | location_name=LOC_P_REL
    | task_type=ProcessFlow
    | task_name=P_W_SOURCE
    Stage 2: Opening Task
    declare
    ERROR at line 1:
    ORA-01422: exact fetch returns more than requested number of rows
    ORA-06512: at "OWB_RTR.WB_RT_API_EXEC", line 17
    ORA-06512: at "OWB_RTR.WB_RT_API_EXEC", line 137
    ORA-06512: at "OWB_RTR.WB_RT_API_EXEC", line 164
    ORA-06512: at line 205
    Thanks in advance.
    Vinay

    Hi Kamal and kanakam kolla,
    This is just to let you know that,I solved my problem little differently by creating a new location and deployed the process flow.Now my process flow is working fine when i call from the shell script.What i see is that, it does not update properly when we update and redeploy the process flow.So far this is the work arround i could think off and i succesfully tested this.
    Thank you Kamal and kanakam kolla,for giving a thought towards my problem.
    Thanks
    Vinay

  • Calling API mtl_online_transaction_pub.process_online from Trigger

    Hello Gurus,
    I'm inserting rows into mtl_transaction_interface table and calling mtl_online_transaction_pub.process_online to process it from a TRIGGER on mtl_material_transactions table.
    But it doesn't process the data and errors with process_flag 3.
    If I comment the call to mtl_online_transaction_pub.process_online and just insert into interface table and then call mtl_online_transaction_pub.process_online from independent PLSQL block it works fine.
    Can someone suggest a solution for the problem, I think the issue is in the design.
    Thanks
    Manu

    Hi,
    I hope you are using an 'after insert' trigger on mtl_transactions_interface.
    Ensure that the MTI record is populated with transaction_header_id with transaction_mode = 1 (Online), process_flag = 1 and lock_flag = 2.
    Call the txn processor with transaction_header_id, and it should work.
    If transaction_mode is 2 (immediate) or 3 (Background) then the MTI record must be commited in database; calling txn processor from trigger cannot see the record as it is not committed.
    If it doesn't work, then you will have to retrieve errors from the return message to understand the problem in detail.
    I would strongly recommend not to use trigger for such processing.
    I believe, you have a custom package/procedure from which you are inserting data into MTI.
    once the insert is done, then you can call the same API from custom code.
    Also check how exactly is MTI is getting inserted, is apps context set correctly (either by means of concurrent program, or by explicitly calling fnd_global.apps_initialize(..) )
    If it still doesnt work, enable Inventory Debug by setting up profiles INV%DEBUG%, and see the log messages. (e.g. set the log file as /usr/tmp/mti.log )
    Hope it helps,

  • Is it possible to "borrow" the processing power from a second mac

    I have a G4 Laptop 1.25ghz which just doesn't quite offer enough processing power to do what I want in Garage Band.
    I've just purchased a mini 1.83 ghz duo and I'm wondering if it's possible to run garage band on my laptop and "borrow" processing power from the mini (or vice versa).
    I could have sworn that an apple salesman told me a couple of months ago when I began to think about getting the mini that it was possible to do that...?

    GB doesn't offer any support for "Render Farm" type set ups. I think Logic may.
    ~~HangTime [♪♫ The Bullets and Bones Band ♫♪] B-(>

  • Is it possible to call method in AM from PL/SQL?

    Hi All,
    I have a really strange requirement i.e. I want to know if I can call a method in an existing AM which is in OAF from the apps database.
    Basically the method is called and runs fine from the controller but we also want to run some batch process and want to know
    if we can somehow call the same AM method from PL/SQL passing the parameters which we pass throgh the controller....?
    If this cannot be done, can anyone give me some alternatives.....any help would be really appreciated.
    Thanks

    Hi
    Not able to understand correctly what you are trying to achieve.But if you want to call a method of AM.What you can do is register a Java Concurrent Program in Apps & then call that concurrent program from front end or through FND_REQUEST.SUBMIT_REQUEST...From front end you can even schedule that program too..
    Hope it helps!!
    Thanks
    AJ

  • Is it possible to call a Crystal Report from Oracle Forms.

    Hi Everybody,
    I got a Dout about Crystal Reports. Is it possible to call Crystal Reports from Oracle Forms.

    Hello,
    That depends are you running Forms via the WEB or client/server. I will assume you are running client/server since you are running crystal reports. The answer is yes. All you will have to do is use the HOST command or the win_api_shell to run the report. Look in the Forms manual for information on the commands and what else you may need.
    John

  • Is it possible to call Normal function Module from WD4A , Not RFCs

    Is it possible to call Normal function Module(FM) from WebDynPro for ABAP , Not RFCs

    There is no difference, unless you are specifically calling the RFC to connect to another system. If so, then you need to add the DESTINATION keyword to the function call and specify the destination name. This name must be defined in SM59.  But, if you are not going to another system, you can call the RFC the same way you call the regular function module.
    REgards,
    Rich Heilman

  • Is it possible to call BPMN process through java.

    HI All,
    Is it possible to call a BPMN process through a java. Please share your thoughts on this.
    Thanks
    Parker.

    Check this API:
    http://download.oracle.com/docs/cd/E17904_01/apirefs.1111/e10659/oracle/soa/management/facade/package-summary.html
    Check mostly the class Composite, you can access a process with it (and even its instances).

  • Is it possible to call a Web Application from OSB Business Service

    Hi,
    Is it possible to call a Web Application that has URL - http://host:port/parse.php using a business service in OSB?
    What I have seen is it is able to call the service but the data we are sending that is the string in the form of the URL encoded data is not going there. Any help would be appreciated.
    Regards,
    Anuj

    What I have seen is it is able to call the service but the data we are sending that is the string in the form of the URL encoded data is not going there. Any help would be appreciated.How did you configure your BS. My guess is some thing to do with what your BS is configured and what the Back-end is expecting? HTTP Get Vs HTTP Post
    Manoj

Maybe you are looking for

  • What magazines, blogs and sites to read from for database technology

    Hi All, I don't know if this is the right place to post this. Please feel free to move it to the right place. As you all know, being in the database profession (and in IT in general) we are required and expected to be aware of and have knowledge of t

  • Forms end-user guide

    Hi, Does anyone know if there is an end-user guide for webforms anywhere? I am looking for something that describes how the user-interface works and also features such as how an end-user can do a query-by-example. Thanks, Pierre.

  • Global variable or something similiar?

    In Tomcat 4.1.27 how can I create a String object that I can call in any of my Java classes? For example I have a String object like this: String mymessage = "hello world"; Anyway I can put that in web.xml or some other file and call the mymessage va

  • Who's playing BF4 beta now?

    as title, who's now testing this new beta?

  • In widescreen format, my camcorder captures as 4x3 letterbox.  Help!!!!!!!!

    I want to make a widescreen video. My camcorder (Panasonic NV-GS17) is set to cinema mode, on screen this appears as 4x3 letterbox. I read up on the whole widescreen thing and learn that it is probably something called anamorphic widescreen but when