Can I use bpws:getVariableData() within oraext:format-string() ?

I have problem in using the following expression in my "Assign" activity:
oraext:format-string('|{0}|',bpws:getVariableData('inputVariable','payload','/client:process/client:name_param))
I get the following error
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header/><env:Body><env:Fault><faultcode>env:Server</faultcode><faultstring>XPath expression failed to execute.
An error occurs while processing the XPath expression; the expression is oraext:format-string(‘|{0}|',bpws:getVariableData('inputVariable','payload','/client:process/client: name_param')).
The XPath expression failed to execute; the reason was: internal xpath error.
Check the detailed root cause described in the exception message text and verify that the XPath query is correct.
</faultstring><faultactor/><detail><exception/></detail></env:Fault></env:Body></env:Envelope>
Strangely, I can use the following expressions:
1. concat('|', bpws:getVariableData('inputVariable','payload','/client:process/client:name_param))
2. oraext:format-string('|{0}|', 'A value')
Hence, it seemed to me that oraext:format-string() can't take the return value of bpmw:getVariableData() for some unknown reason.
As I need to use the "format-string" function to create a complicated value based on a number of input values , I need to find a way to work around this.
Otherwise, I am force to use the "concat" function which make it extra ugly to build the value I need.
Please help!

You need to wrap each parameter with striing().
Something like this: oraext:format-string(*string*($inputVariable.payload/client:inputBase), string($inputVariable.payload/client:inputVal0))
This way the oraext:format-string will work fine from bpel assign activity as well.
Racheli.

Similar Messages

  • How can i use connection pool within the sqlj?

    hello
    i am a beginner to sqlj,i find all of the sample code from the oracle DON'T use connectionpool,they only write the database url to "connection.properties" file,but i think in the production environment we should use the connectionpool to optimise the querying,i usually use the weblogic connection pool.
    how can i use the connection pool within the sqlj?
    thank you very much!

    Im not sure if I understand. :)
    English is not my best language...
    Looking up the connection again? Do you mean I have to create new DataSource object and bind it again to ServletContext?

  • Can I use my mac air to format my old pc laptop to reuse in the pc? laptop

    I have a PC labtop that I need to put a new hard drive in. Can I format it with the mac air?

    Yes. Use MS-DOS as the format.
    (71272)

  • Cannot use bpws:getVariableData in dynamic assignment using xpath

    Hello,
    I'm trying to use dynamic task assignment using xpath expression. I have a BPEL variable (collection) that holds a list of users.
    Under task assignment I set the following expression (data type- by expression):
    bpws:getVariableData('Invoke1_get_usersSelect_OutputVariable','TestApprovalCollection','/ns5:TestApprovalCollection/ns5:TestApproval')
    But when i run the process i get this error :
    Function 'getVariableData' not found
    Your help is appreciated.
    Regards,

    Make sure you have this entry in your bpel.
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"

  • Can I use "Smart Fix" within Organizer?

    I have just purchased PSE 13 and I can't see where you can use "Smart Fix" within Organizer? Does this mean you must go to Editor to use Smart Fix?

    Under the "Media" view you should have a button for instant fix (bottom right)

  • Can I use SimpleFdkCredential() from within a servlet?

    I have a test program that logs in to content DB using SimpleFdkCredential, and works perfectly well run from the main() method of a Java class from within JDeveloper. When I try to login the same way from within the doGet() method of a servlet, doGet() hangs on the call to ManagersFactory.login() using the same SimpleFdkCredential that works in-process. The login() call doesn't throw any exceptions, it just sits there waiting[I presume], and never returns.
    Is it necessary to use S2SFdkCredential for any authentication that originates from a servlet invocation? It seems that SimpleFdkCredential should work in this instance as well.
    Thanks.

    Can you check the Content DB http node log (application.log) with debug log level set, to see if the request from the servlet for the RemoteLoginManager Web Service was received?
    I would also check that all libraries are present/accessible from servlet - and that there are no conflicts with existing libraries.
    Also, check the servlet log for anything strange.
    Finally, you could try remote debugging of your servlet .. e.g -Xdebug java option.
    -Matt.

  • Can I use dbms_session.set_role within AE?

    I am augmenting an existing application with AE. The existing security scheme validates the user, then enables a role (with password) that has been granted update privs for all of the tables in the system. My AE application uses database authentication so users are uniquely identified in the database (no user or password appears in the DAD entry). When I try to duplicate the security functionality in AE, I get "ORA-06565: cannot execute SET ROLE from within stored procedure". Is there a way to accomplish this?
    Secondly, even without enabling the role, the application seems to work even though it should not. When using the same user to connect thru Toad, updates are not allowed. Modifications made thru the application use the "user" psuedocolumn and the user is identified correctly (not HTMLDB_PUBLIC_USER) and the user is not set in AE as a user or developer.
    I'm confused.
    Bob

    Bob,
    No, the set_role won't work within stored procedures.
    The privileges required to update your tables are owned by the schema itself. This schema is your application's parsing schema and is the schema that all SQL and PL/SQL in your application is parsed as.
    To control access to data based on the authenticated user (user or sys_context('userenv','session_user'), you can use the VPD feature.
    Scott

  • How can I use the MPEG-2 DVD format for video rendering?

    I have been trying to make a DVD out of my brother's wedding footage, but I've run into a wall. I would like to render out my footage in the .M2V format (MPEG-2 DVD), but I'm not given the option to use it. The only MPEG format I'm given is the .H264, and that doesn't work as well. How can I install the .M2V codec?

    You should either:
    Render to a suitable production codec and then compress for DVD in your authoring application.Use the Render Cue to render a PhotoJpg at NTSC or PAL file using default frame sizes for your AE rendering composition, then drop in Encore for authoring.
    Open your AE project in Adobe Media Encoder, pick the composition you want to render from the list and pick the MPEG 2 for DVD preset.
    Open Adobe Encore, select File>Dynamic Link>Import After Effects Composition and then set up your timelines and menu's as you like and select Build DVD.
    All DVD authoring programs will compress standard def video in just about any format for DVD. After Effects, however, will not do multi-pass rendering which is required for high quality MPEG compression.

  • How can I use script change long list format?

    Hi everyone
    If I have this kind of long list
    0101
    Long white radish
    Chinese Celery
    Tah tsai
    Round cucumber
    Cherry radish
    fennel
    Small-leaf arugula
    Small wax gourd
    0102
    Green-leaf Lettuce
    Broad-leaf arugula
    UFO squash
    Crystal radish
    Red wave lettuce
    Green endive
    Sponge gourd
    Rose-heart radish
    Butter head lettuce
    Radicchio
    0103
    Chinese mustard
    New Zealand spinach
    Yellow summer squash
    Turnip
    Malabar spinach
    Chinese kale
    Green bean
    Edible rape
    Begonia fimbristipulata hance
    Purple bean
    Cabbage
    Water Spinach
    Okra
    Snow peas
    How can I change the format into this:
    0101
    0101/Long white radish
    0101/Chinese Celery
    0101/Tah tsai
    0101/Round cucumber
    0101/Cherry radish
    0101/fennel
    0101/Small-leaf arugula
    0101/Small wax gourd
    0102
    0102/Green-leaf Lettuce
    0102/Broad-leaf arugula
    0102/UFO squash
    0102/Crystal radish
    0102/Red wave lettuce
    0102/Green endive
    0102/Sponge gourd
    0102/Rose-heart radish
    0102/Butter head lettuce
    0102/Radicchio
    0103
    0103/Chinese mustard
    0103/New Zealand spinach
    0103/Yellow summer squash
    0103/Turnip
    0103/Malabar spinach
    0103/Chinese kale
    0103/Green bean
    0103/Edible rape
    0103/Begonia fimbristipulata hance
    0103/Purple bean
    0103/Cabbage
    0103/Water Spinach
    0103/Okra
    0103/Snow peas
    by useing script?
    thanks
    Teetan

    Hi,
    Perhaps not a problem, try this code ...
    var myFolder=Folder("~/Documents");
    var sourceFile = new File(myFolder + "/"+"sourceFile.txt");
    var logFile = new File(myFolder + "/"+"logFile.txt");
    //var elementList = Array('0101','Long white radish','Chinese Celery','Tah tsai','Round cucumber','Cherry radish','fennel','Small-leaf arugula','Small wax gourd','0102','Green-leaf Lettuce','Broad-leaf arugula','UFO squash','Crystal radish','Red wave lettuce','Green endive','Sponge gourd','Rose-heart radish','Butter head lettuce','Radicchio','0103','Chinese mustard','New Zealand spinach','Yellow summer squash','Turnip','Malabar spinach','Chinese kale','Green bean','Edible rape','Begonia fimbristipulata hance','Purple bean','Cabbage','Water Spinach','Okra','Snow peas')
    //var newElementList = new Array;
    var myPattern = new RegExp("^\\d{4,4}$");
    var myPrefix="";
    if (sourceFile.exists){sourceFile.open( 'r' );
    while( !sourceFile.eof ) {
              var aElement  = sourceFile.readln();
              if (myPattern.test(aElement)){
                  //newElementList.push(aElement);
                  myPrefix = aElement + "/";
                  writeLogFile(aElement)
              } else {
                   //newElementList.push(myPrefix+ aElement);
                   writeLogFile(myPrefix+ aElement)
        //$.write(newElementList);
    function writeLogFile(theString) {
        logFile.open( "a" );
        logFile.writeln(theString);
        logFile.close();   

  • How can I use data merge, within a master, within a book?

    Hi all,
    I am producing an 84pp catalogue for multiple brands.
    I have it set up as:
    1x .indd document per spread
    Master styles within one .indd document for black text, white text etc.
    Book setup to contain all of the .indd files to make up the 84pp book
    Now, my problem is I have to change the footer text and references depending on the brand, so I can have the footers saying 'Call Brand A on 123 4567' or 'Call Brand B on 567 1234' and have various in-text references change from Brand A to Brand B and vice versa.
    I have a data merge on each of the masters in my .indd style source looking at a simple .csv of:
    Brand Name
    URL
    Phone Number
    Brand A
    www.branda.com
    0800 123 4567
    Brand B
    www.brandb.com
    0800 567 1234
    This works fine on the masters within the source .indd.
    But, when I close this master style source and go into another .indd document within the book (after synchronising) I see the <<Brand Name>> container but, when I export the documents it does not populate the book with the data - it keeps the containers.
    Obviously with a normal in-document Data Merge you'd click 'Create Merged Document' but I don't want to export each page, and I have PDF print presets / .joboptions file with settings for the book.
    Any advice on how to get this to work?
    Thanks!
    Andy

    I'm not really following the workflow here, but this seems like it might be better suited to Conditional Text than to Data Merge.

  • Can't use mouse scroll within forms

    Hello,
    I have been working with SCSM 2012 since the public beta was released and I don't know why I haven't noticed this until my analysts said something but the mouse scroll wheel doesn't work within any of the forms. 
    It will scroll if you put the cursor directly over the vertical scroll bar but if the mouse is within the form its self it doesn't work.
    This is one of the most basic functionalities, is there any way to get that to work? 
    What is it about how the form is designed that doesn't allow the scrolling?
    I would be surprised if this is the first post anyone has made about this so if it's a duplicate I apologize.
    Thanks,
    Dustin

    Hi Dustin,
    I can confirm this bug, though if remember correctly, it only applies to some forms, not all. It's been reported on connect already, but please go vote on it:
    https://connect.microsoft.com/SC/feedback/details/753389/scrolling-with-mouse-wheel-in-throughout-the-system-is-inconsistent#tabs
    Regards
    //Anders
    Anders Asp | Lumagate | www.lumagate.com | Sweden | My blog: www.scsm.se

  • Can we use SELECT statement within IF..?

    DECLARE
    A NUMBER;
    BEGIN
    IF (SELECT '2' FROM DUAL) = 2 THEN
    A := 2;
    END IF;
    DBMS_OUTPUT.PUT_LINE(A);
    END;

    Did you tried to execute it. The error itself is an explanation
    ORA-06550: line 5, column 5:
    PLS-00103: Encountered the symbol "SELECT" when expecting one of the following:
    ( - + case mod new not null <an identifier>
    <a double-quoted delimited-identifier> <a bind variable>
    continue avg count current exists max min prior sql stddev
    sum variance execute forall merge time timestamp interval
    date <a string literal with character set specification>
    <a number> <a single-quoted SQL string> pipe
    <an alternatively-quoted string literal with character set specification>
    <an alternat
    ORA-06550: line 5, column 27:
    PLS-00103: Encountered the symbol "=" when expecting one of the following:
    ) , and orNo, we can not
    You can have expressions in IF statement but not a query. Instead, you can capture in a variable and then compare in IF
    declare
    a number;
    begin
    select 2 into a from dual;
    if a = 2 then
    dbms_output.put_line(1);
    end if;
    end;
    /

  • How can I use MS Word within java programming

    Hi everyone!
    I am developing a Java program that will take data
    from an Access 2000 database, and manipulate it,
    display the results graphically and in tables. The
    challenge for me is that I want the program insert the
    graphics and tables into the MS Word template and then
    prompt me to save it as a word * .doc. Do you know
    of any articles or sources of sample code on how to do
    this. The Java environment is Java2, JDK 1.3,
    JBuilder4. The OS environment is XP.
    Regards,
    Farad

    Hi, I also need that package. my e-mail is [email protected] Plese send me that. Thanks in advance
    I have a package that will do this for you. I just
    need to get your email to send an attachment and
    examples.

  • Format String using XML attributes

    I need to format a string based on attributes from a schema. I am attempting to do this using an Assign activity and the java embedded format string function. Here is a simplified version of what I am trying to do:
    oraext:format-string('Service Error COD={0}', bpws:getVariableData('caXMLError','/CAXMLERROR/CLIERR/@COD'))
    When I execute this line I get:
    XPath expression failed to execute. An error occurs while processing the XPath expression; the expression is oraext:format-string('Service Error COD={0} ',bpws:getVariableData('caXMLError','/CAXMLERROR/CLIERR/@COD')). The XPath expression failed to execute;
    The value at bpws:getVariableData('caXMLError','/CAXMLERROR/CLIERR/@COD' is valid because I can create a dummy xsd:string variable and set it equal to that.
    I also tried to wrap the getVariableData with the get_content_as_string methods and neither worked. I also verified that my format-string function is working because when I substitute just a plain string like ‘T01’ the string is successfully created.
    Any ideas what I am doing wrong or how I can accomplish this?

    If the xml document is to be stored in the Oracle database with the XML SQL Utility, defne elements instead of attributes. XSU utility does not map the attributes of an xml document to the database table.
    Further ref:
    http://xml.coverpages.org/elementsAndAttrs.html

  • How can I use the color adjustments interface that shows up for camera RAW on jpeg files?

    How can I use the color adjustments interface that shows up for camera raw on other files types? The HLS controls had the secondary color adjustments (6 colors instead of the 3). Plus, it had same vibrancy and a better Curves interface. Yesterday was the first time I imported raw into Photoshop CS5 and I got that really cool interface. What is that? Can I use that on other file formats?

    Actually I am using the Tradional Chinese Version, when I try to edit the jpg file with camera raw, the system shows that there is no camera raw plug-in. The cmaera raw never work.

Maybe you are looking for

  • Go to a position RELATIVE to the current

    Hallo, For the Homepage of my School I have to make a Page-Overview. I use many (this time 20) different, but same sized, images. These should stay 10 sec. and then should come the next one. If you click (on.Press) at the image, the page should be op

  • Problem loading Compact Flash to PSE6

    Never had a problem until today. Loaded a SDHC (NEF files) no problem. Tried loading Compact Flash (NEF files) and got the following message: "Nothing was imported. The file(s) or folder(s) selected to import did not contain any supported file types,

  • Sync question for iCloud library

    Still trying to get my head around the new Photos app... So I have iCloud photo library enabled on my iPhone amid my Mac. If I take a photo on my iPhone it will then automatically appear in my Photos app on Mac? If I then delete the photo on my iPhon

  • Adobe Reader 9 - Where are the Extended Language Font Packs?

    To all: I have been unable to locate where Adobe is hiding the font pack for Reader 9! I cannot find it anywhere on their site. I can find it for the 8.x Reader, but nowhere for 9. I have found the MUI Reader (which is over 285MB in size) which does

  • Password not working after ID name change?

    Hi, I changed my Apple ID to correspond with my new email address, and when I did the password for the account stopped working on my iPhone even though I only changed the account name, not the password. So I changed the password (they made me use an