Process automatically run

Hi All,
Thanks in advance for any help.
I am trying to get a procedure to run automatically once a user logs in but I am not being successful. The procedure is as below, I tested the select statement and there are records but the insert is not happening.
I call the below procedure from the login page ' on Submit - after computations and validations'
procedure INSERT_SCHEDULE_STATUS AS
  v_due_date          date;
  v_appeal_id         number;
  v_routine_name CONSTANT VARCHAR2(100) DEFAULT 'INSERT_SCHEDULE_STATUS' ;
--  Cursor to retrieve the due date
CURSOR  c_Appeal  IS
                        select appeal_id
                        from   cab_appeal_actions outer
                        where  due_date < sysdate
                        and    action_type_id = 13
                        and    id = (select max(id)
                                     from cab_appeal_actions INNER
                                     where inner.appeal_id = outer.appeal_id);
BEGIN     
FOR r_Appeal in c_Appeal
         LOOP
                -- Process the fetched rows
                INSERT INTO cab_appeal_actions
                (  id
                  ,action_type_id
                  ,action_date
                  ,appeal_id
                  ,created_by
                  ,date_created
                  ,updated_by
                  ,date_updated
                  ,remarks
                VALUES
                (  CAB_APPEALS_SEQ.nextval
                  ,10
                  ,sysdate
                  ,r_Appeal.appeal_id
                  ,'SYSTEM'
                  ,sysdate
                  ,'SYSTEM'
                  ,sysdate
                  ,'SYSTEM GENERATED'
                END LOOP;
                COMMIT;          
  END ;      
END INSERT_SCHEDULE_STATUS ;Edited by: user10256482 on Apr 14, 2011 2:09 PM

Move it to post-authentication section or if you have a home page add it as an onload process in that page.

Similar Messages

  • [OIM 9.1.0.2] Attestation Process scheduled is not automatically running

    Hi Gurus,
    IHAC that noticed that some attestation processes have not been triggered in the specified scheduled time, . So the Attestation tasks are not displayed into specified Reviewer's inbox (To-Do List).
    There is a group responsible for creating the attestation processes and they have created a lot of processes. It seems that for some reason the attestation scheduled task is not automatically running for some cases.
    For the attestation processes that were stopped, it is needed to run manually the scheduled task. With this action the attestation task flow runs.
    Any tip on what could I check?
    Thanks.

    Hi,
    I checked the Schedule task 'Initiate Attestation Processes'. It is Enabled, with frequency 30 min. Actual status: Inactive.
    I got the follow error on the logs:
    Something related to Memory.
    I am investigating why when I use 'Run Now' option the attestation process work. Any tip?
    <28/11/2012 03h32min51s BRST> <Info> <EJB> <BEA-010227> <EJB Exception occurred during invocation from home or business: [email protected]340a3f3 threw exception: java.lang.OutOfMemoryError: Java heap space>
    <28/11/2012 03h32min51s BRST> <Notice> <Stdout> <BEA-000000> <ERROR,28 Nov 2012 03:32:51,518,[XELLERATE.SCHEDULER.TASK],Error while resubmitting the attestation process for delegation
    Thor.API.Exceptions.tcAPIException: EJB Exception: ; nested exception is:
    java.lang.OutOfMemoryError: Java heap space
    at Thor.API.Operations.AttestationOperationsClient.updateResponses(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at Thor.API.Base.SecurityInvocationHandler$1.run(Unknown Source)
    <28/11/2012 03h34min57s BRST> <Notice> <Stdout> <BEA-000000> <ERROR,28 Nov 2012 03:34:57,977,[XELLERATE.SCHEDULER.TASK],Error: Thor.API.Exceptions.AttestationProcessNotFoundException
    Thor.API.Exceptions.AttestationProcessNotFoundException
    at com.thortech.xl.ejb.beansimpl.AttestationOperationsBean.initiateAttestationProcess(Unknown Source)
    at com.thortech.xl.ejb.beans.AttestationOperationsSession.initiateAttestationProcess(Unknown Source)
    at com.thortech.xl.ejb.beans.AttestationOperations_yqqnsm_EOImpl.initiateAttestationProcess(AttestationOperations_yqqnsm_EOImpl.java:1033)
    at Thor.API.Operations.AttestationOperationsClient.initiateAttestationProcess(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

  • Start BPM process automatically

    Hi ALL,
    I have created a BPM process. I can start that process automatically from nwa -> Process controll.
    But I want to run the process automatically by a certain time interval. How can I do it.
    Can anybody help me.
    Thanks in advance
    Chandan

    Hi Chandan,
    I am not 100% sure if I understood you correctly, but with BPMN there comes a model element named Intermediate Timer Event which can be configured in two different ways using:
    an offset (e.g. 1 hour after the timer has been created)
    an expression  (e.g. ProcessContext.aDateOneEntered + 1 day)
    Nevertheless this still requires you to start the process by yourself, but it 'waits' at the timer until the offset or the expression has been reached. Thereby you can achieve that an interval is taken into account upon execution of the process.
    More information about events can be found in the documentation:
    Modeling Events
    https://help.sap.com/saphelp_nwce711/helpdata/en/47/61470236013df6e10000000a42189b/frameset.htm
    Hope that helps,
    Martin

  • Queues, not processed automatically they are status Ready

    Hi Experts ,
    Queues in outbound(smq2), not processed automatically they are status Ready from long time, RFC is working fine
    i tried to process maually one by one ,but they are many.
    how can i execute this , need your inputs.
    thanks in advance
    vamsi

    Check that the scheduler is running in SMQR
    Read,
    http://help.sap.com/saphelp_nw04s/Helpdata/EN/e4/df5f3c8dde1c67e10000000a114084/content.htm
    Regards
    Juan

  • Automatically run methods from a class

    Hi There,
    Consider the following code.
    public class NewClass {
    public void Method1() {
    //Do Somthing
    public void Method2() {
    //Do Somthing
    public class JavaApplication40 {
    * @param args the command line arguments
    public static void main(String[] args) {
    NewClass nc = new NewClass();
    When object NewClass() class is created in main is there anyway of automatically running boh methods Method1() and Method2() whithout have to specifically call them?
    Cheers,

    There are use cases for calling class methods during construction but, as previously mentioned, those use cases are few and far between and your approach is not the way to do it for all of the reasons mentioned.
    One use case, which is seldom needed, where I call class methods during construction is when I need to create an instance is proper and valid in every respect; that is, all variables are initialized to values that are independently valid and also valid in the context of the entire instance. This almost always requires a validation process that is length and/or complex.
    For that one special case I use a static factory method to create the instance. The factory method can call the instance methods and do any thing else needed to create the instance regardless of the complexity of the business rules. This is a special case because static methods can't be defined in an interface or overridden in the class hierarchy; meaning you had better get them correct the first time 'cause maintenance/upgrades can break code that is already in use.

  • Business object for Automatic Run in FICO

    Hi experts,
       In Automatic run the work flow has to trigger when the status as ' Proposal is ready to be started / created ' in Transaction F110 and then post the payment in workflow. Please let me know if any business object is avalable for that. If we can trigger the workflow through the Business Transaction Event means, let me know the procedure and the parameters for the Business Transaction events.
    I ll reward the points if it is helpful.......
    Thanks and Regards,
    Velu.....

    Try BTE, process 00001860. Sample FM SAMPLE_PROCESS_00001860. There is no specific business object for this as far I know, therefore you can build your own or start a WF directly.
    Regards, IA

  • Extract process up & running but I cannot see new transactions in the trail

    extract process up & running on source but I cannot see new transactions in the extract trail file and as result it is not replicated to target
    Program Status Group Lag Time Since Chkpt
    MANAGER RUNNING
    EXTRACT RUNNING E_ENVA 00:00:00 00:00:10
    GGSCI (HOST) 186> send extract e_Enva status
    Sending STATUS request to EXTRACT E_ENVA ...
    EXTRACT E_ENVA (PID 11824)
    Current status: In recovery[1]: At EOF
    Current read position:
    Sequence #: 33
    RBA: 34904432
    Timestamp: 2011-09-21 11:14:47.000000
    Current write position:
    Sequence #: 6
    RBA: 1008
    Timestamp: 2011-09-21 11:26:42.426000
    Extract Trail: C:\GG\dirdat\enva\ce
    GGSCI (ILW177711) 193> stats extract e_enva
    Sending STATS request to EXTRACT E_ENVA ...
    No active extraction maps.
    Where to look next and what is the root cause for this,
    thank you

    all configurations was ok and working fine (meaning data was extracted on source and replayed on target) before extract/replicat processes restart
    I did not touch any of the configuration files, after restart processes shows as up & running without any actual errors or rejects on the logs
    please find extract configuration file:
    EXTRACT e_enva
    SETENV ( ORACLE_SID=orcl )
    USERID USER_SCHEMA_A, PASSWORD AACAAAAAAAAAAAHAOFVCXAUANCVHIHCE, ENCRYPTKEY DEFAULT
    DISCARDFILE C:\GG\dirrpt\e_enva.dsc, APPEND, MEGABYTES 10
    REPORTCOUNT EVERY 10000 RECORDS, RATE
    NOTRACETABLE
    EXTTRAIL C:\GG\dirdat\enva\ce
    SQLEXEC "CALL USER_SCHEMA_A.pkg.event_message('START', null, 'ALL','e_enva')";
    SQLEXEC "CALL USER_SCHEMA_A.pkg.event_message('STOP', null, 'ALL','e_enva')" ONEXIT;
    TABLE USER_SCHEMA_A.T_TABLE, KEYCOLS (ID_OBJECT);
    TABLE USER_SCHEMA_A.T_TABLE_REF, KEYCOLS (ID_XREF, PKEY_SRC, SYSTEM, IND);
    logging and supplemental logging enabled, commits performed and again nothing was changed in configuration except that processes was restarted
    thank you

  • How can I disable the Photos app from automatically running when I plug in my iPhone?

    How can I disable the Photos app from automatically running when I plug in my iPhone?
    I have no intention of ever using Photos, in fact, having to abandon Aperture takes me one step close to moving back to Windows, but I digress.
    I just want to NOT have to kill the Photos app every time I plug in my phone.
    Thanks.

    I am still seeing the option Image Capture, like shown in the screenshot that Rysz posted.   But it is another example of the hide-and-seek Apple likes to play with us.
    The option has to be set for each device individually. With the device connected to USB, you have to click the tiny disclosure triangle in the lower left corner of the sidebar to reveal the option.
    I was perfectly happy with the program I paid for (Aperture), and now to maintain the functionality I have to pay for another application (LightRoom) to get the functionality that I paid for in Aperture.
    Aperture 3.6 is working well with Yosemite. I will use it, as long as I have a Mac, that will run Yosemite or a compatible system.
    Have you looked at Capture One?  It looks much more similar to Aperture than Lightroom.

  • In lightroom, is there a way to create a preset where a brush is automatically run?

    In lightroom, is there a way to create a preset where a brush is automatically run? Example: If I make multiple different brush adjustments on an image, and I want the exact same edit on another image, can I create a preset for that?

    Hi Heather,
    Lr does not (natively) support saving brushes in presets, but it's a UI limitation, not an "under the hood" problem.
    You can add brush strokes (or spot removals, or .. ) to a preset using a script I wrote (and offer for free), called
    'Add Spots Or Paint To Preset'
    available here:
    robcole.com - MiscLrScripts
    Rob

  • Automatically Running a Java Program

    I have a Java program which converts a text file to a XML file. I would like to be able to automatically run this program once every 8 hours or to have it run at set times. Has anybody done this before or does anybody know how to do this?

    Best bet is to get your operating system to do it. Cron job or windows scheduler, usually

  • How to find out if a process is running or not

    Hi
    I need to find out if a process is running or not in my system
    If it is running i Need to stop the process
    Can anyone help me with this.

    ctrl+alt+delete and look at the processes that are running on your system. I usually click on the memory headerbar so it sorts them my the process that is using the most memory. :-)

  • Any way to automatically run discoverer reports based on an event ?

    I am using discoverer 3.1.36. I am trying to automate the
    running of discoverer reports - the objective is to
    automatically run a set of discoverer reports after a particular
    event.
    This is part of a very critical solution for a large bank.
    One of the solution that i am trying is to schedule the set of
    reports for a future date and then after the event has occurred,
    use a trigger to update the scheduled times of these reports.
    But by just updating the 'next run time' field in the
    eul_batch_reports table, there is no effect. The reports still
    run at the initially scheduled time.
    Can any one help me with this? or suggest any alternate
    solutions.
    Thanks in advance
    Sandeep

    you will need a javascript function something like - define in the page header or region header:
    <script type="text/javascript">
    function checkTheBox() {
      document.getElementById('YOURCHECKBOXNAME').checked='checked';
    </script>and then in the form element attributes of your textbox, have an onchange event:
    onChange=checkTheBox();

  • All FF versions above 3.6.3 crash on startup. No window, just the process is running.

    I still do have the problem - as posted elsewhere - that I cannot install 3.6.4 or any other version after that. FF will never start - not even in safe mode - only the process is running and needs to be stopped via the task manager.
    The bug responsible is already listed here: https://bugzilla.mozilla.org/show_bug.cgi?id=574215
    So far no one seems to have any idea what is causing these crashes.
    Does anybody have an idea or the same problem?
    Many thanks.

    Go to the address <b>about:crashes</b> and tell us your latest crash IDs. We can then look at the data specific to your crash and have a better idea of what is causing the problem.

  • Automatically run applications on start up

    Hello all:
    Does anyone know how to automatically run certain applications such as Mail on start up? I don't think this is an automater function but not completely sure.
    Thanks in advance!

    Wow, that was really too easy. Cannot believe I didn't figure that out as I have right clicked on dock icons many times before and never noticed that. Thanks so much!

  • How can I watch the process is running in program?

    In my program, I fork some processes, and I must watch them timing, how can I know that these processes is running?

    <pre>
    There could be many way for to see what process is doing.
    Easiest is to use "truss" on the process or the program.
    Please see the man page of truss.
    You can do :
    truss -f -p pid_of_process
    or
    truss -f -o /tmp/out -p pid_of_process &
    tail -f /tmp/out
    or
    truss -f program_exe
    Otherwise you can use dbx, run the process in dbx and set
    breakpoints at various levels.
    Thanks
    Kalpesh
    </pre>

Maybe you are looking for

  • How to see the MM invoice changes in sap?

    Hi How to see the MM invoice changes in sap ?

  • The sun-appserv-admin task doesn't support

    Help! - this is driving me nuts! I am trying to build the bookstore example and get this error on asant steps that involve the admin-command-common target (such as "asant deploy-war"). I am running Studio Creator with SunAppServer8 under it. The comm

  • Just got new FF version - can't get app tabs to work

    I'm on a Mac and can't get the app tab function to work. I promise I read through all of the instructions; just still won't give me the pin option when I do control click.

  • Acrobat Reade x on Printing with ghost script 8.54

    Hi, 1)open a pdf file with adobe reader x 2) Then select " print" using Ghost script 8.54 version 3) Ghost script throws "stack overflow" and "offending Command" error message this does not happen ,with earlier version of Adobe reader Can any one rep

  • CS6 - Can't drag object to new layer via dot

    I can't seem to drag a selected object to a different layer via the colored dot in the Layers palette in CS6. I've been doing that since I can remember. Is there some new CS6 default setting I'm missing?