(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

Similar Messages

  • 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

  • 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

  • How to get committed date for each component after availability check

    Hi,
    When I use CO02 to check material availability, I can see committed date in missing part list and missing part overview for each component in production order. I save it and use CO03 to read missing part list again. The committed date is blank?! How to get the committed date for each missing part in production order?
    Another question, committed date can be displayed in CO24(missing parts info system)? Thanks in advance!!

    Rita,
    Please check that the PP avail. check has replensh lead time turned on. If RLT is turned off & there is no sufficient stock of material, then system can only committ date of 12/31/9999.
    Once you turn on RLT, it will give you some date based on your configured avail check ( that looks at stock or purchase order or production order). That way if there is no sufficient stock of material to satisfy your order system will committ the worst case date which is the RLT.
    On CO24 unfortunately there is no field for Committ date. Hence is it not possible to view commit date. You can only view Committ quantity.
    i am sure this will help you. Else please come back.
    thanks,
    Ram

  • 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>

  • DIfferent OC4J containers for each Component

    So far all the information I've read is related to SCA modeler, etc... I still haven't found info about how this components actually works inside OAS, for example, in ORACLE 10.1.3.3 ESB had to main components, ESB RT and ESB DT.
    My question is, will it be possible to deploy components such as Oracle Mediator, Business Events, BPEL, etc, in different OC4J containers? will Oracle SOA Manager work if these components are deployed in different containers? will High Availability infrastructure for these SOA components will be similar to 10.1.3.3?

    Use the requiredMessage attribute of the input component (or validatorMessage or converterMessage attributes), assuming you are using JSF 1.2.
    Note that the standard messages include the label attribute of the components as a parameter automatically.

  • Where can I find a list of names for each component and functions for each component?

    I have a test I need to study for, and we used this program in class during our labs. Is there any place I can find the names of the components and definitions of their exact functions? Thanks.
    If not I'll post pictures of the VI's we created, hopefully this is a simple question though.

    Try the context help.  When you move the cursor over each item, the help window will show a brief description and in most cases a link to detailed help.  It is generally useful to keep context help turned on while programming.
    Lynn

  • How to replicate an MRL with only the last ver/rev of each component?

    Hi,
    This question is related to an effort to reduce the master.* and lbylog.* filesizes in hopes of achieving more efficiency during processing. Any proven suggestions would be greatly appreciated.
    I would like to replicate an existing MRL, but it should only consist of the last version/revision for each component (faps, fors, grps, logs, dals, etc...).
    Anyone know the quickest way to achieve this?
    I've tried two methods, create a new blank MRL and promote resources from the existing to it, as well as duplicate the MRL and try to remove all older revisions, but these take over 4 hours at a minimum to complete.
    I'm hoping there's a much more efficient option that you could provide.
    Thanks!
    Edited by: 1003412 on May 8, 2013 6:41 PM

    Hi,
    You may use ADD/PROMOTE/EXTRACT functionality in LBYPROC utility. You can find samples & documentation in the below link. You have to use "(last)" in revision/version.
    http://docs.oracle.com/cd/E22583_01/UI/index.html
    Please let me know if you need further assistance in using it.
    Thank you,
    Sruthi Jayasimhan

  • Binding="#{Page....}" for every component?

    Hi all,
    I've just been giving JSC 2ea2 a test drive for the first time and am very impressed.
    It seems that JSC uses a Java bean for every JSP page, and UI* attibributes for each component on the page. Is there any way to change this behaviour? I'm not sure I see the need to have a binding for each component - I've never needed any of these for the JSF apps which I've developed by hand.
    Is it an IDE requirement? Best practises? (eep!)
    Thanks in advance.
    Roger

    Hi,
    Please post messages related to Creator 2 EA at the feedbacks programs portal. The URL is:
    https://feedbackprograms.sun.com/login.html
    Thanks,
    Rk.

  • OSB:Publish to business service with for each in osb proxy message flow

    Hi,
    I have an external application that will make a call to my web-service and post a message to my queue "A" and i need to model my osb component such that it picks the message from that queue " A"and posts it to another queue "B". All this is done without any BPEL involved.
    for publishing the message i have created a business service that publishes a msg to the queue A and my proxy service is modelled such that it subscribes to this same queue A and publishes the msg to another business service (that posts it to a queue B).
    Everything is working fine but i have an issue in modelling my proxy message flow. If an external application sends a bulk msg i need to post the message one by one to my queue B. I have used for-each and Publish to BS but the msg doesn't get posted one by one. i know i am missing something please help me out.
    SOA Suite Version - 11.1.1.3

    Are you sure that your for-each definition is correct? Does the flow within the for-each get executed multiple times?
    You can check this by logging the variable to which you assign the message in the for-each. Don't forget to put the log level to Error, so you're sure that it's logged.
    Let's say you get a list of persons like the following xml in a variable personList
    <Persons>
    <Person>Glenn</Person>
    <Person>Prasanth</Person>
    </Persons>
    Your for-each definition should be the following.
    For each variable: person
    XPath: +./Person+
    In Variable: personList
    You don't mention the Persons element in the XPath expression since it is the root element of the XML. The root element is represented by . (dot).
    In the for-each, the variable person can be used like any other variable.

  • For each sample example  in OSB without Split join

    Hi,
    Any body have sample example for For each in OSB without Split join......Thanks in advance

    I know this is an old thread, but I just ran into this same problem. Wow! That's a crappy 'feature'. I wasted 4 hours this morning on this thinking it was me doing something wrong in my xpath, but nope, you need to cast the counter to an int .......
    I hope they fix things like this in the next major release.
    Thanks for the solution.

  • How To Use OSB's For Each to do this example?

    Hi All Friend:
    My XML From Assign . it SOAP Response Body variable is : RequestBussiNo. The Document is :
    <soap:Body xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <DownloadBusinessNOResponse xmlns="http://www.taiji.com.cn/">
    <DownloadBusinessNOResult>
    <BusinessNO>
    <string>150100110262188</string>
    <string>150100110280225</string>
    <string>150100110284768</string>
    </BusinessNO>
    <ArraySize>3</ArraySize>
    <Result>true</Result>
    <ReturnCode>0000-Interface execute successed!</ReturnCode>
    </DownloadBusinessNOResult>
    </DownloadBusinessNOResponse>
    </soap:Body>
    I Don't Know How to Use For Each Function to each this Document Get the "string" tag text;
    my friend Please help me. thanks.

    Check the below thread and let us know if it helps
    Re: OSB:for-each action working procedure with a sample.
    Re: Assign activity erros with XPath query string returns multiple nodes.
    Regards,
    Ramesh

  • How can i apply different color for each cell in jlist component?

    hi guys i need your help and sorry if my english is very bad..guys how can i apply different colors for each cell in jlist component? for example for the first cell i want to apply color blue, for the second cell i want red, etc... i need your answer guys tnx..
    Edited by: ryrene on Mar 21, 2010 12:13 AM

    ryrene wrote:
    hi guys i need your help and sorry if my english is very bad.
    ..guys how can i apply different colors for each cell in jlist component? for example for the first cell i want to apply color blue, for the second cell i want red, etc... i need your answer guys tnx..I'll see your tnx, and raise you dve bmbrs & nplm.

  • Custom text component with different start and end points for each line

    I'm trying to create a custom component extending textArea in which each individual line in the textArea would have different start and end points.  For example, the start/end points for line 1 might be 20 pixels in the front and 35 pixels at the end but start/end points for line 2 might be 25 pixels in front and 20 pixels at the end, etc.  These boundary values would be passed in.  The width of the entire textArea component would be a fixed size.  The result would be something like this:
         Jack and Jill
              ran up the hill
      to fetch a pail of water
    depending on the boundary values of each individual line of course.  The custom component would take a string and render it in the text component with the appropriate individual line start and end points.  I'm trying to do this by adding the text component to the display with the passed in string and then adding in spaces in the beginning of each line and adding a "/n" at the end of the line wherever appropriate based on the start and end values for that line.
    Just wondering if I'm on the right track and if anyone has any advice on this.

    > Applying the marker places the same icon on all lines of the graph and I need a different one for each
    What do you have selected when you assign the marker? It
    shouldn't apply to all the markers on the whole graph unless you have all the existing markers selected when you apply the new one.
    Assigning marker designs is exactly analogous to assigning bar graph designs.
    If you have a single marker selected when you assign the new design, it will apply to only that graph data point.
    If you use the group select tool (or option-click with the direct select tool) to reclick on an already-selected marker until all the markers for the same line are selected, and then assign a design, the new design will apply only to the selected line. (You can extend the graph by adding more rows, and the new data points will inherit the marker for the line they are on.)
    The thread linked to below demonstrates in more detail how the marker designs are scaled:
    http://www.adobeforums.com/cgi-bin/webx/.3bc10970/0

  • Can it be  a seperate cost component structure for each company code?

    Company Code No 1 Setting:
    Company Code XXXX with Chart of accounts X(Quantity + Value updation in material type)
    In the existing company code(XXXX) ,Cost component structure is defined as
    All company code---->All Plants----> All Costing Variants -
    >Cost component Structure AA
    Company Code No 2 Setting:
    Scenario:
    Now  I am creating a new company Code YYYY) which is  is allowed  for quantity updation  alone and  trying to create a product cost collector to carry out Production confirmation through Repetetive manufacturing (."Error = Cost object component split costed with Value of Zero"
    Can it be possible to have a seperate cost component structure for each company Code?
    Company Code YYYY with Chart of accounts Y which is different from Company code 1(Quantity  alone in material type)
    If possible ,Can anybody provide a procedure to do the configuration of Cost Component structure

    Hello,
    As I understand your question, All the thing which are releted to costing are done only at the controlling area level not at company code.
    As your req diffrent cost componenet for diffrent company code is depend up on how you define the controlling area.
    Hope it will clear you
    Regards
    Ravi

Maybe you are looking for

  • SAP BW UPDATE RULE  ROUTINE

    Data is coming from one cube to another cube. How to restrict the data in update rule by using routine , which is not require in to another Cube. Thanks, Asit

  • Find and replace string in file

    hi, i need to find and replace text (string) data in about 100+ files, i've decided to write a small java program to do it but i'm stuck on how to replace. here is what i'm heading towards: class ReplaceString {   BufferedReader in;   BufferedReader

  • Dock not hide in auto mode

    I have the pref set to auto hide but the dock doesnt - was told to trash ~/Library/Preferences/com.apple.dock.plist and restart. This USED to work but doesnt any more - HONEST!!  Can anybody help me?? Running latest Mavericks, 10.9.1.

  • Long running clear jobs

    Hi, we have been unable to use the BPC Clear and Clear from FACT table packages for many of our clears because they run for too long.    In these situations, we delete the records from the FACT, FAC2 and FACTWB tables using a SQL delete statement and

  • What causes the spinning rainbow ball?

    My MacBook Pro constantly freezes when I'm working in a Word document or while on the internet. What causes this and how can this be avoided? I have cleared the Download and Trash folders, but it didn't help.