FlowN invoking the same output vairable

Hi there,
This is a little difficult to explain.
I have a process that takes in document information including multiple reviewers for the douments.
At one point in the process i need to set up multiple threads against the number of reviewers in the document information (It is a variable number of reviewers).
This was my plan:
Set up a FlowN that counts the number of reviewer nodes. Then inovoke a askReviewer Web service and wait for their reply asynchronously.
It's working! I'm using a bit of Java Exec to receive the flowN varialbe, from there find the reviewer name then send over the document info with the reviewer name.
BUT:
The reviewer name doesn't change on the output of the invoke. I am debugging the Java and it is susccessfully picking up the correct reviewers. But basically the same XML is being sent to the webservice.
I have a couple of questions, is a FlowN a true thread? Are the variables replicated across each thread, so they are seperate or are they shared?.
There is no doubt that a pick would be the best option for this design, but i can't allocate this dynamically (variable amount of reviewers.)
I hope this explained well!
It'll be great to hear of anybody who has tried the same thing.

embarrasing stuff, i'm replying to my own thread an hour later.
I fixed it and it was pretty obvious.
The key is that the webservice i call uses input and output variables which are global to the process. Therefore although the flow is threaded the global variables are not.
so it's just a case of creating a scope inside your flow process, then assigning the invoke web service variables as local scope variables. therefore on each thread a new variable is created!
Superb.

Similar Messages

  • The same output message for different partner roles

    Hi All,
    Is it possible to create automaticaly in PO the same output message type ( for example - 'mail') for different partner roles( for example - 'VN' and 'OA') ?
    If it's possible,then how?
    Thanks.
    Liza

    Hi,
    Thank you ,but I have a next problem:
    When I  tried in transaction mn05 to add second record for the same output type for other  partner roles.
    I got error message "The condition record entered already exists".
    Regards,
    L.

  • Two print programs using the same output type in t-code v/40

    Hi,
    I am trying to use the same Output type RD00 to print diferent forms.
    In t-code v/40 we can fill a second Processing but how this work?
    Can someone tell me more about this?
    The final goal is to print diferent forms according to different companies.
               Thank you and best regards
                         João Fernandes

    Hi,
    It is not possible to have 2 different routines to be assigned to one output type in the procedure. I think when you say 2 routines, you are saying 2 logics or you are saying the subroutines KOBED and KOBEV of the routine.
    In all reqmt routines, which is in discussion now, only one of the subroutines will be always called, though I dont know unfortunately which one is this. As you said, that only one of your processing logic works, that is the right subroutine area where the second logic should also be coded. So please move your code from the inactive subroutine area to the active subroutine area. Now you should be able to see both the validations being active.
    Hope this helps. If the case is different, please let us know.

  • Java Core Program :: Dynamic Object Creation for Classe & Invoking the same

    Hi,
    I need to create a dynamic object for a class & invoke it.
    For eg: I have a table in my DB where all the names of my java classes are stored. I need to call name from the table of the DB and call that class dynamically in my java program.
    ResultSet_01 = executeQuery("select classname from class_table where class_descrip = 'Sales Invoice' ");
                   while(ResultSet_01.next())
                        String class_name = ResultSet_01.getDouble("classname");
                   }Now using the string in class_name that is fetched from ResultSet_01, I need to create an object for the class_name & invoke the class that is been created with the same name.
    Thank in advance.
    Regards,
    Haider Imani

    Well for a start since a class name is a String, not a number you'd better start by getting the name with getString() not getDouble().
    You need to work with fully qualified names, (FQNs) like "com.acme.myproject.MyDynamicClass", not just the bare MyDynamicClass.
    The next question is where the .class files for the dynamically loaded classes are stored. If they are part of your normal program code, on the class path, then you can use Class.forName to load the class and return a Class object. If they are in some special place you'll need to create a URLClassLoader and get the Class from that.
    Generally, when you load a class this way, it should implement some known interface, or extend some know abstract class. By placing objects of the dynamic class in a reference to that interface you can use the methods defined in the interface.
    The usual way of getting an instance of a dynamic class is to call newInstance() on the Class object.

  • Controlling the same output from multiple locations in vi

    Hi
    I have a very basic question which I do not seem to find the answer to though.
    When programming a VI for measurement and control using a standard DAQ device, for example 6281 I
    often want to control the same digital out pin from various places in the program.
    F.ex. In the beginning I want P0,0 to be high, then later somewhere deep in the program in a while loop I want
    to set P0,0 to low. How do I do this. I keep getting the message that the resource is reserved.
    This I have the same question with AI, AO and Digital in.
    The DAQassistant does not work and doing this more manually by creating a task, stopping it and clearing it has been problematic.
    Can anyone help? Hopefully with a demonstration VI if you have it?
    Thanks for reading all the way down though  

    You should create a functional global that stores tasks for each port.
    In the following image I have some code that should work.
    It looks up the addressed port and creates a new task if needed, otherwise it will call the old task.
    Be sure to call this VI with 'Stop?'=True at the end of your program.
    Ton
    Message Edited by TonP on 10-11-2008 08:41 PM
    Message Edited by TonP on 10-11-2008 08:42 PM
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!
    Attachments:
    DO access.png ‏15 KB

  • Results showing the same output for any query execution

    Guru's
    Whenever user selects  query in RSRT --> and click on java view it is prompting for user ID and password. After giving the login credentials, the out put remains the same for any query query as input. Please let me know how can we fix this? THis is occuring for only one user. Even I tried copying the user to a new user. THe new user is not facing this problem.
    Regards,
    Suresh

    try clearing the portal cache then try it. ask somebody else to log in and try it, could be authorization.

  • If condition for the same output

    hi all.
    i have issuelike this.
    i have 2 selection s_indate and s_chdate for dates coming from the same table vbrk-fkdat.
    now the filtering shud be based on firsts_chdate.
    if the date comes in the range of s_chdate but not in s_indate,it should be dleted n not be displayed.
    while,if it falls in both the rnges,then i shud b displayed.
    while user can enter one at a time whether in s_indate or s_chdate,then it shud ouput accordinlgy,
    plz suggest.

    Hi Tanisha,
    If I am correct you have to pick data from one table considering filtering oo one field only.
    so you can put both select options in one range table and fetch data from vbrk.
    populate final range table on the the values entered in the selection screen,populate for the existing select option only.
    Now you have all the value on the basis of both selection (select options).
    you have to put the condition according to the requirement.
    1. if the date comes in the range of s_chdate but not in s_indate,it should be dleted n not be displayed.
    Means only the value in s_indate should be displayed, it should not consider value in s_chdate as all the values in s_chdate which are not a part of s_indate will be deleted.
    if s_indate is not initial.
          loop at t_vbrk to w_vbrk where firsts_chdate in s_indate.
          *populate iniernal table.
          endloop.
    else.
       if s_chdate is not initial.
           loop at t_vbrk to w_vbrk where firsts_chdate in s_chdate.
           *populate iniernal table.
           endloop.
       endif.
    endif.
    2. Same as above.
    Regards,

  • Help! Invoking the same Web Service from multiple mxml components

    Hi,
    I'm building an application that interacts with a Web Service.  The application (App A) has a tabNavigator with two tabs (Tab1 and Tab2).  Tab1 contains a custom component (Comp A) and Tab2 contains another custom component (Comp B). Tab1 is the first tab, and Tab2 is the second tab.
    Comp A and Comp B each handles the "creationComplete" event by invoking an operation, Op1,  of the Web Service.
    The problem is, when App A starts up, Comp B can successfully invoke Op1 in its creationComplete handler, but Comp A cannot.  In fact, Comp A's call to Op1 does not return.  Comp A is created before Comp B.
    If the application has only one tab (either Tab1 or Tab2), each Comp can successfully invoke Op1 at application start-up.
    Comp A and Comp B each has its own declaration section for the Web Service and CallResponder for Op1.
    I'm using the trial version of Flex Builder 4 and new to flex application development.  Any help in debugging this problem would be greatly appreciated.
    Much thanks,
    --Hyong

    I've been shown by a colleague (who is more experienced in .Net than am I) that this can be achieved by adding the target web service's WSDL to my invoking web service as a Web Reference.  The original logic I was using, though working from VB 6 and Active Server Pages, can be simplified through the use of the WSDL definition for implementation in .Net.
    Thank you for your responses,
    -- Chris

  • Can Lightroom invoke the same Photoshop functions as Bridge can?

    Bridge has a tools menu with a Photoshop item sub-menu. It can invoke a number of Photoshop functions such as "Image Processor" and Auto "batch" functions on a selection of images from within Bridge. Does Lightroom also have this capability?

    Lightroom replaces the functions of many Photoshop batch capabilities, with its own Export and Publish and Print to JPG features. The usual expectation for a LR user, would be, that Lightroom carries out the creation of different sized JPG versions etc. It is in some ways more efficient and economical at this than Photioshop is.
    The specific batch tools you mention, are in effect scripted extensions of PS which I don't believe LR can access. In any case, the images that LR itself manipulates may include entities that Photoshop tools could never access, for example Virtual Copies.
    That said, it is possible to reference a Photoshop Action in a "droplet" file, add this droplet to a list where Lightroom can see it, and then invoke this as a postprocessing step as part of a batch Export initiated by Lightroom. So, if you are creating a set of JPG (TIFF, whatever) images which need standard treatment as far as resizing, colourspace etc but also that need some kind of a standardised Photoshop operation to happen, this is a way to do it.
    The PS postprocessing in this scheme, happens only to a brand-new, separate,  exported file. If you want PS to modify the master image as viewed in LR, then you are getting more into LR's standard external editing function instead - which is done image by image (and which similarly spins off a new image version and new file saved on disk). Any file-changing editing of the type that Photoshop does, it completely at odds with the nondestructive approach of Lightroom - like chalk and cheese, and this is reflected in the quite compartmented workflow under which these happen.
    RP

  • How do I play two computer's music to the same output?

    I have a PC connected to a very good pair of speakers. I also have a notebook. I use iTunes in both. Is it possible to play my notebook's music (from my notebook) but send it trough wifi, so it plays on my PC's speakers?
    Thank you.

    Hello gamerino,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    iTunes: Using AirPlay
    http://support.apple.com/kb/HT5922
    Best of luck,
    Mario

  • Same output type getting triggered twice upon saving the document

    Dear SDNers,
    I have a shipment Document.
    Upon saving it the same Output type gets generated twice. ( in a gap of 1 second)
    Clarification needed:
    1. Please guide as to where i need to look for the error as to why same output is getting triggered twice  simultaneously( gap of 1 second).
    2. i have checked in the processing routine associated with it. Is it the right place?
    P.S. I had posted another similar thread. Closed it since i felt it lacked clarity.
    Regards,
    SuryaD.

    Hi,
    Fetch the data from Nast table for that document number
    Check the vstat  . if it is 0 then use the below function module.
    CALL FUNCTION 'RV_MESSAGE_SET_PROCESS_STATE'.
    Then it will update the existing single record for the first time .
    Next time on wards you will get the multiple records for te document in the Nast table.
    For that you need to change the VSTAT status as per the requirement.
    Hope this might solve your problem.
    With Regards,
    Sumodh.P

  • Receiving the same operation twice causes execption

    Hi,
    We modified your example "109.CorrelationSets" to let the seller invoke AsyncPurchaseResponse twice, and let the buyer receive twice. The seller can send the message twice, however, the process generates a error message:
    "NullPointerException" has been caught by a catch block,
    after receiving the first AsyncPurchaseResponse, and the instance is cancelled.
    The question is, can we invoke the same operation more than once? I saw a similar question in the post "Extending the 109.CorrelationSets scenario ". I know I can avoid this probblem by using different operations in the same portType, but in general this won't work because you don't know how many times the operation will be used.
    I attached the modified seller.bpel and buyer.bpel. There is no change in wsdl files.
    Thanks in advance for the help!
    Feng
    buyer.bpel
         <sequence>
              <!-- receive PO from customer-->
              <receive partnerLink="Customer" portType="buyer:Buyer" operation="purchase" variable="input" createInstance="yes">
                   <correlations>
                        <correlation set="PurchaseOrder" initiate="yes"/>
                   </correlations>
              </receive>
              <!-- send PO to seller-->
              <invoke partnerLink="Seller" portType="seller:Seller" operation="AsyncPurchase" inputVariable="input">
                   <correlations>
                        <correlation set="PurchaseOrder" initiate="no" pattern="out"/>
                   </correlations>
              </invoke>
              <!-- receive POResponse from seller-->
              <receive partnerLink="Seller" portType="seller:Buyer" operation="AsyncPurchaseResponse" variable="output">
                   <correlations>
                        <correlation set="PurchaseOrder" initiate="no"/>
                        <correlation set="Invoice" initiate="yes"/>
                   </correlations>
              </receive>
    <!-- *********** add one more receive here *********-->
              <receive createInstance="no" partnerLink="Seller" portType="seller:Buyer" operation="AsyncPurchaseResponse" variable="output">
                   <correlations>
                        <correlation set="PurchaseOrder" initiate="no"/>
                        <correlation set="Invoice" initiate="no"/>
                   </correlations>
              </receive>
              <invoke partnerLink="Customer" portType="buyer:Customer" operation="onResult" inputVariable="output">
              </invoke>
         </sequence>
    seller.bpel
         <sequence>
              <!-- receive PO from buyer-->
              <receive partnerLink="Buyer" portType="seller:Seller" operation="AsyncPurchase" variable="input" createInstance="yes">
                   <correlations>
                        <correlation set="PurchaseOrder" initiate="yes"/>
                   </correlations>
              </receive>
              <assign>
                   <!-- initialize the output -->
                   <copy>
                   </copy>
              </assign>
              <wait for="PT3S"/>
              <!-- send INV to buyer-->
              <invoke partnerLink="Buyer" portType="seller:Buyer" operation="AsyncPurchaseResponse" inputVariable="output">
                   <correlations>
                        <correlation set="PurchaseOrder" initiate="no" pattern="out"/>
                        <correlation set="Invoice" initiate="yes" pattern="out"/>
                   </correlations>
              </invoke>
    <!-- ************send another INV to buyer*************-->
              <wait for="PT3S"/>
              <invoke partnerLink="Buyer" portType="seller:Buyer" operation="AsyncPurchaseResponse" inputVariable="output">
              </invoke>
         </sequence>

    Hi
    any resolutions on this ? i run into a similar error where i call a Service(WSIF -EJBBinding) in a loop.
    thanks
    Sam

  • Two different Resultsets for the same query (running at the same time)

    I am using the Thin Driver for Oracle 8.1.6. I am invoking queries in multithreading mode (each thread has his own connection to the oracle DB). If i am invoking the same SQL-Statement in two different threads nearly at the same time, only the ResultSet of the first query is complete. The ResultSet of the second query is not complete (the number of tuples differs each time I run the program). Principally the two ResultSets should be the same (no changes are done at the same time in the DB), but they are not.
    Anybody knows this problem and knows how to solve it? Principally read accesses on DBs should not make such trouble ...
    I hope anybody can help me.

    Pranav,
    As this BADI is having option checked 'Multiple use'. You can implement multiple implementations.
    You need not to deactivate the existing implementation.
    Reddy

  • Possible to use both optical out AND regular line out at the same time?

    I currently have my computer speakers (logitech z560) hooked up to the mac pro via regular stereo jack in the back. I have an extra receiver that I would love to hook in to supply me with some needed sound for movie watching and what-not.. Is there a way to enable both line out - digital and line out at the same time?

    You can set DVD Player's "Audio output" to "Digital Out" in its "Disc Setup" preference, while other applications use Line Out.
    You could use a splitter on Line Out to feed your current speakers, and analog Line In on your receiver. When you want sound to both systems, set the receiver to Line In. When you want to watch DVDs, set it to Digital In. This will give you surround sound if the DVD has multichannel sound, and the receiver supports more than two channels.
    If you really want the same output on the Mac Pro Line Out, and Digital Out, you can use the "Auxiliary Device Output" effect in Audio Hijack Pro
    <http://www.rogueamoeba.com/audiohijackpro/>
    It will not support more than two-channel audio.

  • Is it possible to display list alv and grid alv in the same screen

    Hi
    There are methods to display more than 1 alv grid in the same screen by using block append grid . In the same manner its available for more than 1 list alv report display by REUSE_ALV_BLOCK_LIST_APPEND.
    My question is I want to display 1 alv list and 1 alv grid report in the same output screen .
    Please let me know how to do it ?  I will definetly appreciate the answers.
    Thanks!!

    Hi Anindita,
                                      Previously i ad told v cant display two lists together in same screen. But u can use Block ALV for this. Use FM "REUSE_ALV_BLOCK_LIST_APPEND.
    In OO u can use Cl_GUI_EAST_SPLITTER_CONTAINER for displayin more than two lists in same screen.
    If useful giv points
    Regards
    Vanitha P

Maybe you are looking for