How to use For Each execution in OSB

hi all,
I'm confused about the 'For Each' action in OSB. Now, I have a variable('max') which equals to 3 , and I wanna to use For Each action to perform a loop execution, something like for(1 to 3)--
The code is like below:
For Each variable 'value' of variable 'max' ,
Do{
Assign value to variable tempMsg;
Service Callout to PS with tempMsg
What I think is the 'value' should be increased from 1 to 3 itself, and the service callout should be performed by 3 times with '1', '2', '3'. However, it's not, the service callout action was performed once with the value of 3, just like the 1 and 2 were overwritten.
Any idea?

Using 'For Each' activity in OSB
Thanks,
Vijay

Similar Messages

  • How to use For-Each Structure with Multiple node XML structure

    Hi,
      How to use for-each (BPEL 2.0) construct for Multinode XML structure.
    Here is the easy case: I have list of suppliers specified by supplier
    <supplierList>
    <supplier>1</supplier>
    <supplier>2</supplier>
    <supplier>3</supplier>
    </supplierList>
    Now there is a web service http://hostname/getsupplierdetails/wsdl which accepts one supplier at a time.
    like
    <supplier>1</supplier>
    reponse object is
    <message> notfound/found </message>
    But how can I use for each of XML node to call this service and collect the result like
    <supplierList1>
         <Suppinfo>
            <supplier>1</supplier>
            <message> not found</message>
    </suppinfo>
        <suppinfo>
            <supplier>1</supplier>
            <message> not found</message>
    </suppinfo>
    </supplierlist1>
    Thanks

    For looping you use foreach loop and , loop for the number of occurences and when constructing response, adding a new element you have to use bpelx:append.  Good sample at Enterprise Integration: Oracle SOA Suite 11g: Populating a list or an array in BPEL without using XSLT.

  • How to use 'for-each' in transform

    Hi
    I have created a BPEL process which transforms '.csv' to '.xml'
    The input .csv looks like this
    1,09042008,1263,80019.5,HC_D
    2,01011030,J100246,00051779J1002460903,30032008,46.20,LUTON PRIME
    3,01011030,SE1320/4431,46.20,00051779Payment,0.00,2
    2,01011030,J100246,00051779J1002461603,30032008,46.20,LUTON PRIME
    3,01011030,SE1320/4431,46.20,00051779Payment,0.00,2
    2,01011030,J100246,00051779J1002462303,30032008,46.20,LUTON PRIME
    3,01011030,SE1320/4431,46.20,00051779Payment,0.00,2
    so the line which starts with '1' is the header
    the line which starts with '2' is the voucher
    the line which starts with '3' is the detail
    and the input.xsd file looks like this
    <xsd:element name="Root-Element">
    <xsd:complexType>
    <xsd:choice minOccurs="1" maxOccurs="unbounded" nxsd:choiceCondition="terminated" nxsd:terminatedBy=",">
    <xsd:element name="Header" nxsd:conditionValue="1">
    <xsd:complexType>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="Voucher" nxsd:conditionValue="2">
    <xsd:complexType>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="Detail" nxsd:conditionValue="3">
    <xsd:complexType>
    </xsd:complexType>
    </xsd:element>
    </xsd:choice>
    </xsd:complexType>
    </xsd:element>
    I am facing problem when I use transform activity and transform this input .csv to .xml file having i/p and o/p xsd as same type of xsds.
    Using for-each on Root-element copies the entire i/p and using for-each on Individual elements does loop individually.
    Can anyone please help me
    thanks
    Iswarya

    Hi,
    Can you explain in detail, where exactly your stucked?
    Umesh

  • How to use for each loop in XSLT when my source is a multilayout file and db

    How do I use a for each loop in XSLT when my source is multilayout file and db .
    My multilayout file is basically contain 2 kind of data one for employee and another for dependent.
    Now my requirement is I want to read each line of data whether it is it is employee or dependent do a join with db and write it in my target file.
    eg :  File content
    1 RichaKumari 311289 TCS INDIA
    2 KiarnKumar 456782 BRO RichaKumari 311289 INDIA
    2 Ravi            456882 BRO RichaKumari 311289 INDIA
    eg : db Content
    311289 RichaKumari TCS INDIA Bangalore [email protected]
    Now in Final File I need something like this :
    1 RichaKumari 311289 TCS INDIA
    2 KiarnKumar RichaKumari 311289 TCS INDIA
    2 Ravi            RichaKumari 311289 TCS INDIA
    here 1 and 2 are the identifier which will decide which layout to follow .

    Hi,
    I think you'll need two nested for-each's... Something like...
    <xsl:for-each select="$root/row[layout = 1]">
    <xsl:variable name="employee" select="."/>
    ... write employee ...
    <xsl:for-each select="$root/row[layout = 2 and dependentid = $employee/id]">
    ... write dependent ...
    </xsl:for-each>
    </xsl:for-each>
    Cheers,
    Vlad

  • For-each loop in OSB

    Hi,
    I have a senario where i have a varied length XMl is coming to me in response of a service callout, and I need to iterate over it to get the fieldvalue of a particular tag based on its fieldName(e.g FUNCTION_CODE) and assign to a tag of another xml for example
    THE XML Coming as response of service callout is
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
    <getDefaultValueResponse xmlns="http://data.transformation.nab.cz.fc.ofss.com">
    <getDefaultValueReturn>
    <fieldDefaultValue>F</fieldDefaultValue>
    <fieldName>FUNCTION_CODE</fieldName>
    </getDefaultValueReturn>
    <getDefaultValueReturn>
    <fieldDefaultValue xsi:nil="true"/>
    <fieldName>PAYMENT_TRANSACTION_ID</fieldName>
    </getDefaultValueReturn>
    <getDefaultValueReturn>
    <fieldDefaultValue xsi:nil="true"/>
    <fieldName>CHANNEL_ID</fieldName>
    </getDefaultValueReturn>
    <getDefaultValueReturn>
    <fieldDefaultValue>CR</fieldDefaultValue>
    <fieldName>CREDIT_DEBIT_FLAG</fieldName>
    </getDefaultValueReturn>
    <getDefaultValueReturn>
    <fieldDefaultValue xsi:nil="true"/>
    <fieldName>BRAND</fieldName>
    </getDefaultValueReturn>
    <getDefaultValueReturn>
    <fieldDefaultValue>001</fieldDefaultValue>
    <fieldName>ACCOUNT_STATUS</fieldName>
    </getDefaultValueReturn>
    <getDefaultValueReturn>
    <fieldDefaultValue>Mr</fieldDefaultValue>
    <fieldName>NAME_TITLE</fieldName>
    </getDefaultValueReturn>
    <getDefaultValueReturn>
    <fieldDefaultValue>Y</fieldDefaultValue>
    <fieldName>MAIL_RETURN_INDICATOR</fieldName>
    </getDefaultValueReturn>
    <getDefaultValueReturn>
    <fieldDefaultValue xsi:nil="true"/>
    <fieldName>ENTITY</fieldName>
    </getDefaultValueReturn>
    <getDefaultValueReturn>
    <fieldDefaultValue xsi:nil="true"/>
    <fieldName>TRANSACTION_CURRENCY</fieldName>
    </getDefaultValueReturn>
    <getDefaultValueReturn>
    <fieldDefaultValue xsi:nil="true"/>
    <fieldName>VERSION</fieldName>
    </getDefaultValueReturn>
    <getDefaultValueReturn>
    <fieldDefaultValue xsi:nil="true"/>
    <fieldName>TRANSACTION_RATE</fieldName>
    </getDefaultValueReturn>
    </getDefaultValueResponse>
    </soapenv:Body>
    </soapenv:Envelope>
    and i want to assign that value to transactionType tag of
    <?xml version="1.0" encoding="UTF-8"?>
    <tns:sandstonetns xmlns:tns="http://sandstone.response.transactionHistory.app.nab.cz.fc.ofss.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://sandstone.response.transactionHistory.app.nab.cz.fc.ofss.com Sandstone_Data_Transaction_History_Response.xsd ">
    <tns:listOfTransactions>
    <tns:transactions>
    <tns:clients>
    <tns:clientID>tns:clientID</tns:clientID>
    </tns:clients>
    <tns:timestamp>2001-12-31T12:00:00</tns:timestamp>
    <tns:sequenceNumber>tns:sequenceNumber</tns:sequenceNumber>
    <tns:description>tns:description</tns:description>
    <tns:amount>0</tns:amount>
    <tns:accountNumber>tns:accountNumber</tns:accountNumber>
    <tns:debitOrCreditFlag>tns:debitOrCreditFlag</tns:debitOrCreditFlag>
    <tns:*transactionType*>tns:transactionType</tns:transactionType>
    </tns:transactions>
    </tns:listOfTransactions>
    <tns:returnResponse>
    <tns:returnCode>0</tns:returnCode>
    <tns:returnDescription>tns:returnDescription</tns:returnDescription>
    </tns:returnResponse>
    </tns:sandstonetns>
    I want to achieve this using for-each loop...kindly help me as I dont have any idea about how to use for-each loop...

    i want to select a the tag fieldValue based on the data in tag fieldName for eg if i iterate over the whole response XML searching for fieldName=FUNCTION_CODE then I whuold get the value 'F' and then I would assign this value 'F' to the transactionType tag of the XML
    <?xml version="1.0" encoding="UTF-8"?>
    <tns:sandstonetns xmlns:tns="http://sandstone.response.transactionHistory.app.nab.cz.fc.ofss.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://sandstone.response.transactionHistory.app.nab.cz.fc.ofss.com Sandstone_Data_Transaction_History_Response.xsd ">
    <tns:listOfTransactions>
    <tns:transactions>
    <tns:clients>
    <tns:clientID>tns:clientID</tns:clientID>
    </tns:clients>
    <tns:timestamp>2001-12-31T12:00:00</tns:timestamp>
    <tns:sequenceNumber>tns:sequenceNumber</tns:sequenceNumber>
    <tns:description>tns:description</tns:description>
    <tns:amount>0</tns:amount>
    <tns:accountNumber>tns:accountNumber</tns:accountNumber>
    <tns:debitOrCreditFlag>tns:debitOrCreditFlag</tns:debitOrCreditFlag>
    *<tns:transactionType>tns:transactionType</tns:transactionType>*
    </tns:transactions>
    </tns:listOfTransactions>
    <tns:returnResponse>
    <tns:returnCode>0</tns:returnCode>
    <tns:returnDescription>tns:returnDescription</tns:returnDescription>
    </tns:returnResponse>
    </tns:sandstonetns>

  • How to get multiple output formats for each execution of the report?

    Hi,
    Is it possible to get multiple output formats for each execution of the report? If so can you provide some details?
    Thanks

    In Reports 6i, Reports Distribution was introduced. This allows you to run the report once and output to a number of destinations with a different format. It also allows you to distribute individual sections within a report to different destinations in different formats.
    The Destinations for a Report to distribute to are defined either in a distribution file and passed on the command line or inside of the report definition.
    To add a destination to the the report definition, bring up the property palette against the report object and then select the "Distribution" property under the "Report" node. This will bring up a dialog that allows you to create a distribution list. You can then test this list by selecting "file->distribute" from the menu.
    To run a report that is to be distributed through rwrun60, you need to add "distribute=yes" to the command line. It will pick up the destinations from the report definition. If you add "destination=<filename>" then it will pick up the destinations from the specified "<filename>" and ignore the destinations in the report definition.
    Note: if "distribute=yes" is specified on the command line then the destype/desname/desformat parameters will be used to format the report (ie: which printer/display to use during formatting for sizing objects) but will be ignored when the report is sent to the destinations.

  • For each action in OSB

    Hi,
    I am new to Oracle Service Bus 11g. Could you please explain how the for each action in osb can be used.
    I have xml which is received from another service. I want to loop for each item and send this userId to particular callout.
    <execute service="myHistory">
    <input>
    <param name="userList" type="list">
    <item>
    <param name="userId">143<param>
    </item>
    <item>
    <param name="userId">14<param>
    </item>
    <item>
    <param name="userId">14<param>
    </item>
    <item>
    <param name="userId">143<param>
    </item>
    </param>
    <param name="dateFrom">01/01/2001</param>
    <param name="dateTo">01/01/2009</param>
    </input>
    </execute>
    Thank you
    Edited by: OlegS on Apr 20, 2011 4:38 AM
    Edited by: OlegS on Apr 20, 2011 4:39 AM
    Edited by: OlegS on Apr 20, 2011 5:30 AM

    Is it a part of for each activity? Where should I put it in ?
    I see only these fields in each activity:
    -for each variable
    -xpath
    -index variable
    -count variable.
    I can't find any example how to use this kind of activity. Could you please explain how to fill these fields for my case.
    Thank you.
    Edited by: OlegS on Apr 20, 2011 6:27 AM

  • (For Each) component in OSB

    I am trying to use “For-Each” component to loop through the bulk message to be de-bulked and publish individual messages from the loop. However the loop does not execute multiple times. It goes through the for-each component only once. The bulk message is ";" separated text messages.
    There are about 4-5 different parameters to be set for the component; like count, index, in param and xpath.
    What best values to be put in them so that the component yields desired effects?
    Thanks in advance.

    Thanks for getting back on this.
    I have converted my input message to XML using MFL transform.
    Now the bulk messages in XML looks like following:
    <?xml version="1.0" encoding="UTF-8"?>
    <BUlkMessage>
    <Transaction>Message1</Transaction>
    <Transaction>Message2</Transaction>
    <Transaction>Message3</Transaction>
    <Transaction>Message4</Transaction>
    <Transaction>Message5</Transaction>
    </BUlkMessage>
    Following are the parameters of FOR-EACH component:
    For each variable: v_forEach
    XPath: v_XML.BUlkMessage.Transaction (here v_XML is the above XML)
    In Variable : v_XML
    Index Variable: i
    Count Variable: count
    With this the the flow used to exit the for each component with out getting executed.
    What correction needs to be done for execution of FOR-EACH component so that the loop would iterate for 5 times. i.e. same number of times that of the bulk message.
    Regards
    Subhendu

  • After reopening Firefox does not remember which desktop was used for each window. Can you help, please.

    I'm using two displays and several desktops on my Mac (OS X 10.9.4).
    When I need to restart Firefox, it remembers to open windows from last session in correct display, but does not remember which desktop was used for each window. So when the application starts, it opens all windows on a desktop which is currently active instead of reopening them on desktops used during the last session. How to fix the issue?

    Hi Nerva,
    Thank you for your question, there is a add on I have been recommended to custom set up of opening windows in new monitors. It's called [https://addons.mozilla.org/en-US/firefox/addon/monitor-master/ Monitor Master].
    However, in regards to the session remembering which monitor the window was open in, in the profile folder there is a file that stores window positions and dimensions. It is called localstore.rdf.
    Please stay tuned for more investigation, as there are definitely bugs on file for similar issues. Pinpointing it is the hard part.

  • How to use Real time execution trace toolkit with Dual-core processor??

    hi there
    the situation as follows:
    i have a computer (PC and Laptop) types with Dual-core processors, and am trying to do simulation using Multi-core technology and based on different simulation scenarios...starting from sequantial processing,.......Piple lining processing strategy. so that i can differentiate the time delay between those types of processing based on (Using 1 processor then dual-core processor Computers)
    my question is: As i read through Ni's white papers i saw many notes refer to Real-time execution trace toolkit to investigate the (processing-time , etc) of multi-core processors in processing diffenent algorithms. My algorithms are to be run on 1 computer with dual-core processor BUT, not in real time environments, that is ( No hardware to be connected to my pc) only algorithms running on my pc....
    So, is it possible to use Real time execution trace toolkit  or anyother tools in LabVIEW to show processing-delays and/or anyother timing critical issues without using my application for  real- time hardware.???
    in other words: how to use Real time execution trace toolkit  in non-hardware and/or real-time scenarios???
    please help me in this.
    Any suggestion, comments, feedback.....is absolutely highly appreciated
    thanks a lot in advance
    Labview Lover

    Hey,
    The Realtime Execution Trace Toolkit only works for NI RT Targets.
    But you can use the Desktop Execution Trace Toolkit, just search for it under ni.com.
    Christian

  • Using 'For Each' Method in re-usable ADF library application

    I'm trying to build a re-usable RSS library application from the following (using JDev Studio Edition Version 11.1.1.4.0 on Windows 2008 Server):
    http://blogs.oracle.com/dana/entry/reusable_adf_library_rssfeedre
    I'm bascially creating the application from scratch, but I run into problems when trying to drag and drop the 'output text' data controls into the jsff page fragment. The instructions say that "For Each" iterator was used as the operation to iterate through these fields but I don't see For Each appearing as any option for the Operations anywhere in the data controls. The only options i see are CREATE, DELETE, EXECUTE, FIRST, LAST, NEXT, PREVIOUS, RemoveRowWithKey, SetRowWithKey, SetCurrentRowWithKey. After droppipng the data controls and going to the 'Bindings', i can't see options for using For Each either.
    Can anyone please tell me how to add the For Each method as per the above instructions? Thank you!

    <af:forEach> will be sufficient for most user's needs, it does not work with a JSF DataModel, or CollectionModel. It also cannot be bound to EL expressions that use component-managed EL variables..
    http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_forEach.html.
    if you want to iterate then you have to use the programatic iteration using the rowSetIterator

  • Use for each operation

    how can I use for each operation in jdeveloper 11.1.1.5.0 in adf fusion web application to show images stored in database?

    How are the images stored in the database?
    If it has the path - create the VO and show the images using foreach by creating a tree/table binding in the pageDef as follows:
    <af:forEach items="#{bindings.BillToStateLOV.rangeSet}" var="item">
    <af:image id="si9" source="#{item.src}"/>
    </af:forEach>
    If the images are stored as BLOBS, take the approach as mentioned in the blog post:
    http://baigsorcl.blogspot.com/2010/09/store-images-in-blob-in-oracle-adf.html
    Thanks,
    Navaneeth

  • How to use for all entires clause while fetching data from archived tables

    How to use for all entires clause while fetching data from archived tables using the FM
    /PBS/SELECT_INTO_TABLE' .
    I need to fetch data from an Archived table for all the entries in an internal table.
    Kindly provide some inputs for the same.
    thanks n Regards
    Ramesh

    Hi Ramesh,
    I have a query regarding accessing archived data through PBS.
    I have archived SAP FI data ( Object FI_DOCUMNT) using SAP standard process through TCODE : SARA.
    Now please tell me can I acees this archived data through the PBS add on FM : '/PBS/SELECT_INTO_TABLE'.
    Do I need to do something else to access data archived through SAP standard process ot not ? If yes, then please tell me as I am not able to get the data using the above FM.
    The call to the above FM is as follows :
    CALL FUNCTION '/PBS/SELECT_INTO_TABLE'
      EXPORTING
        archiv           = 'CFI'
        OPTION           = ''
        tabname          = 'BKPF'
        SCHL1_NAME       = 'BELNR'
        SCHL1_VON        =  belnr-low
        SCHL1_BIS        =  belnr-low
        SCHL2_NAME       = 'GJAHR'
        SCHL2_VON        =  GJAHR-LOW
        SCHL2_BIS        =  GJAHR-LOW
        SCHL3_NAME       =  'BUKRS'
        SCHL3_VON        =  bukrs-low
        SCHL3_BIS        =  bukrs-low
      SCHL4_NAME       =
      SCHL4_VON        =
      SCHL4_BIS        =
        CLR_ITAB         = 'X'
      MAX_ZAHL         =
      tables
        i_tabelle        =  t_bkpf
      SCHL1_IN         =
      SCHL2_IN         =
      SCHL3_IN         =
      SCHL4_IN         =
    EXCEPTIONS
       EOF              = 1
       OTHERS           = 2
       OTHERS           = 3
    It gives me the following error :
    Index for table not supported ! BKPF BELNR.
    Please help ASAP.
    Thnaks and Regards
    Gurpreet Singh

  • All my files just disappeared from my pages and numbers apps on my mini iPad. Under Usage, both still show 350 MBs used for each. Ideas?

    all my files just disappeared from my pages and numbers apps on my mini iPad. Under Usage, both still show 350+MBs used for each. Ideas?

    Hello r253,
    The following troubleshooting steps can help get your documents to reappear on your devices.
    Documents I've updated on my Mac or uploaded from iCloud.com don't appear on my iOS device
    If you're using an iWork for iOS app (Pages, Numbers, or Keynote), check the iCloud system requirements and make sure that you're using the latest version of iWork. For third party apps, check the documentation that came with the app, or check with the app developer to make sure the app supports iCloud. App Store application descriptions often indicate whether the app supports iCloud.
    Go to Apple () menu > System Preferences on your Mac. Click iCloud and confirm that you're signed in to iCloud and the Documents & Data checkbox is selected.
    After opening your iOS app, wait a few minutes for the documents to appear. Your iOS device may not have connected to iCloud since changes were made to the document at iCloud.com or on your other devices.
    Try creating a new document on your iOS device, then check again for the documents from iCloud to appear.
    Go to Settings > iCloud > Documents & Data and confirm that Use Cellular Data is turned on.
    Confirm that you're connected to the Internet by checking for an Edge, 3G, 4G, LTE, or Wi-Fi icon in your device's status bar. Test your connection by opening apple.com in Safari.
    Try resetting iCloud Documents & Data service.
    iCloud: Troubleshooting Documents in the Cloud
    http://support.apple.com/kb/TS3991
    Cheers,
    Allen

  • How to view response time for each execution in OEM 12c Cloud Control

    Hi All,
    I want to view response time of each execution for my SOA composite in OEM 12c Cloud Control. Can anyone tell me how can I achieve that?
    Thanks in Advance!!

    You should open an SR and support can assist you with it. The only current case where that feature is known to not work is in the case where the Dehydration Store is running on RAC. Otherwise, it should be possible to get it to work. The main thing is that you need to have DB configuration properties (host, port, sid) that have a 3-way string match between the JDBC data source configuration in the WLS server, the JDBC properties you add to the Monitoring Properties of the SOA Infrastructure target, and the connect settings of the Database target in EM that matches to the dehydration DB.
    If there isn't a match in all 3, the Dehydration Diagnostics page will not work. But again, to look into your specific setup, you should file an SR and work with support.

Maybe you are looking for

  • Budget report in sap CO

    Dear Expert, I need report that can show this information : cost element, cost center, description, proposed budget in year xxxx, approved budget in year xxxx. Is there any SAP standard report which suitable with this requirement? Thank you.

  • Dynamically change LOV in oracle apps forms

    Hi, I have one requirement the Item LOV need to change based on the condition. If the condition is X then it use the X record group and attach to the LOV (This record groups is I have already created at design time). I can able to attache the record

  • Enterprise Management Console : I Broke It

    All: The purpose of this post is to request advice on a problem I am having with accessing the EMC. I am running Oracle 10g and the installation went well. I was able to access the em via IE using http://<hostname>:<port>/em. For example, my url was

  • Can I still download CS6 in my Creative Cloud subscription?

    I have CS6 on all my machines at work and home, but a new machine was only offered CC versions. How can I get CS6 instead?

  • I have downloaded itunes.  How do I start the IPAD?

    How do I get the ipad to work?  I have downloaded itunes, but when I turn the ipad on, it shows the cable and the itunes logo only.