To create workflow process which periodically examines one database table??

hi.......
plz tell me the complete details that how to create workflow process which periodically examines one database table??
also it will send email to specific address if certain condition is not fulfilled??
help is really appreciated
thanks nd regards
manish singla

Hi,
I'd be wary of using a WAIT activity, since this will essentially have the workflow running forever in the same SQL session. If you ever need to shutdown the database, then you would have to kill the session (or do a shutdown abort), which will rollback all the Workflow transactional data.
I would leave the polling logic to a process outside the Workflow engine. In an Applications environment, this should be a Concurrent request. If this is standalone Workflow, then schedule something using DBMS_JOB. The job should check the database, and if necessary, initiate a new workflow to send the notification.
If the notification does not require a response, then I would be inclined to bypass Workflow competely, and have a job which calls UTL_SMTP to send an email.
HTH,
Matt
Alpha review chapters from my book "Developing With Oracle Workflow" are available on my website:
http://www.workflowfaq.com
http://forum.workflowfaq.com

Similar Messages

  • Create a new database on machine which already has one database running?

    Hi,
    How can I create a new database on machine which already has one database running on Windows platform?
    I am totally new to DB and this is the first time I am creating a database.
    When I installed Oracle on windows platform database MYDB got created.
    Now I want to create another database with the following command on the same machine.
    CREATE DATABASE TESTDB
         DATAFILE 'F:\oracle\oradata\testdb\system01.dbf' SIZE 250M REUSE
         CHARACTER SET US7ASCII
    LOGFILE
         GROUP 1 ('F:\oracle\oradata\testdb\redo01.log') SIZE 10M,
         GROUP 2 ('F:\oracle\oradata\testdb\redo02.log') SIZE 10M;
    But it doesn't work. I unmounted the DB MYDB and then again tried above command. But still didnt work.
    How can I create a new database on machine which already has one database running on Windows platform?
    Any sort of guidance is appreciated. Thanx in advance.
    latin.

    Use DBCA.its a GUI tool for creating the database.

  • Create multiple portal instances with only one database?

    Can someone create multiple portal instances with only one database?
    If so, how is this done, just by running the portal configuration wizard?
    How are most people running with multiple developers working on portal? Do they share a portal instance, or create their own?
    Thank you very much!
    Phillip

    i'm currently using 9ias rel 2(9.0.2) and i have install one infrastructure and two mid tier, hoping that this will create two portal, but it didn't. Can you please tell me how to do create two portal within one server.
    thanks and regards;
    andrew

  • Populate 2 infoobjects from One database Table

    Hi,
    I have two infoobjects INOBJ1 & INOBJ2 & one database table TABLE1(on SAP systems connected via UDI) having fields F1 F2 & description D1.
    I would like to extract data & populate either INOBJ1 or INOBJ2 with F2,D1 data based on field F1.
      Please let me know the fastest & easiest way to do this.
      Thanks & warm regards,
      Sunil

    Hi sunil,
    Write piece of ABAP code based on what condition you want..to fetch the field F2 from table1..
    Check the standard generic extractor for template..
    your case..
    select F2 D1 from table1...where F1 = "condiiton"..
    Regards
    Manga(Assign points)
    Message was edited by: Manga

  • Create values for analogous periods in the same table with DS

    Hi,
    in the course of a pilot we want to create additional columns with data for analogous periods.
    We have values for a month and need to create new columns for values for last month and last year in order to compare.
    Attached youu2019ll find a few sample rows resembling the basic concept of what we have
    Region     Country     Year     Month     Value
    Europe     Spain     2009     1     285
    Europe     Spain     2009     2     129
    Europe     Spain     2009     3     153
    Europe     Spain     2008     1     288
    Europe     Spain     2008     2     284
    Europe     Spain     2008     3     125
    Europe     France     2009     1     135
    Europe     France     2009     2     125
    Europe     France     2009     3     284
    Europe     France     2008     1     208
    Europe     France     2008     2     221
    Europe     France     2008     3     220
    In this case, new columns would be
    LastMonth (125 for Spain month 1 year 2009, since this is the value for month 3 year 2008)
    LastYear (288 for Spain month 1 year 2009, since this is the value for month 1 year 2008).
    Can you help on what function to use in the DS query transformation?
    thanks everybody, and enjoy!

    Hi David,
    Probably the easiest way of resolving this would be to add extra columns which show the projected date each row should be shown on e.g.
    Region     Country     Year     Month     Value     LM_Year     LM_Month     LY_Year     LY_Month
    Europe     France     2008     1     208     2008     2     2009     1
    Europe     France     2008     2     221     2008     3     2009     2
    Europe     France     2008     3     220     2008     4     2009     3
    Europe     France     2009     1     135     2009     2     2010     1
    Europe     France     2009     2     125     2009     3     2010     2
    Europe     France     2009     3     284     2009     4     2010     3
    This would be written to a staging table then used as a source with the original source file to produce the target table. I've illustrated an example of how this could be achieved below:
    Create two dataflows; DF 1 and 2.
    In DF 1 read source, add additional columns to show the date (year, month, etc) this should be projected as. This would need to be done for both the last month and last year. Load staging table.
    In DF 2 Read the source and outer join to the new staging table twice. Use the region, Country, Year, Month, to join and use the new additional projected date columns. Ensure the last month date fields are used on one staging table and last year date fields are used on the next staging table. The value from the two staging tables is then used in the last month and last year value.
    Load into target table.
    To calculate the projected date columns you would probably want to format the source fields into a date then add the required number of months. e.g. to_date('01' || month || year, 'DDMMYYYY') + 12
    Obviously this would need the stage table to be truncated before each load and you would need to assess your load strategy. When doing these calculated fields if you have any retrospective updates on the source then these would then need recalculating, therefore this assumes it's a complete reload each time.
    Edited by: Richard Saltern on Jul 16, 2010 2:01 PM
    Edited by: Richard Saltern on Jul 19, 2010 10:10 AM

  • How to create a structure which can hold a dynamic table as a field in DDIC

    Hi ,
           I am designing a solution for a problem and have a unique requirement.  I need to create a structure which can hold a field where dynamic table data can be stored.  Let me illustrate with an example :
    My structure  ( say  Z_output_struc ) will have the fields
    Table_name  Table_Data
    My function module will have a table type of the above structure, so in effect ,my output can have multiple table names and related to each of them, there will be table data of that table name. The issue is how do I configure this in DDIC ?
    I tried creating table_data as "Type ref to Data"  but was stuck  inside the func module when I tried to transfer data to this.
    Any pointers as to how to think about this differently ? 
    Best Regards,
    Girish

    Hi Girish,
    you start directly from the ref to data. You assign it to a field symbol and cast this to the type of the destination of your select. So you can directly add the reference to the cache:
    I hope this example helps a bit (I took a form instead of a function module as it is easier to add here and used an hr table as kna1 is empty on my test system):
    REPORT  z_rwe_99_dyn_tab_cache.
    * type definition
    TYPES:
      BEGIN OF _s_cache,
        table TYPE        tabname16,
        cache TYPE REF TO data,
      END   OF _s_cache,
      _t_cache TYPE STANDARD TABLE OF _s_cache.
    * data declaration
    DATA:
      lv_table     TYPE tabname16,
      lv_condition TYPE string,
      lt_cache     TYPE _t_cache.
    * define table and condition
    lv_table     = 'HRP1000'.
    lv_condition = 'plvar = ''01'' and otype = ''S'' and objid = ''50000016'''.
    * get the result of a single table into the cache
    PERFORM get_dyn_table USING
                            lv_table
                            lv_condition
                          CHANGING
                            lt_cache.
    * form to read a single table
    FORM get_dyn_table USING
                         iv_table     TYPE tabname16
                         iv_condition TYPE string
                       CHANGING
                         ct_cache     TYPE _t_cache.
      FIELD-SYMBOLS:
        <lt_table> TYPE ANY TABLE.
      DATA:
        ls_cache TYPE        _s_cache,
        lr_data  TYPE REF TO data.
      CREATE DATA lr_data TYPE STANDARD TABLE OF (iv_table).
      ASSIGN lr_data->* TO <lt_table>.
      SELECT * FROM (iv_table) INTO TABLE <lt_table>
        WHERE
          (iv_condition).
      ls_cache-table = lv_table.
      ls_cache-cache = lr_data.
      APPEND ls_cache TO ct_cache.
    ENDFORM.                    "get_dyn_table
    If you have more questions just give another post.
    Best Regards
    Roman

  • ADF:two dependent navigation lists on one database table

    Hello,
    I´ve got one table with adress informations and I like to define two navigation lists (drop down lists) on which the first one shows the streets and the second one shows the names. When I select the street in the first one I like to see the names in the second list only of the selected street.
    How can I realize this? In my datacontrol I´ve got one dataview with the several attributes and I can create the two lists but they don´t depent on each other.
    Many Thanks!

    Hi!
    Thank you for your reply, Frank.
    But the examples you mean, are based on two or more tables and worked with Master/Detail tables. I only have one table and I like to define two select choices for two columns of that one table. For example, one selectchoicelist for name and the other one for street. So the results are the rows which are matching the two selected criteria.
    Regards
    Sven

  • Check automatic period overlap in database table and limit previous record.

    Hi,
    I'm creating a database table with records containing also two period filelds, BEGDA and ENDDA (begin and end of period).
    There's some setting that permit a new record to limit the previous end period? I prefer not to do that in the modulpool of the table view.
    Obviously I'm talking of 2 records having the same key fields.
    Thanks for answers.

    Yes you can do it in your maintenance dialog.
    But as far as I know, ENDDA must be a key field of your table (and also the last key field), but BEGDA should not.
    Then in your maintenance dialog include this code
        MODULE consistency.                             "VCX-19950103-183710
       ENDCHAIN.
       CHAIN.                                           "VCX-19950103-183710
        FIELD v_t511k-begda.                            "VCX-19950103-183710
        FIELD v_t511k-endda.                            "VCX-19950103-183710
        MODULE temp_delimitation ON CHAIN-REQUEST.      "VCX-19950103-183710
       ENDCHAIN.                                        "VCX-19950103-183710
       FIELD vim_marked MODULE liste_mark_checkbox.
       CHAIN.
        FIELD v_t511k-endda.
        FIELD v_t511k-konst.
        MODULE liste_update_liste.
    The relevant code is this:
       CHAIN.                                           "VCX-19950103-183710
        FIELD v_t511k-begda.                            "VCX-19950103-183710
        FIELD v_t511k-endda.                            "VCX-19950103-183710
        MODULE temp_delimitation ON CHAIN-REQUEST.      "VCX-19950103-183710
       ENDCHAIN.                                        "VCX-19950103-183710
    Then you'll have the DELIMIT button in the maintenance view, to delimit your records
    You can take the standard table T511K (and its maintenance view V_T511K) as an example.
    Edited by: Jose Maria Otero on Aug 31, 2011 1:18 PM

  • New JNDI name created for each drag and drop of database table into table

    Hi All,
    I'm using Netbeans 5.5 with Visual Web Pack with Mysql as backend. Whenever I drag and drop a database table into table component it creates new JNDI (data source) name for each table. I want to use single JNDI name for all tables. If I change the JNDI name to default name then the design disappears and shows error . Is there any option to set the JNDI name unique for all tables?
    Thanks in advance.

    Hi again,
    Well I've tried using the MouseListener / MouseMotionListener approach but it doesn't quite seem to work, although it does get the events correctly. I think the reason is that it doesn't interact correctly with the Java DnD machinery which is something that V.V hinted at. It's something that I may need to look into if / when I have more time available.
    I have to say though that I haven't had any problems with scrollbars - we're making fairly heavy use of large tables and if you drag over a table with a scroll bar and move to the top or bottom then it scrolls as you would expect and allows you to drop the data where you like. For this situation I've used pretty much the same approach as for the toy example above except that I've implemented separate source and destination TransferHandlers (the source table is read-only, and it really doesn't make sense to allow people to drag from the destination table so I've essentially split the functionality of the example handler down the middle).
    I'm not actually particularly in favour of messing too much with the mechanics of DnD, more because of lack of time than anything else. Guess I'll just have to put up with this for the moment. Doesn't help that DnD is so poorly documented by Sun.
    Thanks for all your help.
    Bart

  • How do I copy recordsets from one database table to another?

    I am using the Database Connectivity Toolset, and would like to copy either one recordset or multiple recordsets from one Access table to a table in a different database. I would like to do it directly with the data in variant form, but I can't get it to work. I can get it to work(on a small test table) if I first convert my source variant data to a cluster, then insert that into the other database table. My real database has many items with a variety of date types. Can I copy directly variant to variant?

    Is it necessary to read all the data back into LabVIEW first? The reason I'm asking is that it is much more efficient to just use SQL statements to get the data you need and write that directly to the second database. I did a quick Google search on it and came up with lots of responses on what the correct syntax is for setting that up. Using an SQL command to copy the data back and forth is analogous to copying data from one file to another using the Copy file function rather than reading the entire contents of the file, converting the file string to the data arrays, converting back to a string, and then writing it back to another file.
    Chapter 5 of the Database Connectivity Toolset User Manual describes how to execute SQL queries.
    If you do need to actually
    see the data in LabVIEW first, then the only way to get it back into the other database is to convert those variants to LV datatypes and then cluster those values again and write them back out to the second database.

  • **urgent*** -two  combo boxes  -one  database table - ***urgent**

    1. i have one html page - in that two combo boxes are there
    2. first one called--> Bank Name and second one called-->Main Branch
    3. i have a database table like BANK_MASTER(MAIN_BRANCH,BANK_NAME)
    i am giving here some data for the above table:
    (sbi-kurnool, sbi),(sbi-cadapah,sbi),(sbi-chittor,sbi),(ab-rangareddy,ab),(ab-varangal,ab) ..like that every bank has its own main branch in different location.
    MY PROBLEM:
    In HTML page, in the first combo box ie., Bank Name will display all the bank name using the table BANK_MASTER ie.,sbi,ab,cb,sbh ...... (its ok - i too get )
    main Problem: Whenever i select a particular bank name in the first combo box, the second combo box ie.,Main Branch has to display the main branches using the table Bank_Master depending on the Selected bank name from the Bank Name Combo box ( ie., if we select the sbi, it has to display all main branches of sbi's only, but not other bank's main branches)

    Hi friend,
    I had a similar situation and i tried to solve it by using XmlHttpRequest Object(used in AJAX).
    U can checkout the below example just for further reference delete
    UserForm.jsp:
    ==========
    <head>
    <script>
    var xmlHttp
    function showState(str)
    xmlHttp=GetXmlHttpObject()
    if (xmlHttp==null)
    alert ("Browser does not support HTTP Request")
    return
    var url="getState.jsp"
    url=url+"?count="+str
    url=url+"&sid="+Math.random()
    xmlHttp.onreadystatechange=stateChange
    xmlHttp.open("GET",url,true)
    xmlHttp.send(null)
    function stateChange()
    if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){
    document.getElementById("state").innerHTML=xmlHttp.responseText
    </head>
    <body>
    <select name='country' onchange="showState(this.value)">
    <option value='india>india</option>
    </select>
    <br>
    <div id='state'>
    <select name='state' >
    <option value='-1'>pickone</option>
    </select>
    </div>
    </body>       
    getState.jsp
    ============
    <%@page language="java" import ="java.util.Hashtable" import ="java.util.Set" %>
    <%
    String country=request.getParameter("count");
    response.setContentType("text/html");
    response.setHeader("Cache-Control","no-cache");
    try{
    Hashtable ht = (Hashtable)session.getAttribute("<ATTRIBUTE_NAME>");
    String buffer="<select name='state'><option value='-1'>Pick One</option>";
    Set s=ht.keySet();
    Object keys[]=s.toArray();
    int size=keys.length;
    for(int i=0; i < size;i++){
    buffer=buffer+"<option value='"+ht.get(keys).toString()+"'>"+ht.get(keys).toString()+"</option>";
    buffer=buffer+"</select>";
    response.getWriter().println(buffer);
    catch(Exception exp){
    response.getWriter().println(exp);
    %> I think u may go upon replacing country with your Main Branch and vice versa

  • Creating BAM report using data of two database tables. Say "EmployeeTable" and "DepartmentTable

    I want to populate data from two database tables into a BAM report. I have created two data objects for the tables and want to create 3rd data object so that it can take the data from the other data objects automatically. Is there any such facility within BAM?

    Hi
    1. I am not sure if you have option to combine multiple DataObjects like that.
    2. For your scenario, on Database side itself, I would recommend Create a VIEW that joins these 2 Tables and pull the required Columns and add required conditions. Verify the VIEW has all the rows expected.
    3. Then create DataObject for this View. Once you have DataObject, create the Report.
    Thanks
    Ravi Jegga

  • How to create a process which is running in background?

    I am developing an application which creates a data file after some queries are done. The user sees a message saying that the data file is being preparing and a email notification will be sent to the user. I would like to have the process for creating data files run in background so the user does not wait till that process is done.
    Could someone give me some ideas or suggestions how this should be done?
    Thanks in advance!

    You could use a servlet and run a seperate thread to complete the process. An easier way is to use an IFRAME. You can direct a page to run in an IFRAME that is 0 width X 0 height. The user could then continue on without having to wait on the process to complete.

  • Creating a process which automatically generates Hiperlinks to a blog.

    I would like to create a way to automatically generate hyperlinks to a blog from a pdf.
    Example: In "A" pdf we have various articles from a magazine/newspaper, the generator analyze the pdf and creates links from tags linking to a (i. e.) blogspot blog where users may comment the article after reading it from the print/pdf .
    I'm quite in difficulty and I really don't know where to start from...
    if you have any idea what's so ever please help .
    Thanks a lot.
    ps. sorry for my english....italian learning schools are horrible!

    Hi Tommaso,
    Here's what you should do:
    - have a source file that contains your tags (typically an MS Word file)
    - process your MS word file using the COM object model: analyze your file content and replace every tag by a hyperlink.
    - generate a PDF file from your MS Word file, using a PDF converter that is able to properly handle hyperlinks in Office docs (Adobe PDFGenerator is one of these, but some PDF converters that use a printer driver or use a temporary postcript file do not convert hyperlinks)
    -jerome

  • Processing ColdFusion variables which resides inside a database table

    One of my table is saving an HTML form which contains coldfusion variables. In my code I am querying this table and I need to display this form in the front end. But while dsiplaying I am getting the coldfusion variable name itself instead the processed value of the variables.
    HTML Form saved in the db table:
    ================================
        <form action="" name="ci_entry_form" id="ci_entry_form" method="post">
        <table width="100%" height="100%" border="0">
        <tr>
        <td align="right"><b style="color:red">*</b> <label class="pop_up_letter_font">G/L #     :</label></td>
        <td>    <input class="pop_up_textbox" type="text" name="gl_number_text" id="gl_number_text" maxlength="21" value="#ARGUMENTS.chkDetails.GL_ACCT_NBR#" required/>   
        <select class="pop_up_dd" name="gl_number_drop" id="gl_number_drop" onChange="enableDisableGL()">
        <option value="">---Select---</option>
        <option value="new">Enter a new G/L number</option>
        <cfoutput query="glNumbers">
        <option value="#glNumbers.GL_ACCT_NBR#">#glNumbers.GL_ACCT_NBR#</option>
        </cfoutput>
        </select>
        </td>       
        </tr>
        </table>
        </form>
    Method (cffunction) contains below code to query this html form from db table and return the html form.
    ========================================================================================== ==
        <cfquery name="qry_getTemplate" datasource="#APPLICATION.dsn#">
        select FORM_TXT from HTML_FORMS where REQ_ID = 172
        </cfquery>
        <cfsavecontent variable="form_content">
        <cfoutput>#qry_getTemplate.FORM_TXT #</cfoutput>
        </cfsavecontent>
    But when I dump the cfcontent variable (form_content ) I am getting the HTML Form without processing the coldfusion variables (**#ARGUMENTS.chkDetails.GL_ACCT_NBR# , #glNumbers.GL_ACCT_NBR#**).
    Am I missing something. Can any one help me out resolve this.
    Your timely help is well appreciated.
    Thanks in advance.

    Add cfoutput tag:
    <cfoutput> <input class="pop_up_textbox" type="text" name="gl_number_text" id="gl_number_text" maxlength="21" value="#ARGUMENTS.chkDetails.GL_ACCT_NBR#" /> </cfoutput> 

Maybe you are looking for

  • HT4859 Need help finding & restoring lost info from a cloud

    I have been backing up my iphone to a cloud.  Somehow half my "Notes" are missing today.  How do I restore them from the cloud backup?

  • Crystal Add on Failed to retrieve data from the DB Vendor Code: 2812

    Hi everyone Im using Sap Business One Version 2007A SP00 PL49, SQL 2005 and Crystal Reports Basic for Sap Business One (Add on 2.0.0.7). Whenever i try to generate a report from SBO the system displays the following message "Failed to retrieve data f

  • Display more than 8 traces in NI hypertrend

    Hi I am having difficulty in displaying more than 8 traces in hypertrend. I am able to see them if I double click on the names in the legend. But I want it to be set programatically. I have tried the visible property node which doesn't do anything. C

  • Inbox fills with old emails

    My inbox keeps filling with old emails. After I delete them another 50 fill up my inbox again. I use pop for email.

  • Itunes and adding music.

    When I add some of my music into itunes, it has the author in with the area of the song. So when I change it to where it should go it's fine. But then, when I go to add more music, it re-adds the songs i've changed. Even when I don't change anything