Looping a polling process

Hi all
We have a requirement for our process to poll the DB first and in case our condition is not satisfied, we need to poll it again. Is there any basic help note for this.
I am thankful for any inputs
Vijay

I assume you want this function mid process and not to invoke a BPEL process. Therefore the answer is yes this can be achieved.
Create a temp variable and set it to false. Create a while loop with the expression when temp = false. In this loop call you DB routine, if it gets a result then set temp = true.
The issue with this is that this can loop many times. The console struggles to draw a BPEL process if it is large, 1000s of activities. So if an error occurs you may not be able to see the cause.
cheers
James

Similar Messages

  • OSB polling process

    Hi
    I have a requirement where i need to create an OSB process which connects to a DB,executes a sql query at regular intervals. In other words a polling process which executes every 5 min
    Can some one suggest me how to go about it.
    Thanks in advance
    Vamsi

    Use "Poll for new or changed records in a table" operation of DB adapter. Please refer below post to know how to use JCA DBAdapter with OSB 11g -
    http://guidoschmutz.wordpress.com/2010/08/08/oracle-service-bus-11g-and-db-adapter-a-different-more-integrated-approach/
    Regards,
    Anuj

  • Database polling process

    I have created a bpel database polling process to process a single table and use a logical update (mark a column as processed). The table will contain many unprocessed records at any time. I have setup the polling interval 5 Sec and records unlimited for each polling interval and in the process i am calling a stored procedure to insert same data into another database.
    My doubts
    But It fetches only one record and different instance is created for every Row. Is it normal process?
    Why it takes only record after using unlimited option?
    why i am asking this means i don't want to call stored procedure for each and every record.
    I'm using MS SQL Server 2005.
    any one pls let me know what is happening inside.

    Depends on how you define performance. DBs are generally designed for this kind of load so you then need to look at the middleware. The concern I always have is how big can this message get. If it can potentially grow big, I would say over 10MB then you could run into trouble if you haven't tuned for that, 1 10MB file could hang your whole system if not tuned (extreme case to make a point). If you have it running row by row it may take more time but they will go though. Without knowing more about your environment I can't comment too much more, e.g. patterns, hardware, load etc.
    Also polling isn't the most effective way long term to invoke a message. If the table is going to grow large I would look at partitioning as that select statement will deteriorate over time as you don't delete the records once read. ( I'm just trying to give you things to think about it may not be relevant your your site)
    cheers
    James

  • BPEL polling process open new connection every time it poll for data.

    Hi All,
    I've created a BPEL process that with a database polling process for an AS400 table and the log is showing the BPEL process is opening a new connection every second. Is there a way to create a polling process that will only use one connection and keep the connection open.

    This is dependent on the SOA Server configuration not your service. To change that login to EM console and find appropriate configuration entries in administration tab of your OC4J instance.
    Unfortunately I don't know exactly which one (or more that one) is responsible in your case. I didn't trouble about that ever before, for me it can be even million connections as far as it is working smoothly.

  • SSIS Foreach Loop Container not processing all files

    Morning
    Currently there are 3 csv file in the directory. The for-each loop container only process the first file. Everything was working fine then all of a sudden only the first file get's processed. 
    Ty
    W

    Hi 
    Was a problem with the script task message box I was using. The message did not display on the screen. But now I am dealing with a precedence constraint problem. I have 3 precedence constraints that controls which part of the package executes based on the
    file name received. The expression works for 1 file but not for the other 2 files. The expression is basically the same except the difference is that I specify a part of the file that is different. 
    FINDSTRING(@ADO_FileName_Logistics,"hd3",1) > 0 --this works :-)
    FINDSTRING(@ADO_FileName_Logistics,"it3",1) > 0 -- not this 
    FINDSTRING(@ADO_FileName_Logistics,"pr3",1) > 0 -- and not this either 
    Could you perhaps guide me where the problem could be ?
    W

  • PXI: NI 5600, data lost or stored if the loop time of processing is slow than the acquisition.

    I want to know what occurs exactly at the time of L acquisition and the processing data acquired with Ni 5600.  When J write my programme of processing of data in Labview, if the loop time of processing of data is slow than the acquisition, I want to know if PXI put the data in a buffer or then the data are lost. 
    J wait your answer impatiently. You can tell me the documentation were can i read to see the answer.
    Anybody can help me.

    hi abidi,
    First, let me tell you how buffered acquisiton works.
    If you are using Daq mx for continous acquisition, Labview will autoselect the size of buffer depending on the sampling rate specified.
    In sample clock.vi, select sample mode as "continous samples".
    Now, Labview will determine the loop speed for reading data that is written into the AI buffer and hence run  necssary number of AI read loops to retrieve data from the buffer every second.
    this loop speed can also be set by specifying "number of samples per channel" in AI read.vi.
    If you leave this value at default ( -1) labview will function as explained above
    This can also be set by user ,for example, if your sampling rate is 1000 saples per sec and number of samples per channel is 200, the AI Read functions is performed 5 times in a second. 
    read this link to get to know about cyclic buffers and continous acquisition.
    http://zone.ni.com/devzone/conceptd.nsf/webmain/F2DDCBAD754C687C86256802007B8514
    You tell that you are performing some processing on acquired data.
    Now, your prgram has to allocate adequate process time for acquiring,retriving data from buffer and then processing it.
    the time allocated for processing data depends on the kind of mathematical conversions involved. Nevertheless it is an overhead on the acquisition loop.
    this may result in overflow of buffer and data being overwrittien in buffer which results in data loss. An eror message might also pop up to warn that this has happened.
    so if your application permits, here's what you can do to avoid this problem
    First acquire data and save it on system in ascii or binary fromat.
    later retrieve this data file and perform processing /analysis on it.
    if you have any further doubts, plz tell.
    regards,
    Devchander M

  • How to use loop in BPEL Process

    Hi friends
    I have done a bpel process which picks up XMl file using File Adapter and imports the data from the XMl file to oracle db table using DB adapter....
    But here the XMl file which have only one row ..if i want insert the XML file which have two or more rows i want to use loop in my BPEL process how to use the loop in my bpel process ?
    In my BPEL process i have used receive ,transform , and invoke activity where can i use loop in my BPEL process
    Advance Thanks
    AT

    Hi Friend thanks
    Hi Oracler how to make use of transform activity and use a for each in it.?
    iam not getting i try can u please explain some more in brief
    Thanks
    AT

  • Loop in BPEL Process?

    Hello,
    Can I execute a loop in a BPEL Process? Or must I execute the loop in the program which invokes the BPEL Process by SOAP?
    Thanks!

    Just use <while>

  • How to remove data from a loop while loop is still processing

    we are looking to have data continue to stream out of a loop while the loop is still continuing before it is stoped.

    This would be contradictory to dataflow.
    If you need loop data elsewhere in the code while the loop is running, you have many possible solutions (queues, functional globals, locals variables, etc.). Please explain in a bit more details what you want to do. Do you have processes running in parallel? Where should the loop data "flow" exactly?
    LabVIEW Champion . Do more with less code and in less time .

  • Loop-Construct in Process Flow

    Hi,
    there are new constructs in OWB 10g Release2 in process editor.
    Just try to create a process flow with one mapping and a For-Loop-Construct but it does'nt work. Is there anybody use this feature?
    I don't know, what fill into initial value, next value etc.
    Thanks a lot
    Conny

    you can have global variables in process flow.
    highlight the start activity.then in bottom left panel add parameters and their type. these need to be passed runtime. these will be global variables to the processflow.
    hope this helps
    thanks,
    kamal

  • Debug loop seconds in process chain

    hi
    we have an issue. our DTP process has failed in our process chain and the reason was that the transformations were inactive. So we have activated the transformations and have executed the DTP manually. Now when i go to log view of my process chain and  enter REPAIR  on our DTP Process it is asking for DEBUG LOOP ____ Seconds.
    what does debug loop mean...
    IS it the right way to restart our process chain by enterIng  REPAIR DTP after the manula dtp load we have done by activation transformations
    Can anyone suggest me what should the debug loop  --- value I  SHOULD GIVE

    Hi Krishna,
    As mentioned Debug Loop is use to debug a Process Chain....You have to Enter a wait time greater than 0 seconds. And then, activate the Process Chain....
    Then Go to the menu option: Execution -> Execute Synchronous to Debugging........The debug screen will now pop-up.....
    But in your case, I don't think it is required....Since you have alreday executed the DTP manually....
    Now you just need to continue the rest of the chain....
    To do this.....open the chain in the Design View ............In the top where we write the TCODE, there wrire "COPY"..........Enter.....
    It will copy the original process Chain..........Give a technical name of the copied chain............
    Remove all the Processes till that DTP........Including the Start process......
    Create a new Start Process......connect it to the next step.......activate the chain and execute it..........then rest of the chains will get executed fine.......
    I don't think that you will face the same issue in the next run of the Process Chain........
    You can also use the FM : RSPC_PROCESS_FINISH......to continue the chain instead of copying...
    For this you can check the Bog :
    Restarting Processchains
    Do as you wish....
    Regards,
    Debjani......

  • Restart logic and looping logic in process flow

    Is there any restart logic and looping logic in Oracle Warehouse Builder, process flow?

    Hi,
    The answer is NO. The curent version does not have restartable functionality. You have to have your own design for this.
    ta
    mahesh

  • Query on loop in Integration process

    what condition do we give in loop. is it end condition or looping condition?

    Hi,
    Loop is used in BPM when you want to execute series of step repeatedly, you apply loop between those step that you want to repeat so you never give looping condition but an end condition and looping stops when end condition is met.
    You define condition using condition editor and formulate logical condition by  linking 2 operand with an operator(like equal, not equal, exists).
    For more details on condition go through this page
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm">http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm</a>
    Thanks,
    Anu
    Rewars points if helpful

  • Help! OS 10.3 looping in bootup process

    First off, I am a newbie when it comes to setting up an OS X installation. I've been working in OS 10.3 for a while, currently using OS 10.3.9 at work, and have familiarity with the environment. What I'm not familiar with is getting started, and that's why I'm asking for guidance here.
    We bought a used G4 Sawtooth, which just arrived a couple of days ago. I hooked it up and everything looked fine. On booting up, got the chimes and then a welcome to the Mac video and the create an ID part. Walked through this part until I got to the create a .mac account. I don't want to create one, so I left everything blank and tried to go to the next page. Instead it started going through the boot-up. Software Update came up and then crashed. Right now, the system keeps going through a partial bootup (blue aqua background), then the menu bar blinks out, comes back and the cursor keeps going back and forth between normal and an endless spinning beachball. I think it's stuck somewhere in the boot-up cycle. I tried doing a safe boot and got the same results.
    I've been scouring the Mac forums since for some ideas. I have gone into single user mode and repaired the login preferences. Now I get the login window and it lets me in. Then I get the blue screen with the blinking menu bar and the cursor/beachball combo all over again. I never get to see an icon of the hard drive or the dock. I can't even figure out what's on the machine... I also tried booting from the Panther CD and using Disk Utility to repair the hard drive and permissions (which it happily did). No difference. Also resetting the PRAM -- now I'm getting kernel panics on some restarts.
    So, do I need to reinstall Panther? The disks I have are 10.3.2, but it's supposedly running 10.3.9. I have no idea if OS 9.2 is installed separately. (I'm trying to contact the previous owner re some of that info, but haven't heard back yet.) I would really like to set this baby up so it can boot up in both 9.2 and 10.3. I'm going to have to apply all the updates again if I reinstall, right? Also, what about the firmware? What can I do about that, when I can't even get to a point in the bootup process where I can log onto the Internet -- should I order an update CD?
    The machine has two PCI cards. One is a SCSI card, the other has two extra USB ports. Do I need to hunt down drivers for these, as well?
    I'd appreciate it very much if the Mac community here can get me pointed in the right direction. I'd really like to get this machine up and running. Thanks!
    G3 beige (OS 8.6), G4 Sawtooth, G5   Mac OS X (10.3.9)  

    EmDeeH, welcome, Boot up from your install CD (C key down) and when you reach the screen to select a destination drive, click on the drive once, then click on the Option button. Select the Erase and Install option, click on OK.
    Also it is a good idea at this point to select Zero all data, this can be a very time consuming feature depending on the size of your HD, but believe me it is well worth it. You should now be ale to proceed with the install.
    If you are suspect of the Software Updater then cancel when asked and just download the 10.3.9 Combo Update here.
    Repair Permissions.
    Joe
    Power Mac G4 Gigabit Ethernet   Mac OS X (10.3.9)   1.5 GB Ram, ENCORE/ST G4, Tempo SATA, ATI Radeon 9000, Adaptec 4000

  • How to design a loop process in BPEL

    Dear all:
    Thanks in advance for your any suggestion.
    Scenario
    I try to implement a BPEL which runs some activities periodically until meets some condition.
    Problem
    1. How should I goto the start activity of the loop when the process finishes one cycle?
    2. Could BPEL terminate in the middle of the cycle rather than in the end of the cycle?
    Pls apologize the unclear description, waiting for your words.
    BR,
    Robert

    I dont understand the exact requirement, but you may try
    1)desing bpel process A and bpel process B. have your repeatative tasks as a part of process B. Keep Wait Activity in process A to halt process execution. After the wait will be over, the process B will again gets executed. You may like to use While loop withing process A instead of creating process B.
    2) You can think about scheduling BPEL process. the server will make sure to execute the BPEL process at specific time intervals.

Maybe you are looking for

  • The tale of two IPSec Tunnels...

    I'm trying to set up an ipsec tunnel at a particular site, and I am just stumped at this point.  I have two sites I'm working with, a test site on my bench and the other actual site at another location.  Both are ASA 5510's, both are running ASA v8.2

  • Color Management in Bridge CS6

    Hello, I'm having a strange color management issue in Bridge (64 bit). Essentially, Bridge is not displaying images in either the thumbnails or preview pane using the correct color profile. Background: I'm on Windows using a dual monitor setup (both

  • Is There any fm having the same Functionality of CUSTOMER_DUE_DATE_ANALYSIS

    Hi ,          Is there any function module which have same functionality of the fm CUSTOMER_DUE_DATE_ANALYSIS. Here i am facing the Problem is It is showing the amounts in company code currency and we want in Document Currency. Next issue is regardin

  • I cannot see existing DTP from RSA1 / Datasources.

    I cannot see existing DTP from RSA1 / Datasources menu.  I can only see the master data (text,attr,hier) loads.    To get to the DTP I must search under InfoProvider but that doesn't show everything that is in the system.  What role or security assig

  • E2 won't start after hotsync

    I purchased on Ebay a Tungsten E2. I downloaded Palmdesktop 6.2 and did the hotsync. My E2 loops on after that. I see the Palm logo on startup continuously.  Post relates to: Tungsten E2