pass parameters to treat the flow of pl / sql block

Hello

I integrate with Warehouse Builder 10.2, a process named PF_1 flow and a PL/SQL procedure that calls this workflow process using the WF_ENGINE API.
This process flow, call a large number of mappings of Warehouse Builder. The question is, if I can pass a value get in the PL/SQL block for the process flow and then use it for calls of mappings.

Example:

DECLARE
w_value INTEGER.
BEGIN

-Get the value that I need to go to deal with the flow, but I don't know how
SELECT column1
IN w_value
FROM table1;

-Start the process
WF_ENGINE. LaunchProcess ('PF_PACK ',' PF_CALL_01 ',' PF_1, 'PF_CALL_01', 'OWB102');

-Commit final
COMMIT;

END;

Thank you in advance.
Francisco F.

Published by: franciscof on Apr / 03/2009 0:06

Hello

Have you seen the script below to run any object OWB, including process flow:
owb\rtp\sql\sqlplus_exec_template. SQL
in the installation.

This use and API that has an example of using here;
http://blogs.Oracle.com/warehousebuilder/2007/07/publishing_process_flow_as_a_w.html

You can pass parameters to it and bind the mapping of input parameters for process flow settings to the settings, this might help:
http://blogs.Oracle.com/warehousebuilder/2009/01/process_flow_parameters_1.html

See you soon
David

Tags: Business Intelligence

Similar Questions

  • pass the parameter in pl/sql block

    Hello

    I have to call anonymous pl/block block with the shell script parameter. It works fine as indicated below, the problem is - generated email after the creation of the table in step contains
    list of all directories and files, instead of "select * from". When I change * to the values of columns, everything works well, but I need to use ' * ' in select statement.
    Please let me know which remedy.
    set serveroutput on
    @${CREATE_STAGE_SQL} ${i}
    COMMIT;
    QUIT;
    EOF
    CREATE_STAGE_SQL. SQL
    declare
    begin
    ### some other processing###
     execute immediate 'create table T1_&1._STG as select * from t1_rpt_tmt where 1=2';
    end 
     
    Thank you
    Sandy

    Sandy310 wrote:

    Question - how to select * on my application, how to use * (special character) bulk pl/sql call?
    I used & 1. (dot) to pass parameter.

    Example:

    // the script
    /home/billy/sql> cat show-employees.sql
    --// usage: show-employees.sql 
    --//
    --// where:     sql-projection = comma delimited column list
    
    set verify off
    set define on
    define PROJECTION=&1
    
    select &PROJECTION from emp order by 1;
    
    exit
    
    // running script for single column
    /home/billy/sql> sqlplus scott/tiger @show-employees.sql ename
    
    SQL*Plus: Release 11.2.0.2.0 Production on Thu Apr 18 08:01:10 2013
    
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, Oracle Label Security,
    OLAP, Data Mining, Oracle Database Vault and Real Application Testing options
    
    ENAME
    ----------
    ADAMS
    ALLEN
    BLAKE
    CLARK
    FORD
    JAMES
    JONES
    KING
    MARTIN
    MILLER
    SCOTT
    SMITH
    TURNER
    WARD
    
    14 rows selected.
    
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, Oracle Label Security,
    OLAP, Data Mining, Oracle Database Vault and Real Application Testing options
    
    // running script for all columns using asterisk - and to prevent bash from processing
    // the asterisk as a file/dir listing parameter, we escape the character using a slash
    /home/billy/sql> sqlplus scott/tiger @show-employees.sql \*
    
    SQL*Plus: Release 11.2.0.2.0 Production on Thu Apr 18 08:01:17 2013
    
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, Oracle Label Security,
    OLAP, Data Mining, Oracle Database Vault and Real Application Testing options
    
         EMPNO ENAME      JOB              MGR HIREDATE                   SAL       COMM     DEPTNO
    ---------- ---------- --------- ---------- ------------------- ---------- ---------- ----------
          7369 SMITH      CLERK           7902 1980/12/17 00:00:00        800                    20
          7499 ALLEN      SALESMAN        7698 1981/02/20 00:00:00       1600        300         30
          7521 WARD       SALESMAN        7698 1981/02/22 00:00:00       1250        500         30
          7566 JONES      MANAGER         7839 1981/04/02 00:00:00       2975                    20
          7654 MARTIN     SALESMAN        7698 1981/09/28 00:00:00       1250       1400         30
          7698 BLAKE      MANAGER         7839 1981/05/01 00:00:00       2850                    30
          7782 CLARK      MANAGER         7839 1981/06/09 00:00:00       2450                    10
          7788 SCOTT      ANALYST         7566 1987/04/19 00:00:00       3000                    20
          7839 KING       PRESIDENT            1981/11/17 00:00:00       5000                    10
          7844 TURNER     SALESMAN        7698 1981/09/08 00:00:00       1500          0         30
          7876 ADAMS      CLERK           7788 1987/05/23 00:00:00       1100                    20
          7900 JAMES      CLERK           7698 1981/12/03 00:00:00        950                    30
          7902 FORD       ANALYST         7566 1981/12/03 00:00:00       3000                    20
          7934 MILLER     CLERK           7782 1982/01/23 00:00:00       1300                    10
    
    14 rows selected.
    
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, Oracle Label Security,
    OLAP, Data Mining, Oracle Database Vault and Real Application Testing options
    
  • Where the conditional, or PL/SQL block as a source for an interactive report?

    I have this situation: my app's main screen displays a list of documents. For now, there must be a quick way to 'security' integrated, so that administrators can see all documents, but only other users can see what documents, they created (connection of the creator is stored in the table of documents). In the future we will use probably VPD to enforce certain rules, but for the moment we need a quick solution.

    So I stored administrators in a separate table. Now I want the interactive Act report on the homepage as follows:
    -If an admin is connected, it must have this query: select field 1, 2, 3 area in documents
    -For all other users: select the field 1, 2, area 3 documents where creator =: app_user

    Is this possible in a single interactive report? I could do two reports with different queries, and make conditional depending on who is connected, but this gives me two interactive reports to maintain. Is it possible to use a PL/SQL block as a source for the report? I tried, but I get a syntax error. Is it possible to do where proviso on somehow?

    Hello

    Install the demo application to your workspace:
    Home > create an Application and select Demo Application.

    Check page 1 interactive report. This should give idea how.

    BR, Jari

  • Forms 11 g-error during the compilation of pl/sql block having retained a procedure call

    Hello

    I'm getting following error in trying to compile a when the button trigger pressed with a stored procedure call forms 11g R2

    Error on line 0...

    Declaration ignored

    Forms a button trigger (when the button pressed)

    ----------------------------------------------------------------

    do_nothing;

    Stored procedure: (10g R2 database)

    ----------------------------------------------------------------

    create or replace procedure do_nothing AS

    BEGIN
    NULL;

    END do_nothing;

    Note: This procedure works for sql as SQL Developer or plu sql tools.

    Concerning

    user10503016 wrote:

    After validation of this request, I did some tests more and found Forms 11g R2 need a minimum version of database - 10.2.0.4. Is that the reason?, because my version of the database is 10.2.0.1.

    Yes, one of the reasons.

    Hamid

  • How to pass parameters to Date on the data model

    Hi all
    I try to pass parameters of date on the data model and unable to pull all the data. When I tried hard-coded in the SQL query, it works. Here is the data model, can I pass parameters directly to the dataquery?
    I searched a lot but couldn't find it. Any help is greatly appreciated.

    <? XML version = "1.0" encoding = "WINDOWS-1252"? >
    < name of dataTemplate = "AIMS_VDIS_VALIDATION_REPORT" description = 'Invalid records in the GOALS and for the given date VDIS' version = "1.0" >
    < Parameters >
    < name of the parameter = "p_start_date" dataType = "date" / >
    < name of the parameter = "p_end_date" dataType = "date" / >
    < / Parameter >
    < dataQuery >
    < SQLStatement instance name = "T4" >
    <! [CDATA [SELECT pgw_custom. Account_Validate (acct_new) invalid,
    acct_new,
    DECODE (pgw_custom. Account_Validate (acct_new), 0, 'ACCOUNT OF OBJECTIVES not VALID', 'VALID OBJECTIVES ACCOUNT') message
    Of
    (SELECT DISTINCT SUBSTR (acct, 1, 3) |) JE_CAP | SUBSTR(ACCT,8) acct_new
    Of
    (SELECT the jav.jav_hours hours,
    ACCT GCC.concatenated_segments,
    GCC.code_combination_id ccid,
    $ (bua.hourly_rate * jav.jav_hours);
    CASE WHEN (um.class2 IN (' a ',' B', 'C', d ', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', ',' n, 'O', 'P', 'Q', 'R', 't')) THEN '3201'
    WHEN (um.class2 IN ('Z', "ZA", "ZA1', 'W', 'U', 'V', 'X', 'Y',"ZA2","ZB","ZC","ZD", the from ')) THEN '3301 '."
    END je_cap
    OF pgw_custom.jems_aims_vehicle jav,.
    Apps.mtl_generic_dispositions mg/d,
    Apps.gl_code_combinations_kfv gcc,
    mfour.unit_main@m4prg01 uh,.
    BUA mfour.bill_unit_acct@m4prg01
    WHERE jav.jav_glaccount = mgd.segment1 AND
    MGD.distribution_account = gcc.code_combination_id AND
    JAV.jav_vehicle = um.unit_no AND
    UM.unit_id = bua.unit_id AND
    JAV.jav_project IS NULL AND
    JAV.jav_task IS NULL AND
    JAV.jav_charge_date BETWEEN: p_start_date AND: p_end_date AND
    GCC.detail_posting_allowed = 'Y' AND
    GCC.enabled_flag = 'Y' AND
    NVL (gcc.end_date_active, TO_DATE('31-DEC-4720','DD-MON-YYYY')) > = SYSDATE AND
    SUBSTR (bua.billing_code, 1, 1) = "I" AND
    ((bua.eff_dt < = (SELECT date_fin)))
    OF apps.gl_periods
    WHERE period_name = (SELECT TO_CHAR(:p_end_date,'MON-RRRR') FROM DUAL)) AND
    BUA.end_dt IS NULL)
    OR
    (bua.end_dt >(SELECT start_date)
    OF apps.gl_periods
    WHERE period_name = (SELECT TO_CHAR(:p_end_date,'MON-RRRR') FROM DUAL)))
    ORDER BY valid, acct_new]] >
    < / sqlStatement >
    < / dataQuery >

    < dataStructure >
    < group name = "G_ACCTS" source = "T4" >
    < element name = "VALID" value = "valid" / >
    < element name = "NEW_ACCOUNT" value = "acct_new" / >
    < element name = "MESSAGE" value = "message" / >
    < / Group >
    < / dataStructure >
    < / dataTemplate >

    the parameter name must be

    p_start_date
    p_end_date

    And when the report is run, a value must be selected in the settings. Try this default sysdate.

  • Faced with HTML5 - only may not even pass parameters to the script .jsx

    I am really struggling to get acquainted with HTML5 and the conversion of my existing extension.  A general request first - what are the best resources to help a general grounding in HTML5?

    Now a specific question.  In the default example functions in the .jsx are all processed in $._ext_.  What is the purpose of this?  How do you pass a parameter in a function that is defined like this.  Now, I'm trying just to pop up an alert with a parameter passed.  I tried many things, but here I am:

    In my index.html file, I have a button:

    < li > < button class = "default" id = "btn_LoadPresets3" onClick = "wizClickButton('10')" > myFunction < / button > < /li >

    In the ext.js script, I have a function which gets this:

    function wizClickButton (inParam) {}

    Alert ("press me" + inParam);

    var csInterface = new CSInterface();

    csInterface.evalScript ('myFunction2()');

    }

    In my script .jsx, I have the following function:

    function myFunction2()

    {

    Alert ("Yo");

    };

    Now - when I run this and press the button, the first alert box shows and shows me my parameter ("press me 10" in this case).  But that's all - so the function in my script .jsx never gets called.  I don't know why.  So - I look at the example functions and they are all preceded with the $._ext - I change the function in my script .jsx for:

    $._ext_myFunction2 =

    {run: function() {}}

    Alert ("Yo");

    }

    };

    and modify the ext.js call to call the same

    function wizClickButton (inParam) {}

    Alert ("press me" + inParam);

    var csInterface = new CSInterface();

    csInterface.evalScript (' $. _ext_myFunction2.run () ');

    }

    So now, when I run it I get the second alert box.  Everything is good.  Only how I pass my parameter down in the script .jsx?  Where the parameter is both the definition of the function and the call to the function?  That brings the ._ext_ $ to the party?  Why not my definition of the standard function without the ._ext_ $?

    Many thanks in advance,

    Richard

    Hi Richard,

    I first suggest you use reusable code David Deraedt (and not Extension Builder, which treats the $. useless _ tips): davidderaedt/CC-EXT-SDK · GitHub. I don't know why you get the error: I don't use $._ext_ me so it shouldn't be a requirement.

    You can find a few first aid signs in my HTML signs quick tips. You will also find the way to pass parameters of JS-> JSX (as simple or complex objects parameters) and vice versa, JSX-> JS

    HTML: personally I found useful tutorials on www.tutsplus.com (HTML, JS, etc) but I guess there are a lot of free resources out there (the one that comes to mind is a A Practical Guide to HTML & CSS - learn how to build Web sites, Apple made one too Safari Web content Guide: HTML Basics).

    Concerning

    Davide Barranca

    ---

    www.davidebarranca.com

    www.cs-extensions.com

  • How to run and pass parameters to the exe file in the txt file.

    Hello

    I am facing problem with passing parameters in the .exe file, which is run by labview.firstly that I have script .txt with the settings that I have to go to the .exe file. This .exe file is also a software, and this script is written for her. And now I have to create program in labview which should satisfy the following points.

    1. I have to use a button named "Run script". If I pressed the button, it should open the browser where I can choose the script .txt file.

    2 .exe application is expected open(Path already chossen).

    3. After passing the .exe application settings should be closed.

    4 and labview should now update its parameter

    I just open using Exce.vi .exe file, but I didn't get any idea to do more than this.can someone please help me?

    Thanks norbert. CAN I love it? What should I change now? VI attached below...

  • Passing parameters to the URL - availability in the new process of request

    Hello

    I am able to pass parameters in the URL of the APEX that defined the points of the application as below

    : http://application-tier server: port/pls/apexdev/f? p = 1001:1:APP_CLIENT_NUMBER, APPLICATION_NUMBER:0001285, 0000051:

    I would like to get and set other items based on elements of application passed as parameters. I would like to only enter once application.

    I found the best place for this action in a process of application with Point on new Instance of Process.

    The problem seems to be that the value of point of application has not been set at this point, and therefore the values are null.

    If I change the application process process Point to something that runs to each page as On Load: after the header, then the values are available. It is not suitable as only wish to run once at startup of the application.

    I can't find discussion of this documentation.

    1. I would be able to access URL parameters in the application process with Point on a new Instance of the process?

    2. are there any other equivalent task for access to URL parameters at the start of the application?

    Thank you

    Hello

    APEX runs only on the new process Instance when a new session has been set up. As you discovered, URL items are not yet saved in session at this point State. You can use a level app process before header instead, with a condition that makes that make it run when certain elements that you want to initialize are null.

    Kind regards

    Christian

  • Passing parameters to the named method built-ins

    Hello

    Can I pass parameters with the "named" built-ins in forms 6i or another method?

    I tried this

    OPEN_FORM (FORM_NAME = > ' C:\Users\Roma\Desktop\NATIONAL TECH.) FMX');

    but failed ' wrong number or types of arguments error.»

    The name of the parameter is FORMMODULE_NAME in this version of the signature of OPEN_FORM.

    (Do not know why the parameter has different names in different versions of signature)

    Try

    OPEN_FORM (FORMMODULE_NAME => ' C:\Users\Roma\Desktop\NATIONAL TECH.) FMX');

  • pass parameters to the pop-up window using skillbuilder

    All,

    I have a request of dynamic content on page 1 and for some lines ive the pop-up link another page and pass the EMPID clicked on page popupped. Ive created the link and its popping up the second page correctly, but how I have the pass of the EMPID per second / page popup?
    part of query in page1 like this,
    htp.p('<td><a href="#" class="show-summary" onclick="return false;">'||cursor-id.EMPID||'< . . . . . 
    Thank you.

    Gor_Mahia wrote:
    Jorge,

    IAM but perhaps not very clear what you did ive tried it before, but it losses the modal pop-up window and navigate to this page, I really try to have my modal popup window. Look at my request below,

    You just described a completely different problem from that of passing parameters modal page.
    Just add a more real Action "Cancel the event" after the action of modal Page.
    What that will do is replace the click of the anchor who want to access the link HREF.

    Thank you
    -Jorge

  • Passing parameters to the method call in expressions of value

    JDeveloper 11.1.2.1.0 does support the feature of passing parameters to method calls in expressions of value in JSF pages? AFAIK this is JSF 2 version it and it should support this feature. Unfortunately when I put in a JSF page the following tag
    < h:commandLink value = "#{row.employeeId}" action = "#{empBean.showDetails (row)}" / > "
    The page does not work. Any ideas on this point?

    Thank you to everyone.

    Hello

    The functionality you need is defined in JSR 245.
    If you need to wait for it to become part of the standard, it will be included in JEE6
    I don't know if 11.1.2.1.0 uses JEE6 standard...
    You can try this other thing,
    http://www.coderanch.com/t/213290/JSF/Java/why-JSF-calls-method-parameter

  • How to pass parameters to external swf with the loader?

    Hello everyone

    I am loading an external swf file using the charger. It's a pdf file converted to swf format.

    How do I pass parameters to the file so that I can highlight certain words in the file?

    Thank you

    Hello everyone

    I solved this problem.

    Thank you

  • Passing parameters from one page to the OFA to another PAge of the OFA

    Hello

    I was wondering, if there is a possibility of passing parameters to the request from one page to another page in EBS (eBusiness Suite).
    I tried to use the following

    (a) PageContext.putParamater ('MyParamater', 'ParamaterValue')
    (b) I have addded above the line of code by extending a controller on the page of OAF and personalized page

    When I retrieve the value of getParameter() on the next page. I am also unable to access the parameter in the following page.

    I tried the above code while trying to create expenses in the module I have costs... I would like the ReportHeaderId from one page to another page for customization purposes. I am not able to get the ReportHeaderId in the ReviewPAge... There is no Business Objects in the review page... try the idea of putParameter.

    Any help will be much appreciated

    Thank you

    Yes, the value will remain unless the root AM is released or remove you it with oapagecontext.removeTransactionTransientValue ("myParam");

    Glad to hear it works for you! Also, please mark your messages as helpful or correct answers as it will help others.

    Thank you
    LC

  • need help to pass parameters to the Flash

    Hello

    I'm pretty new to Flash and tried to solve this problem in the past few hours.

    What I want to do is to pass parameters from the browser to Flash.  I googled and it seems that the best way is FlashVars.

    However, I tried different codes and can not get Flash to detect settings.

    I decided to follow the example here and just copy and paste everything (just change the "main.swf" in my swf name):

    http://www.Kirupa.com/Forum/showthread.php?t=334923

    Flash loads, but it shows that ' param: "without anything else.

    I gathered that it is probably a foundamental problem more.  (for example how I am debugging, or some settings, etc..)  Clues?

    (I use CS4 trial AS3 version).

    Thank you!

    If you use the standard flash integration, you must list your flashvars in 3 locations in your html file.  you do this?

  • Problem with passing parameters to an HTTPService on buttonclick within the grid

    I have a DataGrid where I use ItemRenderers to render components such as buttons n Images within the grid. Now, I need to pass parameters to an HTTPService on click of a button. If the button is directly on the form (not in the grid), is easy to call HTTPService. But given that the button is in a grid, it is not able to resolve the HTTPService and so I can't call the HTTPService on ' click on ' event of the button.

    I would like to know if anyone can help.

    You should probably use click = "outerDocument.myClickHandler ()" "

    The outerDocument allows you to access the methods outside of the rendering engine.

    If this post has answered your question or helped, please mark it as such.

Maybe you are looking for