How to parse a comma delimited by the string in BPEL 11.1.1.4

I have the MyTag element in xml. I get value for MyTag as Eng, [email protected] (separated by commas) in the BPEL workflow.

I need to parse this string separated by commas in BPEL and extract

Eng AND [email protected]


How can I do this in BPEL? What is the process?

Hello

If you get the value like Eng, [email protected] and say that tempVariable Eng, [email protected] data. So, here you go...

substring-after (bpws:getVariableData('tempVariable'), ','), use it in the Expression Builder on the side of the copy operation and that assign to the variable (variable database entry). This will give you [email protected]

substring-before (bpws:getVariableData('tempVariable'), ','), use it in the Expression Builder on the side of the copy operation and that assign to the variable (variable database entry). This will give you in English

I hope this helps...

Thank you
N

Tags: Fusion Middleware

Similar Questions

  • How to pass an xml CDATA in the string element when OSB call a webservice?

    How to pass an xml CDATA in the string element when OSB call a webservice?

    I have a business service (biz) this route to exploitation of a Web service.

    An example of this legacy Web service request:
    < soapenv:Envelope xmlns:soapenv = 'http://schemas.xmlsoap.org/soap/envelope/' xmlns: ex = "example" >
    < soapenv:Header / >
    < soapenv:Body >
    < ex: run >
    < ex: arg > <! [CDATA [< searchCustomerByDocumentNumber >
    < documentNumber > 12345678909 < / documentNumber >
    [[< / searchCustomerByDocumentNumber >]] > < / ex: arg >
    < / ex: run >
    < / soapenv:Body >
    < / soapenv:Envelope >

    type ex: arg is a string.

    How to pass this structure CDATA webservice in OSB?

    Steps to resolve this problem:
    1 create an XML schema. For example:


    elementFormDefault = "unqualified" >


              
                   
                        
                             
                             

                        

                        
                             
                        

                   

         

         

         
         

    With this XSD, XML can be generating:


    documentNumber

    2 create an XQuery query to create a ComplexType searchCustomerByDocumentNumber. For example:
    (: pragma bea: element global-element-return = "searchCustomerByDocumentNumber" location = "searchCustomerByDocumentNumber.xsd" ::))

    declare namespace xf = "http://tempuri.org/NovoSia/CreateSearchCustomerByDocumentNumber/";

    declare function xf:CreateSearchCustomerByDocumentNumber($documentNumber_as_xs:string)
    as {(searchCustomerByDocumentNumber)}

    {$documentNumber}

    };

    declare the variable $documentNumber as XS: String external;

    XF:CreateSearchCustomerByDocumentNumber ($documentNumber)

    3. in your step in proxy pipeline add to assign the created the XQuery function call from the number of the document of your payload.
    Assign to a variable (for example: called searchCustomerByDocumentNumberRequest)

    4. create an another Transformation of XQuery (XQ) to create a request to the existing Web service. For example:
    {fn - bea: serialize ($searchCustomerByDocumentNumberRequest)}

    For more information about xquery Serialize function:
    41.2.6 fn - bea: serialize()
    You can use the fn - bea: serialize() function if you need to represent an XML document as a string instead of as an XML element. For example, you can share an XML document through an EJB interface and the EJB method takes the string as an argument. The function has the following signature:

    FN - bea: serialize($input as item()) as xs: string

    Source: http://docs.oracle.com/cd/E14571_01/doc.1111/e15867/xquery.htm

  • How to get a paragraph that contains the string selected in FDK?

    Hello

    I am writing a program that extracts content of the paragraph that contains a selection string. This program runs in the interaction point menu. When the user click on the menu item. The process as follows:
    1. find a chain on a document, for example: F_ApiFind ("ABC").
    2. the F_ApiFind ("ABC") API returns the F_TextRangeT structure.
    3. the string "ABC" has been highlighted on the document.

    Here's my question:
    How can I write code to locate an object ID paragraph (pgfId) that contains the string (or object) 'ABC '?.
    As the 'ABC' object belongs to the current paragraph, how can I get section ID (pgfId) and then get the content of the entire paragraph
    without a loop through FP_FirstFlowInDoc, FP_FirstTextFrameInFlow, FP_FirstPgf and FP_NextPgfInFlow.

    Thank you very much for you help,

    Thai Nguyen

    Hi thai,

    Paragraph ID is returned as part of the structure of F_TextRangeT, as the Member "objId". Let's say you have:

    F_TextRangeT tr;

    ... then:

    TR = F_ApiFind (...);

    On an action to search with success, "tr" will contain the pgfId of the paragraph. I'm assuming you're looking for a string that is entirely contained in a paragraph, in which case two ways contains the ID of the paragraph:

    tr.beg.objId

    TR.end objId

    If you want to retrieve all the text in the paragraph after the search, you could do something like: (attention, incomplete code!)

    F_TextItemsT ti;

    F_TextRangeT tr;

    F_ObjHandleT docId.

    ...

    TR = F_ApiFind (...);

    TR. Beg.offset = 0;

    TR.end.Offset = FV_OBJ_END_OFFSET;

    TI = F_ApiGetTextForRange (docId, & b, FTI_String);

    .. After that the text of the paragraph will be included in the ti TextItems structure. Navigate through this structure can be difficult and I will renounce any discussion about it for now unless you need more help. There is good information in the developer reference as to its use.

    Russ

  • How to write good model to replace the string after a static string?

    Select regexp_replace ("Do replace not CONSTANT" VAR_123 "needs to be replaced", "CONSTANT" [A-Z0-9] ',' CONSTANT "REPLACE") twice;

    The output is:
    Does not replace CONSTANT 'REPLACEAR_123' SHOULD be replaced

    Output available is:
    Does not replace CONSTANT 'REPLACE' SHOULD be replaced


    What is the right model to solve my problem?

    Assistance is needed.


    Concerning

    possible alternatives

    /* replace everthing in between "" */
    select regexp_replace('Do not replace CONSTANT "VAR_123" should be replaced '
                        , '"([A-Z0-9_]*)"' ,'"REPLACE"')
    from dual;
    
    Do not replace CONSTANT "REPLACE" should be replaced 
    
    /* replace UPPER letters, Numbers and Underscore after keyword CONSTANT an in between "" */
    select regexp_replace('Do not replace CONSTANT "VAR_123" should be replaced '
                        , '(CONSTANT) "([A-Z0-9_]*)"' ,'\1 "REPLACE"')
    from dual;
    
    Do not replace CONSTANT "REPLACE" should be replaced 
    
    /* replace alphanumerica values including underscore after keyword CONSTANT an in between "" */
    
    select regexp_replace('Do not replace CONSTANT "VAR_123" should be replaced '
                        , '(CONSTANT) "([[:alnum:]_]*)"' ,'\1 "REPLACE"')
    from dual;
    

    One of the problems is that did ' t take you into account how the underscore character '_' is recognized.

  • Replace the string in BPEL

    Hey all,.

    I need to replace the & with a + since the & just breaks the bpel process. Any ideas on how to make a replacement string to find all the the & and replace it with the +, I looked in the transformation and the entitlement activity, but did not find all the functions to help me with this.

    Any help would be appreciated.

    Thank you

    You can create an XSL template for string replacements, see the link given below:
    http://geekswithblogs.NET/Erik/archive/2008/04/01/120915.aspx

    If you are familiar with Java you can add a Java embedding activity and string replacement using the method of the replacement of the java.lang.String class.

    Diakité
    http://SOA-HOWTO.blogspot.com

  • How to write the comma delimited numbers of configuration file

    Hello

    In the attached Configuration File.vi write, I am trying to crush several whole decimal in the keys 1 and 2 of the attachment Test.ini. I am to convert the array of integers in a string. Because of this, the string written in the ini file is now being bracketed by apostrophes. What should I do to write the string without the apostrophes, as in the Test old.ini file?

    I appreciate your help. Thank you.

    Best regards

    Peter

    See here:

    http://forums.NI.com/T5/LabVIEW/configuration-string-keys-in-LabVIEW-2009-changes/m-p/1147371#M50489...

  • How can I escape commas inside the function listQualify?

    I have

    am a newbie in coldfusion. I need help. My database has records of names of companies as: abc, Inc. For now I'm using this query:

    SELECT DISTINCT COMPANY FROM ComapanyTable WHERE (Company IN (#ListQualify(form.cCompanyList2, "'", ",")#))

    This problem is that it separates CBA, Inc..

    SELECT DISTINCT Company FROM CompanyTableWHERE (Company IN ('abc',' Inc.','xyz','Inc.'))

    I need to get the list, as it is, i.e. as: "abc, Inc.", "xyz, Inc." so that I can later insert these values into a new table.

    Insert the code:

    <cfquery name="insertPair" datasource="#DSN#" dbtype="ODBC"> INSERT INTO tblChildCompanyToParent (Parent_Account_ID, Child_Account_ID) SELECT DISTINCT <cfqueryparam value = "#form.pCompanyList#" CFSQLType = "CF_SQL_VARCHAR">, Company FROM CompanyTable WHERE Company IN (<cfqueryparam value="#ValueList(insertSelect.Company,';' )#" CFSQLType = "CF_SQL_VARCHAR" list="true" separator=";">) </cfquery>

    Code of the selection list

    <select multiple name="cCompanyList2" id="cCompanyList2" class="selectCCompany" data-attribute="selCCompany" size="10"> <cfloop query="childCompanyList"> <option value="#childCompanyList.Child_Account_ID#">#childCompanyList.Company#</option> </cfloop> </select>

    Y at - it anyway to solve this problem.

    Thank you for your help.

    I managed to fix it.

    I posted the solution to StackOverflow

    SQL - how can I escape commas inside the function listQualify? -Stack overflow

    Thank you once again!

  • How to display a set of results in a comma-delimited list?

    I have a query that selects an attribute in a table:
    Select the role of sport_roles

    What is the best way to display the result set as a "comma-delimited list" and "display as text"?
    for example, player, coach, referee

    Thank you.

    I think you mean comma-DELIMITED.

    The easiest way is dependent on the version. And yours is?

    In 11.1.0.6 and especially I prefer to use WM_CONCAT.
    http://www.morganslibrary.org/reference/wm_functions.html

    Tom Kyte, to asktom, provided a named function, STRAGG.

    A version number will be essential in all cases.

  • How can I backup archivelog generated in the last 5 minutes?

    Version: 11.2.0.3
    Platform: RHEL 6.2

    How can I backup archivelog generated in the last 5 minutes? Here's what I've tried so far?

    RMAN > archivelog backup all the format ' / rman_backups/Nov21Bkp/archiveTest_%U' until TIME ' sysdate-5/1440 ';

    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-00558: error occurred during parsing of order entry
    RMAN-01009: syntax error: found ' until the ': expected an of: ' archivelog, auxiliary, backupset channel, backup, controlfilecopy, copy, current, data bases, datafilecopy, datafile, db_recovery_file_dest, delete, diskratio, filesperset, force, format, include, keep, maxsetsize, noexclude, nokeep, not more, pool, recovery, reuse, section, jump, skip readonly, spfile, tablespace, tag, to, comma, (,»
    RMAN-01007: line 1 column 81 file: entry standard

    RMAN > archivelog backup everything until THE format ' sysdate-5/1440 ' HOUR ' / rman_backups/Nov21Bkp/archiveTest_%U';

    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-00558: error occurred during parsing of order entry
    RMAN-01009: syntax error: found ' until the ': expected an of: ' archivelog, auxiliary, backupset channel, backup, controlfilecopy, copy, current, data bases, datafilecopy, datafile, db_recovery_file_dest, delete, diskratio, filesperset, force, format, include, keep, maxsetsize, noexclude, nokeep, not more, pool, recovery, reuse, section, jump, skip readonly, spfile, tablespace, tag, to, (,»
    RMAN-01007: line 1 column 23 file: entry standard

    You cannot specify both 'ALL' and ' FROM/UNTIL TIME '.

    Also if you want the archivelogs generated in the last 5 minutes, you should use TIME.

    If you want the archivelogs generated until 5 minutes ago (and not the last archivelogs), you should use up to the HOUR.

    Hemant K Collette

  • IN parameter is the string of column names I want to SELECT delimited

    Hi guys,.

    Please bare with me. Not a pro at writing stored procedures.

    What I try to do is to pass a parameter of 'IN' to the proc. The setting is a varchar2 which is a comma-delimited string.
    I want to put this string in the SELECT statement.

    This setting is called "P_SelectFields".

    The value in the passage in the proc is like:
    P_SelectFields = ' CUSTOMERS SUM (CLI_SERVED) AS SUM (EI_INTC) + SUM (NEI_INTC) AS INTERVENTIONS,
    SUM (TOT_EMPRTN) AS EMP_RETURN, SUM (TOTAL_RTS) AS SCHOOL_RETURN
    "


    That's what I've got and I know that it works, if I put the string instead of the parameter it works. !

    PROCEDURE GET_NATIONAL_TOTAL_RESULTS (P_SelectFields IN varchar2, P_AGREEMENT_TYPE_IND AGREEMENT_TYPE.agreement_type_ind%TYPE, io_cursor in SYS_REFCURSOR)
    IS
    BEGIN
    OPEN FOR Io_cursor

    SELECT year_desc,
    P_SelectFields - that's where I want my partameter go.

    OF SPF_RESULT_VW
    WHERE r_num = 1 - FILTER for the LAST PERIOD for EACH YEAR
    and agreement_type_ind = P_AGREEMENT_TYPE_IND - desired FILTER FOR Agreement_type_ind
    GROUP BY year_desc
    ORDER BY year_desc
    ;

    END GET_NATIONAL_TOTAL_RESULTS;


    That's what I'm after you run the proc.

    YEAR_DESC = 2011-2012
    : B2 = SUM (CLI_SERVED) ACE, SUM (EI_INTC) CUSTOMERS + EMP_RETURN SUM (NEI_INTC) AS OF THE INTERVENTIONS, SUCH AS SUM (TOT_EMPRTN), SUM (TOTAL_RTS) SCHOOL_RETURN

    Where is ': B2 = "come from?".

    What can I do to make my parameter is "picked up" by the proc?

    Thank you

    Firstly: in relational databases, there is no distinction between 'fields '. Tables is not 'fields', they have columns.
    It is my experience that that call columns 'fields' basically treats the database as a flat file system. It's a very bad idea!

    If you want to pass as a parameter column names, you need dynamic SQL.
    However, PL/SQL was invented to reduce the analysis and using of the dynamic SQL, you'll at least soft-parse each statement.

    Dynamic SQL is obviously in the documentation, but most people here think that they don't need to read the documentation.

    So, for once
    glance

    OPEN io_cursor FOR
    'SELECT year_desc,'||
    P_SelectColumns||
    ' FROM SPF_RESULT_VW '||
    'WHERE r_num = 1 '|| --FILTER FOR LATEST PERIOD FOR EACH YEAR
    'and agreement_type_ind = P_AGREEMENT_TYPE_IND '||-- FILTER FOR desired Agreement_type_ind
    'GROUP BY year_desc '||
    'ORDER BY year_desc'
    ;
    

    Please note that I have renamed the parameter.

  • Comma-delimited list

    Hello

    In the following list, how can I keep the word Social, behavior and Economics in one word instead of

    Social

    Behavioral

    and Economics

    < cfloop list = 'Biological and Social Sciences, behavior and economics' index 'i' = delimiter = ',' >

    < cfoutput > #i # < br / > < / cfoutput >

    < / cfloop >

    The list should look like:

    Biological Sciences

    Social, behavioral and economic sciences

    Thank you!

    Use anything other then a comma to delimit the list.

    
     #i# 
  • Is it possible to convert an array of values in a comma-delimited-list?

    Hello
    I want to transform the following dataset:

    Parent | Child
    ----------------------
    Charles | William
    Charles | Harry
    Anne | Peter
    Anne | Zara
    Andrew | Beatrice
    Andrew | Eugénie

    in this:

    Parent | Children
    -----------------------------
    Charles | Diana, Camilla
    Anne | Peter, Zara
    Andrew | Beatrice, Eugenie

    In other words, I would like to make a list of values from some of the major and produce them as a comma-delimited list.

    I know that his is possible in T - SQL, even if the method is a bit of a nasty hack. Is this possible in PL - SQL?

    Thaks in advance
    Jamie
    SQL>  with t  as(
     select 'Charles' parent, 'William' child from dual union
     select 'Charles', 'Harry' from dual union
     select 'Anne', 'Peter' from dual union
     select 'Anne', 'Zara' from dual union
     select 'Andrew', 'Beatrice' from dual union
     select 'Andrew', 'Eugenie' from dual
    )
    --
    --
    select parent, rtrim(xmlagg(xmlelement(e,child || ',')).extract('//text()'),',') childs from t
    group by parent
    /
    PARENT     CHILDS
    ---------- --------------------
    Andrew     Beatrice,Eugenie
    Anne       Peter,Zara
    Charles    Harry,William       
    
    3 rows selected.
    

    Don't know how Diana & Camilla suddenly jumped in many... ;)

  • How to convert the string with numbers in the table of Boolean 2D

    Hello

    I have input a string with comma separated numbers 1,192 (starting at 1).

    This string must be converted to a table 2D-boolean. Each number that appears should be true, not true rest.

    The 2D table consists of 4 times of 0.47 Boolean values.

    1.48--> [0.47] numbers [0]
    49.96--> [0.47] numbers [1]
    Numbers 97.144--> [0.47] [2]
    145.192--> [0.47] numbers [3]

    If a '1, 49, 97 145' input string put all [0] [0.3] true.

    How can it be easy/fast resolved?

    Thanks for help

    Break the string of numbers in a table of numbers.  (Spreasheet String to Array).

    In a loop For, index with each issue of this table.  Use in the range and Coerce to see if it is in the range of numbers.  (You can put this in a loop For as auto good indexing through the ranges).  If it's in the range, then use subset replace table to activate the corresponding item in a real.  If this is not the case, do nothing.  Maintain the table of Boolean in a shift register.

    Repeat this step for each number in your table.

    (What is a class assignment?)

  • How to get the string (specified by row and column) of txt file with labview

    Hello world

    How to get the string (specified by row and column) of txt file with labview

    THX

    As far as I know, a text file has no column.  Be more specific.  Do you mean something like the 5th word on line 4, where the words are separated by a space, and lines are separated by a newline character?  You can read from the spreadsheet String function and set the delimiter to a space.  This will produce a 2D channels table.  Then use the table to index and give the line number and column number.

  • How to parse RSS feeds using QML (waterfalls)?

    Hallo native devs! I am a beginner in native development and I want to know how to parse RSS feeds using QML cascading?

    I see the example like this:

    Page {
        content: Container {
            background: Color.White
            ListView {
                rootIndexpath: [1]
                dataModel: XmlDataModel { source: "model.xml" }
            }
        }
    }
    

    but, can I to ' source: ' use 'http://example.com/rss.xml'?

    If Yes, how can I analyze?

    Thanks for the help!

    The QML in your message assumes that the XML file is local, if you use a remote XML file then you will need to firstly using a few backend Qt C++ network code, download, then you can use QML.

    I would recommend from the Cascades sample quotes to get an idea of how XmlDataModel analysis work can start to look into the network access code and the file.

Maybe you are looking for