Pass parameter into BPEL WS

We have a hardcoded email address we use for testing error messages during development.
We would like to be able to change the email address with an ant deployment plan. How can we create a variable to store this value that can then be changed in the deployment plan? Can the deployment plan change the bpel file?
We've tried using a default value in one of the xsd files but cannot figure out how to make an assign or transform grab that default or fixed value. It keeps saying null or empty. Is there a xsl function to grab this? We tried using @default on the end of the getvariabledata with no luck, but I think that's mixing schemas because default is part of xsd not our actual schema.
Thanks,

I tried the customizeDocument but it causes errors. I must not be doing it right.
Is there a function similar to ora:getPreference() that will get the "Email_To2" property from the <configurations>??
In the bpel.xml below, I can change the "Email_To2" value using the deployment plan but can't get to it from the bpel code.
I can get to the "Email_To" value in the bpel code but can't change the value in the deployment plan.
<BPELSuitcase>
   <BPELProcess id="Steve_Test" src="Steve_Test.bpel">
      <configurations>
         <property name="Email_To2">[email protected]</property>
      </configurations>
      <partnerLinkBindings>
         <partnerLinkBinding name="client">
            <property name="wsdlLocation">Steve_Test.wsdl</property>
         </partnerLinkBinding>
      </partnerLinkBindings>
      <preferences>
         <property name="Email_To">[email protected]</property>
     </preferences>
   </BPELProcess>
</BPELSuitcase>Thanks,

Similar Messages

  • How to pass parameter into a source variable of a invoke activity

    I'm an new BPELer, I created a invoke activity to submit Oracle Appplications concurrent program, but I don't know how to pass parameter into source variable.
    BTW, I have created the mapper file (.xsl) file.
    could anyone tell me how to do that?
    Thanks,
    Victor

    Hi.
    How you start application? I think you send message to webservice(BPEL process is webservice too). So construct message with variable and value.
    But I created only processes where input value doesn't matter. I haven't use mapper yet too.

  • How to pass parameter into extract function (for XMLTYPE)

    I have a table PROBLEMXML with XMLTYPE field xml_column. In this column there are several deffinitions for the problem. There is no max amount of deffinitions and it can be no definition at all. I need to return all definitions for every problem as a string wirh definitions separated by ";".
    Query
    SELECT extract(prob.Def,'/Definitions/Definition[1]/@var') || ';'|| extract(prob.Def,'/Definitions/Definition[2]/@var')
    FROM PROBLEMXML j ,
    XMLTABLE (
    '/problem'
    PASSING j.xml_column
    COLUMNS probid VARCHAR (31) PATH '/problem/@id',
    Def XMLTYPE PATH '/problem/Definitions') prob
    where PROBLEM_ID =1;
    returns exactly what I want a;m.
    But
    declare
    my_var varchar2(2000) :=null;
    n1 number;
    n2 number;
    begin
    n1:=1;
    n2:=2;
    SELECT extract(prob.Def,'/Definitions/Definition[n1]/@var') || '|'|| extract(prob.Def,'/Definitions/Definition[n2]/@var') into my_var
    FROM ETL_PROBLEMXML_STG_T j ,
    XMLTABLE (
    '/problem'
    PASSING j.xml_column
    COLUMNS probid VARCHAR (31) PATH '/problem/@id',
    Def XMLTYPE PATH '/problem/Definitions') prob
    where PROBLEM_ID =1;
    dbms_output.put_line(my_var);
    end;
    returns NULL.
    Is there is a way to pass parameter into extract function?

    I need to return all definitions for every problem as a string wirh definitions separated by ";".In XQuery, there's the handy function "string-join" for that.
    For example :
    SQL> WITH etl_problemxml_stg_t AS (
      2   SELECT 1 problem_id,
      3  xmltype('<problem id="1">
      4   <Definitions>
      5    <Definition var="var1"></Definition>
      6    <Definition var="var2"></Definition>
      7    <Definition var="var3"></Definition>
      8   </Definitions>
      9  </problem>') xml_column
    10   FROM dual
    11  )
    12  SELECT j.problem_id,
    13         prob.probid,
    14         prob.def
    15  FROM etl_problemxml_stg_t j,
    16       XMLTable(
    17        'for $i in /problem
    18         return element r
    19         {
    20          $i/@id,
    21          element d { string-join($i/Definitions/Definition/@var, ";") }
    22         }'
    23        passing j.xml_column
    24        columns
    25         probid varchar2(30)  path '@id',
    26         def    varchar2(100) path 'd'
    27       ) prob
    28  ;
    PROBLEM_ID PROBID               DEF
             1 1                    var1;var2;var3

  • How to pass parameter into transaction iview ?

    Hi experts,
    I want to know "how to pass parameter into transaction iview ".
    Regards,
    Krishna Balaji T

    Hi Krishna,
    Not sure if this can help you.
    1) Passing a parameter to a transaction iview (I saw a resolved suggestion)
    Passing a parameter to a transaction iview
    2) Passing a parameter from the portal to R3 (helpful info for you)
    Passing a parameter from the portal to R3
    3) Create SAP Transaction iView using SAPGUI for Windows (Great Blog and info about TA Iview)
    Create SAP Transaction iView using SAPGUI for Windows
    Please check the following link for Transaction Iviews
    http://help.sap.com/saphelp_nw2004s/helpdata/en/02/f9e1ac7da0ee4587d79e8de7584966/frameset.htm
    Just some info: Portal is basically what the end user can see. What he can do, is still maintain in the backend system. If there are parameters setup already for the user in the backend system (in SU01), then those parameters should still valid for the transaction that the parameters are linked to.
    Hope that helps and award points for helpful suggestions.
    Ray

  • How to pass parameter into cursor for loop ?

    Hi Experts,
    I want to pass parameter l_bom_header_tbl(i).assembly_item_name into the for statement below How to achieve this?
    for j in 1 .. l_bom_components_tbl.COUNT LOOP
    Thanks

    Maybe i failed to describe in detail,so here i go:
    I have two for loops:
    for i in 1 .. l_bom_header_tbl.COUNT LOOP --1st For Loop
    V_bom_header_tbl.organization_code :='DSC';
    V_bom_header_tbl.assembly_item_name:= l_bom_header_tbl(i).assembly_item_name ;
    k:=1;
    I want to pass parameter l_bom_header_tbl(i).assembly_item_name into the for statement below: How to achieve this?
    for j in 1 .. l_bom_components_tbl.COUNT LOOP *2nd For Loop*
    v_bom_components_tbl(k).Assembly_Item_name := l_bom_header_tbl(i).assembly_item_name ;
    k := k + 1;
    end LOOP;
    end loop;
    end;
    I want to pass a paramter into second for loop in such a way that it accepts from the first for loop
    for j in 1 .. l_bom_components_tbl.COUNT LOOP -2nd loop
    Edited by: ILovePlSql on Mar 22, 2010 12:25 PM

  • Passing files into BPEL processes

    Hi,
    I was wondering if it is possible to pass files of different types (.doc, .jpg etc.) into a BPEL process. If so, are there any documentation and/or examples showing how to do this?
    Thanks

    in 2.0.11, the only way to pass files to BPEL processes is to use base64 encoding.
    we are looking at providing better support for binary attachment in the 10.1.3 Preview 1 release scheduled for March 05.
    Best,
    Edwin

  • Passing parameter into SQL statement in Crystal Reports

    Hi all,
    I would like to call Crystal Reports in JSP. I can handle it well now. But I hope to let user input their selection criteria before printing out the report. I know how to get the parameter value in JSP, but I really dunno how to pass these parameter values into the SQL statement in Crystal Report. Actually, is it possible to do so?
    If anyone has idea, please tell me. Thx Thx!
    Regards,
    Betty

    Dear Sir,
    I want to use Crystal Report as a web base using JSP. But, I am getting how to call .rpt file in .jsp file & passing of parameter.
    If you have any idea, please reply as early as possible
    Thanking U.
    My userid = [email protected]
    Regds
    Pankaj..

  • How to pass parameter into remote system

    i'm doing a small testing on remote connection where i need to remotely login to another NT machine by using JAVA code. therefore i need to send over the ctrl-Alt-Del command by using ASCII code as well as the username and password to login to the remote NT machine. My problem is after my JAVA code start up the VNC connection, the ASCII code and parameter passing was executed before the VNC window popup therefore the parameters are not received by the remote end.

    Hi oling,
    i am really not sure how u can invoke or rather pass parameters to a Remote System thru Java, where no Java server is running.
    which Java Api do u use to connect to remote System. How will the remote System understand the serialised bytes transferred thru ur program.
    The Bottomline is i am confused how will the connection haapen after all!!!!!!!!!!!!!!!!!!!!!
    can u please explain this or rather pass me the Code...
    Thanks in advance,
    Manja

  • Pass Parameter into ADF Creation Form

    I have an ADF Read Only Form on page 1, and and ADF Creation Form on page 2. I want three specific fields from page one to be passed into the appropriate fields on page 2. How would I go about accomplishing this?
    Thanks,
    Tim

    Hey Shay,
    I got one value to pass:
    I put a setAction Listener on the command button. My From was #{backing_confirmTest.outputText2.value}. And my To was #{processScope.Test}.
    When I tried to add another setAction listener to the same button it wouldn't let me. Can I not have another set of values like... #{backing_confirmTest.outputText3.value} and #{processScope.Test2}??
    Thanks,
    Tim

  • Passing parameter into stored procedure

    Hi guys,
    I have a big problem here passing as a parameter in stored
    procedure.
    If i pass as a parameter in where clause it is working fine.
    Whenever i pass the parameter in order by it was not working..
    How to implement this issue????
    Here i am giving the example for package:
    PACKAGE XTRA.TEST_STATUS
    AS
    TYPE GenericCurTyp IS REF CURSOR;
    PROCEDURE SP_MAIN
    ( insortgroup IN VARCHAR2,GENERAL_CUR IN OUT GenericCurTyp);
    END TEST_STATUS;
    PACKAGE BODY XTRA.TEST_STATUS
    AS
    PROCEDURE SP_MAIN
    ( insortgroup IN VARCHAR2, GENERAL_CUR IN OUT GenericCurTyp
    ) AS
    BEGIN
    OPEN GENERAL_CUR FOR
    select last_name,first_name from applicant Order By insortgroup;
    END SP_MAIN;
    END TEST_STATUS;
    Passing as a parameter i am getting the below details.
    LAST_NAME FIRST_NAME
    ASFSDAF DASDFASF
    Ad DASD
    Adams John
    DANA WITEST
    If i hot code the parameter insortgroup to last_name
    i am getting the below values:
    LAST_NAME FIRST_NAME
    'ANNUNZIO GIANCOLA GABRIEL
    0'BRIEN ARMA
    0120453EZ ESTANISLAO
    082479 ELIZABETH
    Thanks,
    Rao

    CREATE OR REPLACE PACKAGE xtra.test_status
    AS
      TYPE GenericCurTyp IS REF CURSOR;
      PROCEDURE sp_main
        (insortgroup IN     VARCHAR2,
         general_cur IN OUT GenericCurTyp);
    END test_status;
    CREATE OR REPLACE PACKAGE BODY xtra.test_status
    AS
      PROCEDURE sp_main
        (insortgroup IN     VARCHAR2,
         general_cur IN OUT GenericCurTyp)
      AS
        select_statement VARCHAR2 (4000) := NULL;
      BEGIN
        select_statement :=
        'SELECT   last_name,
                  first_name
         FROM     applicant
         ORDER BY ' || insortgroup;
        DBMS_OUTPUT.PUT_LINE (select_statement);
        OPEN general_cur FOR select_statement;
      END sp_main;
    END test_status;

  • How to pass parameter into sql block?

    example code
    @script.sql a b c d
    Inside script
    DECLARE
    cursor cur is select col1 from table where col1 in ('a','b','c','d','e');
    BEGIN
    END;
    Not sure 1) The the total number of parameters will be passed at run time
    2) Not sure of case, could be lower upper or both....
    Please help...

    do you have different queries which are defined to use different numbers of parameters, OR (more likely) sometimes you just want to pass less parameters?
    sqlplus / @file1 "a" "b" "" "" ""
    now I only passed 2 "real" params, and 3 blanks. that way, sqlplus still has the values of &3 - &5 defined, and everything works fine. you'lll need either single or double quotes (or perhaps single quotes within double quotes) depending on your os, version, etc.

  • Passing parameter into select statement by using function in discoverer

    I have created two functions in database named Period_in and Period_out and a global variable  g_period_name
    I have called Period_out function in VIEW(Select statement where condition).
    I have registered Period_in function in discoverer admin then created calculation (called Period_in(:input parameter))in discoverer plus.
    My expectation is user will enter period name and that will hit Period_in function and returns 1 and stores entered period name in g_period_name at runtime. then VIEW will executed and fetches data.
    But i am getting no data found.
    Problem is 2 functions running at the same time in select statement. Please help me to overcome this. Thanks in advance
    FUNCTION period_in (p_period VARCHAR2)
          RETURN NUMBER
       AS
       BEGIN
          g_period_name := p_period;
          RETURN 1;
       END period_in;
       FUNCTION period_out
          RETURN VARCHAR2
       AS
       BEGIN
          RETURN g_period_name;
       END period_out;

    You can use this code: 
    WITH cte
    AS ( SELECT EmpID ,
    EmpName ,
    [dbo].[udf_testFunction](EmpID) AS testfunctionvalue
    FROM #Temp
    SELECT EmpID ,
    EmpName ,
    testfunctionvalue ,
    testfunctionvalue * EmpID ,
    testfunctionvalue + 2
    FROM cte
    But using scalar functions in select clause can hurt the performance. Please see this link: 
    SQL Server Scalar User Defined Function Performance
    T-SQL Articles
    T-SQL e-book by TechNet Wiki Community
    T-SQL blog

  • Passing parameter into report

    Hi,
    I am using RUN_REPORT_OBJECT to call my report from the menu. How
    do I pass parameters or values to my report? Is there another
    built-in function to do this? Please provide some sample codes.
    Thanks.
    null

    Make this thing:
    PL_NAME := 'TEMP';
    PL_ID := GET_PARAMETER_LIST(PL_NAME);
    IF NOT ID_NULL(PL_ID) THEN
    DESTROY_PARAMETER_LIST(PL_ID);
    END IF;
    PL_ID := CREATE_PARAMETER_LIST(PL_NAME);
    IF ID_NULL(PL_ID) THEN
    MESSAGE('PL/SQL held against Button failed to execute');
    RAISE FORM_TRIGGER_FAILURE;
    END IF;
    ADD_PARAMETER(PL_ID, 'PARAMFORM', TEXT_PARAMETER,'NO');
    ADD_PARAMETER(PL_ID, 'AGENTE1',
    TEXT_PARAMETER,:BLOQUE_RANGO_IMPRESION_AG.AGENTE1);
    ADD_PARAMETER(PL_ID, 'AGENTE2',
    TEXT_PARAMETER,:BLOQUE_RANGO_IMPRESION_AG.AGENTE2);
    RUN_PRODUCT(REPORTS,CAMINO

  • Pass parameter into eventhandler in russian language after submit form

    public static EventResult handlerSearch(BajaContext context, Page page,
    PageEvent event)
    String attrValue = event.getParameter("attrValue");
    If "attrValue" is English, all is ok. But if "attrValue" is Russian language - attrValue = "".
    Is it depend on encoding on page or default UIX encoding or something else?
    Help me please.
    Thank.

    Sergey,
    The encoding used is based on the encodings the browser and HTTP server support. Parameters in non-English should work fine, so it seems like something odd is going on. To try to debug this, let me ask you some questions:
    1) What HTTP server and servlet engine are you using?
    2) What browser, version, and client OS are you using?
    3) In your event handler, can you print the value of
    context.getPageDecoder().getRequestCharacterEncoding()and report back here what it says?
    4) In your handler can you also report back the value of
    context.getServletRequest().getParameter("attrValue")? (Note that you should not pull directly from the request in general -- this is just to aid debugging the problem.)
    With these answers I will hopefully able to be more helpful.
    Thanks,
    -brian
    Team UIX

  • Passing parameter in task flow

    Hi,
    I want to pass parameter into task flow. I dont' use data control and i populate the table manually in backing bean and i want two parameter when the user click on the row of table. The task flow is composed only two pages: one with list of data and the another for details. Any suggestions?
    Best regards

    Well in that case the answer lies in my previous post. Set the value in requestScope (by using the setActionListener) and you can get the value in the taskflow (taskflow have parameters section).
    here it is how to set the value:
    <af:commandLink id="ot15" text="#{row.Date}" partialSubmit="true" action="activity"
                                                              shortDesc="Click here to visit Details">
                                                 <af:setActionListener from="#{row.Id}" to="#{requestScope.Id}"/>
                                              </af:commandLink>Look at taskflow options and you can easily get the value from there
    Edited by: in the line of fire on Sep 11, 2011 2:32 PM

Maybe you are looking for