Database Poller to start the control flow

I am relatively new to BPEL/SOA. I need your help in the design process
I have a design as following:
I have to essentially bring data from DB2 database into Siebel. On the Siebel side I have the Webservices created.
1. rowid, tablename, isTheRowProcessed, timestamp.is the structure of my polling table's structure.
The tablename column will tell me which application table has been updated/inserted with new data.
2. The Database Poller will poll the Polling table every minute and see there is a new row. The BPEL will read the tablename column and fetch the name of the table.
3. Depending on the name of the tablename, a specific Web Service will be invoked which will insert the data into the Siebel system.
for example, if the new row is:
10 TableA NotRead 8/19/2012 10:10:10
The poller should the read above and make it "10 TableA Read 8/19/2012 10:10:10"
Then WebServiceA should be invoked with some data.
Here is My question:
Should it be Async BPEL process or Synchronous process that should have the Poller?
Will Poller kick start sub BPEL processes?

I have a DB poller which has only one row (always just one row) and the Poller would update flag to N from Y.
The DBPoller is set to run every two seconds. I have a flag that is initially set by human to Y. The Poller will flip the value of the flag to N (from Y) and initiate a one-way BPEL process and if the BPEL process will set the Flag back to Y if successful. If the BPEL process fails then the BPEL process will leave the value of the flag to N and the BPEL process sends a mail to the users about the failure. The users after fixing the issue (may be some of the Web Services called by the BPEL are unavailable), will set the flag to Y and the process will continue.
The above intention is supposed to create create an instance id only after entire BPEL is executed. The poller is configured to execute every 2 seconds.
instance_id starttime BPEL Execution time
1 5:00:00 30 seconds
2 5:00:02 20 seconds
3 5:00;04 25 seconds
The above is the scenario is my current execution.
I thought that the second instance would start at 5:00:30 because the flag value would be N from 5:00:00 to 5:00:30 and the BPEL process would set the flag's value to Y at the end of execution of the BPEL process (instance 1). But, to my surprise 2nd instance is starting at 5:00:02 (just because the poller is configured to run every 2 seconds). Even if the poller is configured to run every 2 seconds the poller should not create BPEL process because the Poller at 5:00:02 should see the flag value of N (The poller should only create an instance if the flag's value is Y).
Please clarify this behavior.

Similar Messages

  • How to use watch the control flow in the funation using dbms.output_line?

    Hi All,
    I have written a function which is working fine.
    But i want to see the control and data flow in the function.
    I want to see particular variable in the flow.
    How can i do that?
    Thanks in Advance,
    Vinay

    user12281717 wrote:
    I want to see particular variable in the flow.
    How can i do that?The question is where/when/how you want to see it. PL/SQL is a server-side language. A PL/SQL process runs entirely inside an Oracle server process.
    That server process does not have a display terminal or a STDOUT device that you can view interactively for output of the process while it is running.
    One option, and a common one, is to use DBMS_OUTPUT. This writes to a static PL/SQL session buffer (variable). When the process complete, the client (TOAD/SQL-Developer/SQL*Plus/Java/etc) can interrogate this buffer and display the contents of that to the end-user/developer.
    But this is not interactive..
    If you want to see interactively what is happening, there are couple of methods. You can run a client session that acts as a database pipe server. It reads data from a pipe and immediately displays it. In your PL/SQL process you then write to this pipe - where the other client process, running the pipe server, can immediately read and display it. See DBMS_PIPE for details.
    You can use the same approach using a log file. Again, the PL/SQL process writes to a log file and you, using a client command like Unix/Linux tail, displays the latest additions to the file. See UTL_FILE for details.
    If you are merely interested at what processing step a PL/SQL process is at, you can record that data in the action and module columns of your session (visible via the v$session and v$sqlarea views). See DBMS_APPLICATION_INFO for details.
    You can create a procedure that inserts a log entry into a log table, using an autonomous transaction. This means that when your PL/SQL code calls this procedure to log something, that log data is immediately committed in its own transaction and visible to other clients.
    There are other options too like advance message queues, or creating long operation entries, and so on. Which one to use depends entirely on your requirements.
    The details of the above interface packages are available in the [Oracle® Database PL/SQL Packages and Types Reference|http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/toc.htm] guide.

  • How to bypass errors in the control flow in a foreach loop in SSIS?

    Hi All,
    Can anyone please get me through the solution for the below scenario:
     - I have multiple XML files existing in the source system from where I need to read the data from each XML, validate and pull to staging database. 
    - So, to read the XML files from source, I have a foreach loop which will get the XML files from the source folder one by one and executes.
    - There are multiple data flow tasks, script tasks, SQL tasks etc in the foreach loop to validate the business requirements.
    Question: If there is an error in any of the component in foreach loop, it should log the error, come out of the loop from that point and pick up the next file with out stopping the execution. How can I achieve this?
    Thanks,
    Sri

    Hi Sri,
    According to your description, when there is an error in any of the component in Foreach Loop Container, you want to continue processing rest of the loop after recording the error file details.
    To achieve your requirement, the first thing you need to do is create an OnError event handler for the Data Flow (or any other child executable). Once the event handler is created show the system variables in the variables window, locate the Propagate variable
    and set it to false.
    For more details, please refer to the following two blogs:
    http://www.codeproject.com/Articles/384690/In-SSIS-how-to-continue-a-for-each-loop-container
    http://visakhm.blogspot.in/2013/03/error-handling-in-ssis-loops.html
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • From where i can understand the control flow and architecture of JVM?

    i want to know control flow and architecture of JVM?
    Where i can know from?
    if some one wish to explain you can here also.

    makpandian wrote:
    No it s not broken.
    As per your experience,tell me some links.Per my experience I don't need links. I could build the VM both from the general level and the specific levels by referring only to the VM spec.
    And I read the book I suggested, first edition, years ago. Although with many other books.
    Conversely if I wanted to find a link now then I would use google.

  • I created an Execute SQL Task in ssis package to get the counts and store it in the variable and I use the variable in the control flow

    I always get the count as 0 for the variable. I am not sure what I am doing wrong. Please let me know if any of you know the fix.
    Thanks

    Here is the query I used now. Still same result
    SELECT (select  count(*) from usr_all_mbrs where PREMIER_YN = 'Y') AS count1
    SELECT
    (select 
    count(*)
    from usr_all_mbrs
    where PREMIER_YN
    =
    'Y')
    AS count1

  • Why does the REQUIRED security flag allow the control flow inspite failure

    Hi,
    I have a small query regarding the security flags of for LoginModule(s).
    When a LoginModule is given a required flag, it allows the login mechanism to continue checking the other login modules. However, the overall login mechanism will fail even if one single module with the required flag has failed.
    Can someone help me understand why is it so. The only reason i can think of is to allow some sort of debugging.
    Thanks

    Thank you for your reply.  I changed the error handling as you suggested on the 2nd lookup to redirect to unmatched rows.  Now I get all greet.  I don't have the conditional split as in your diagram.  But also, nothing appears to have
    happened in the DB.  Aren't the rows in my text file supposed to be added to the FactCurrencyRate table?
    How do I get a conditional split?
    Rich P
    OK, sorry I forgot to reply you back.
    Conditional Split was just dummy task. Ignore it.
    Manipulate the data in such way that you get matching records.
    Inside Source, for first 2 rows I put the dates which are available in DimDate.
    1.00010001,ARS,7/1/2005 0:00,0.99960016
    1.00010001,ARS,2/5/2006 0:00,1.001001001
    1.00020004,ARS,9/5/2001 0:00,0.99990001
    1.00020004,ARS,9/6/2001 0:00,1.00040016
    1.00050025,ARS,9/7/2001 0:00,0.99990001
    1.00050025,ARS,9/8/2001 0:00,1.001001001
    Then in OLE DB Destination, I loaded the rows to TestFactTable.
    (Now, you don't even need NO MATCH OUTPUT as there are matching records here)
    Cheers,
    Vaibhav Chaudhari
    [MCTS],
    [MCP]

  • Exception trying to start the JRE Control Panel

    I've run into some persistent problem with seemingly any version of the JRE on my WinXP system. Whenever I try to start the control panel, either from the Windows Control Panel UI, or from the Java system tray icon, I get an exception error:
    java.lang.ArrayIndexOutOfBoundsException: 365
         at com.sun.deploy.panel.UpdatePanel.setText(Unknown Source)
         at com.sun.deploy.panel.UpdatePanel.actionPerformed(Unknown Source)
         at javax.swing.JComboBox.fireActionEvent(Unknown Source)
         at javax.swing.JComboBox.setSelectedItem(Unknown Source)
         at javax.swing.JComboBox.setSelectedIndex(Unknown Source)
         at com.sun.deploy.panel.UpdatePanel.reset(Unknown Source)
         at com.sun.deploy.panel.UpdatePanel.<init>(Unknown Source)
         at com.sun.deploy.panel.ControlPanel.initComponents(Unknown Source)
         at com.sun.deploy.panel.ControlPanel.<init>(Unknown Source)
         at com.sun.deploy.panel.ControlPanel.main(Unknown Source)
    This is what happens on the first attempt after the OS has booted, and subsequent attempts just result in nothing obvious happening (no control panel, no error, nothing).
    I currently have JRE 1.6.0_07-b06 installed, but this seems to be happening with any JRE version I try. I had remnants of older JRE's under C:\Program Files\java, and I went through ensuring that each was removed (if I could get rid of it via Add/Remove Applications, I used that) until I was down to zero other than the MS JVM that is inherently part of Windows. I then installed the current Sun JRE and still have the problem. :-\ So not sure what it is the JRE control panel is trying to do here, nor how to fix it other than reinstalling the OS (and I'm not that desperate, but it really is annoying).
    I figure it's probably something still hanging around in the Registry (<shudder!>) and poking around under HKLM\SOFTWARE\JavaSoft, I see keys for various old versions under the \Java Plug-in, \Java Runtime Environment, and \Java Web Start keys, most of which look like references to directories or files which no longer exist on the system. Any thoughts as to whether I can just safely delete these keys as a sanity check (jeez I wish Sun had steered clear of the Registry)? What I'm wondering is since the JRE control panel (when it works :-) shows you a list of installed JREs it found, I'm wondering if these bogus versions listed in the Registry are causing the ArrayIndexOutOfBoundsException.
    Any ideas are greatly appreciated. Thanks in advance!

    start JRE control panel

  • CAN WE START AND STOP THE CONTROL CENTER SERVICES USING OMB?

    Hi All,
    I'm new into the world of OMB and currently i have been working with OMB scripts and i just need to know whether i am able to start the control center services using OMB...?
    Any help will be highly appreciated.
    Regards,
    Shenoy

    Thanks ALL, I GOT IT, but I used other solution.
    Since I installed and uninstalled the Oracle several times, it keeps also many different Services for the listener. I don't know why, it didn't create a Service for my actual instalation with its path. In other words, all the services remained in the services.msc panel, had the path that was already removed from the Windows folder.
    Then what I did, was that I picked one service, took its name (OracleOraDb10g_home1TNSListener), went to regedit to [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\OracleOraDb10g_home1TNSListener] and simply changed the image path that was setted for the one that was removed (C:\oracle\product\10.1.0\Db_2\BIN\TNSLSNR ) for mine that is installed right now
    (C:\oracle\product\10.1.0\Db_1\BIN\TNSLSNR). Nothing more and finally works.
    I have tried something in the services.msc panel before, as you can see in this forum at the thread "I can't start listener in the Control Painel/Admin Tools/ Services", but I never got
    success.
    Appreciate your time!!

  • Control Flow task colors are not changing in SSIS

    Hi,
    When I am running my SSIS package colors of "Control Flow" task are not changing from Yellow to Green or Yellow to Red however when I double click on dataflow task I found that colors are getting change for the components available inside dataflow
    task. This mean only colors of my control flow task are not changing.
    Can anyone help me with this issue. Because of this issue I am not able to find out whether any of my control flow task is running successfully or not espicially in case of "Execute SQL Task"
     Thanks

    Related thread:
    http://stackoverflow.com/questions/9473121/yellow-on-the-control-flow-no-color-within-the-data-flow-whats-going-on
    Kalman Toth Database & OLAP Architect
    Free T-SQL Scripts
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Programatically calling control flows from java code

    Hi all,
    I have a bounded taskFlow that uses pageFragments. This flow is a region in a page(.jspx).
    In my page fragment, I have a inputComboboxListOfValues with a ValueChangeListener code in a java bean.
    I want when a value is changed, to programatically call "controll flow" (this one has: "From Activity Id" -the page fragment with that inputComboboxListOfValues, and "To Activity Id" - the default Activity on this task Flow).
    So when the value change, practically I want to restart the flow programatically and pass the selected value as input parameter.
    Since the inputComboboxListOfValues is not like a button where in the "Action" property you can set the Control Flow and navigate somewhere, the only option I have is to programatically cause navigation from java code (example: the value change listener code).
    Can this be achieved?
    Any advice is helpfull.

    Hi,
    Absolutely, you can do it using the NavigationHandler. Try the following in you value change listener:
    FacesContext context = FacesContext.getcurrentInstance();
    NavigationHandler handler = context.getApplication().getNavigationHandler();
    handler.handleNavigation(context, null, outcome);
    // Render the response after that phase, the button actions should not be called
    context.renderResponse();
    // Add the following line if you want to prevent further value change listeners to be called
    // throw new AbortProcessingException();Regards,
    ~ Simon

  • Are unique GUIDs required in the data flow task in SSIS?

    Hi,
    I have previously used SQL server 2008R2 to develop packages.  I was told not to copy and paste packages, or create templates with tasks on the data flow because this leads to multiple packages with the same GUID, the consequence of this might be calamitous
    problems at runtime when the engine can't distinguish between tasks in different packages.
    My process was to create templates with Control flow tasks only, manually create the dataflow tasks and then use bids helper from codeplex to regenerate GUIDs (this regenerated the GUIDs at the control flow level only).
    I am now using SQL 2012. I have looked and seen that if I copy and paste a package the GUIDs at the data flow level are also copied.  So my questions are:
    1) Does having the same ID in different dataflows cause problems as I was led to believe?
    2) If it does has this been addressed in some way in SSIS 2012? and what is the best way of working around this given I have many similar packages to develop?
    Thanks,
    Dan

    SSIS doesn't really lend itself well to creating templates.
    SQL 2012 is much improved when it comes to copy and pasting tasks, dataflows and transformations between package designs, other than the usual issues with missing connection managers.

  • Bounded-Task-Flow Page Fragment Control Flow Help

    jDeveloper: 11.1.1.0.2
    I am having an issue trying to figure out the correct way to use control flow cases between a bounded-task-flow with page fragments and an unbounded-task-flow page. We have taken the approach in our application to have a few shell / container pages to host bounded-task-flows made up of page fragments to facilitate re-usability and to speed up development. There are 4 or 5 shell pages on the applications unbounded-task-flow. As of now, we have about 20 page fragments that are implemented as bounded-task-flows. These fragments don't do much now, meaning there is only a single fragment in each bounded-task-flow. The issue I am having is trying to invoke a control flow navigation action from one of the fragments to load a different shell page.
    For Example, shellPage1.jspx contains fragment-flow-1 as a region. In my adfc-config.xml I have shellPage1.jspx and shellPage2.jspx, with control flow cases "toShell1" and "toShell2" respectively connecting the two pages. I have a link's action bound to the "toShell2" within the fragment that makes up fragment-flow-1. When the application is run, shellPage1.jspx and its fragment are displayed. But clicking on the link in the fragment ("toShell2") does absolutely nothing. It does not navigate me to the shellPage2.jspx as expected. What am I doing wrong here or do not understand?
    If the fragment is included as a JSP include, and not a bounded task flow include, everything works as expected. This is not desirable as we then need to copy the fragment's pageDef into the shellPage's pageDef to get the DataControls to function.
    If the faces-config.xml is used instead, and a JSF navigation case is used, it will also work as expected. This is not desirable because we really don't want to be mixing adcf-config and faces-config.
    So I am really stumped here.... Thanks in advance!

    Hi there:
    In your case, the adfc-config.xml has the control flow case between shell pages. And the task-flow-N.xml or your-task-flow.xml for each page fragment by default doesn't inherit control flow case from their containing shell page. In your case, in the page fragment task-flow.xml, you should add a "Parent Action" to flow to shell page2 for example. The outcome of "Parent Action" would be "toShell2" if calling from ShellPage1 page fragment.
    Is this 'Correct' or 'Helpful' for you? Please mark it as so if it does.
    Good luck,
    Alex

  • Service ora. database .db not start datbase automaticaly (RAC 11gR2)

    Hi all,
    after install Grid Infraestructure, RAC database and created database. All services are ok, database is ok. Everything are running fine.
    So, when I make a test to reboot my servers, i see that the service ora.<database>.db are OFFLINE and not start automaticaly after reboot.
    I´m using 11g R2 on Solaris 10.
    Does anybody can help me ?
    Thanks
    Wander (Brazil)
    Edited by: Wander(Brazil) on Oct 15, 2010 6:43 AM
    Edited by: Wander(Brazil) on Oct 15, 2010 6:46 AM

    Hi,
    You have to follow some order for starting services in RAC database.
    Check the below steps can help you:
    The ORDER IS AS FOLLOWS
    For Starting things:
    Step 1 Start Clusterware
    Note
    When any host in the cluster boots,Clusterware should be started.
    The scripts listed below help make this happen:
    /etc/inittab
    /etc/rc5.d/S96init.crs
    /etc/init.d/init.crs
    /etc/init.d/init.crsd
    /etc/init.d/init.cssd
    /etc/init.d/init.evmd
    Be aware of this for 2 reasons:
    1. It may be unneccesary for you to start Clusterware. It might already be started.
    2. The script, /etc/init.d/init.crs, can be used to start Clusterware if you want to use it.
    To start Clusterware manually, maybe use this script instead of init.crs:
    To start Clusterware manually, maybe use this script instead of init.crs:
    #!/bin/sh
    # Run as root
    # start
    ssh dbcl1n1 /home/app/crs/bin/crsctl start crs
    or
    $ sudo /home/app/crs/bin/crsctl start crs
    Step 2: Start nodeapps
    After you start Clusterware, you may start nodeapps.
    Use this script to start nodeapps:
    #! /bin/sh
    # start
    srvctl start nodeapps -n dbcl1n1
    Step 3:Start Database
    After you start the nodeapps, you may start the Databases.
    Use this script to start the databases:
    #! /bin/sh
    # ps
    ssh dbcl1n1 ps -ef | grep dbw
    # status
    srvctl status database -d AUCD
    # start
    srvctl start database -d AUCD
    Step 4:Start the application after starting the Database
    Best regards,
    Rafi.
    http://rafioracledba.blogspot.com

  • Controll flow of logon par files

    Hi ,
    In portal we are using two std par files 1.com.sap.portal.runtime.logon_api. && 2.umelogonbase
    Can any one help ,How exactly the controll flow is happing here , when we type user name & password on logon screen.
    And what is the use of there two par files. What I want to do ,If i need to design an logon page with out these two par files...
    Any ways are there to achive this requirement... Pls help me out....
    Cheers
    Rabin D

    Rabin,
    There are numerous threads already on this topic -
    You need to customize only one file in the customer namespace : com.sap.portal.runtime.logon.par which internally uses umelogonbase.jar and  com.sap.portal.runtime.logon_api.jar.
    Go through the below links for SAP Logon customization - This would make it easy !
    Portal Customizations Intro - Login Part 1 - > Portal Customizations Intro - Login Part 1
    Portal Customizations Intro - Login Part 2 - > Portal Customizations Intro - Login Part 2
    Customizing Portal Logon Screen
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/23/c0e240beb0702ae10000000a155106/frameset.htm
    A fast and easy Portal logon page customizing
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/371e9d90-0201-0010-c39c-fd2956154ab3
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a000df6b-586a-2910-e6be-9fee831d5a30
    ~ Dhanz

  • Reg control flow

    I have an message statement of type error,
    After the message statement I have another executable statement.
    How to change the control flow from after displaying the error message to that executable statement.
    thnks in advance.
    Edited by: jean liker on Mar 12, 2008 6:27 AM

    if sy-subrc NE 0.
    message 'You Dont have authorization' type 'E'.
    // logout user.
    call 'SYST_LOGOFF'.
    endif.
    so after displaying the error message, i want to logoout the user.
    Edited by: jean liker on Mar 12, 2008 6:57 AM

Maybe you are looking for

  • Adding new fields in Item details screen in VA01 tcode

    Hi all, My requirement is to add custom fields in 'Additional Data B' tab of VA01 transaction. That is, after entering the material and quantity, if i double click tat material, it goes to item details screen. In taht, 'Additional data B' tab is ther

  • I need to locate my children's iPhone...

    Is it possible to set up "Find my iPhone" for me to be able to locate my children's iPhone if they've already set it up for themselves?  In other words, can one iPhone be set up by two individuals with separate "Find my iPhone" accounts, i.e. my chil

  • Extensions Not Displaying in CS3

    Okay, I just realized my Flex Style Explorer problem is bigger. I just installed senocular's Patterns and Textures extension, which should also be available under Window, and it is not installing either. Anyone have any ideas? Yes, I did exit and res

  • Report cells as page items

    Hello all, I'm trying to make an updateable report w/o using HTML DB's wizards and was wondering if report cells could somehow be stored in page items. I know that report cells are referenced using #COL01#, #COL02#, #COL03#, etc. within the report re

  • CO88 issue

    Hi experts, While doing settlement through KO88,system shows following error: Complete allocation structure A1 Message no. KD503 Diagnosis During settlement, the system puts the sender debits into groups (assignments), which are settled using the sam