Timing Function in IDM ;  how to set "timer"

I have a question which has not been discussed here before (or, if it has, I haven't noticed).
It concerns the use of a TIMER function in IDM.
I am pretty sure IDM has one; just not sure how to implement this.
Let's say you want to evaluate the time difference between when a person logs into the system, and today's (current) date? If a certain amount of time has elapsed, send that person an Email Notification?
Or : someone has not performed a certain required action; after a certain time, send them a "*notice*" (could also be an email notification).
Or, even more complex : send 2 or 3 such notifications, at regular intervals; and, if the person does not respond, then IDM will automatically perform an action of its own (maybe, disable that person's account, etc)
Basically, my point is : does IDM possess a certain "*internal clock/timer*" which can be activated, to monitor certain activities; and, based on how much time has elapsed, perform a certain action ??
If yes, then how can I configure and/or implement such a function?

Going with the deferred task example you'd have to do something like this:
(Again, it doesn't have to be a deferred task.)
<Action id="0" name="Add Deferred Task" application="com.waveset.session.WorkflowServices">
    <Argument name="op" value="addDeferredTask"/>
    <Argument name="type" value="User"/>
    <Argument name="name" value="$(accountId)"/>
    <Argument name="subject" value="Configurator"/>
    <Argument name="task" value="Your Workflow Name"/>
    <Argument name="date"> <!-- date the deferred task is to execute -->
        <ref>date</ref> <!-- precalculated date -->
    </Argument>
    <Argument name="date_task_added">
        <!-- add the time the task was actually registered -->
        <invoke name="getTime"> <!-- calculates "now" -->
            <invoke name="getInstance" class="java.util.Calendar"/>
        </invoke>
    </Argument>
    ... other deferred task arguments here
</Action>IDM will wait until the date the task is to be executed, see the "date" argument. When IDM actually executes the deferred task (it may be a long time after it was originally scheduled to execute if there's been a delay or an outage or whatever) you'll have a variable in your workflow called "date_task_added" that should be a java date object. (Or a string, I can't remember. If it is you'll just have to convert it, no biggy.) That will give you the date the deferred task was registered. Within the workflow you can build another date object using the exact same code to calculate "now".
From there getting the time difference between both objects is a simple matter of getting the milliseconds for each and doing the math to get the difference. That's just one way, there's dozens of ways of calculating time differences with the java date and calendar objects.
Note: untested code. You may have to tweak it to work properly.

Similar Messages

  • Where can I find a video that tells me how to set time on photos to 1 second each?

    where can I find a video that tells me how to set time on photos to 1 second each? Where can I find a video that tells me how to add black space to the sides of all photos so that they display completely instead of only showing the center (which shows peoples' crotches but cuts off their heads- great huh?)? Would like to import whole folders of photos, set each to 1 second, have each display completely without distorting to fill. and "play" the timeline as I build it so that I can see if its working before putting in 2000 pics?

    Hello Cain,
    You can see the Domestic Outbound Scenario (DOT) for how to use incompatibility scenario.
    You can find the Customizing guides at SAP Support Poratl.
    Regards
    Nitesh

  • In Forms, how to set time to control editng?

    hi guys, Im doing a data entry module.This module used to encode our daily transactions. Sometimes, there are editing/updating of data that happen everyday. My problem is that, i want to control this editng everday to lessen some data problem. My question is how to set time in an oracle forms to control this everyday editing or updating. I want to their editing/updating allow only during the date they encode that particular transactions.
    Can anybody help me solve this problem. Thank you!
    Lala

    Do you want to get the current date?
    You can use SYSDATE for that (getting the database-date) or SYSTEM.CURRENT_DATETIME (getting the OS-date)

  • How to set timer intervals for object + and a motion for entering stage

    Hi, I am making a simple game but I have a couple problems/queries.
    1) My game is a touch an object and you get a point game, currently the objects appear randomly over the screen, however I am trying to get it to slide into the screen similar to the Fruit Ninja game, but not limited to entering from one side, does anyone know how to set this?
    2) As I mentioned above my objects appear randomly, I have set a timer when I change the timer from 800 to another number, it just makes all the objects on the screen last for 800 milliseconds all at the same time then disappear and appear somewhere else on the screen for another 800 milliseconds and it repeats, what I am trying to do is make them come at different intervals, for example:
    Object 1 - constantly appears, so when the 800 millisecond is over, it comes back on a different part of the stage
    Object 2 - I want it to appear every 5 seconds, so when the 800 millisecond is over it will come back on the stage in 5 seconds, but not instantly like Object 1
    But I have no idea how to do this :/ anyone have the code needed for me to do this?
    Sorry for the long questions, I only asked because I really am stuck, I have been trying to do this for over 2 weeks now.
    Thanks very much.
    My Code
    [Code]
    //importing tween classes
    import fl.transitions.easing.*;
    import fl.transitions.Tween;
    import flash.utils.Timer;
    //hiding the cursor
    Mouse.hide();
    var count:Number = 60;
    var myTimer:Timer = new Timer(1000,count);
    myTimer.addEventListener(TimerEvent.TIMER, countdown);
    myTimer.start();
    function countdown(event:TimerEvent):void {
    myText_txt.text = String((count)-myTimer.currentCount);
    if(myText_txt.text == "0"){
    gotoAndStop(5)
    //creating a new Star instance;
    var star:Star = new Star();
    var box:Box = new Box();
    var bomb:Bomb = new Bomb();
    //creating the timer
    var timer:Timer = new Timer(800);
    var timerbox:Timer = new Timer(850);
    var timerbomb:Timer = new Timer(1000);
    //we create variables for random X and Y positions
    var randomX:Number;
    var randomY:Number;
    //variable for the alpha tween effect
    var tween:Tween;
    //we check if a star instance is already added to the stage
    var starAdded:Boolean = false;
    var boxAdded:Boolean = false;
    var bombAdded:Boolean = false;
    //we count the points
    var points:int = 0;
    //adding event handler to the timer;
    timer.addEventListener(TimerEvent.TIMER, timerHandler);
    //starting the timer;
    timer.start();
    function timerHandler(e:TimerEvent):void
              //first we need to remove the star from the stage if already added
              if (starAdded)
                        removeChild(star);
              if (boxAdded)
                        removeChild(box);
              if (bombAdded)
                        removeChild(bomb);
              //positioning the star on a random position
              randomX = Math.random() * 800;
              randomY = Math.random() * 1280;
              star.x = randomX;
              star.y = randomY;
              star.rotation = Math.random() * 360;
              box.x = Math.random() * stage.stageWidth;
              box.y = Math.random() * stage.stageHeight;
              box.rotation = Math.random() * 360;
              bomb.x = Math.random() * stage.stageWidth;
              bomb.y = Math.random() * stage.stageHeight;
              bomb.rotation = Math.random() * 360;
              //adding the star to the stage
              addChild(star);
              addChild(box);
              addChild(bomb);
              //changing our boolean value to true
              starAdded = true;
              boxAdded = true;
              bombAdded = true;
              //adding a mouse click handler to the star
              star.addEventListener(MouseEvent.CLICK, clickHandler);
              box.addEventListener(MouseEvent.CLICK, clickHandlerr);
              bomb.addEventListener(MouseEvent.CLICK, clickHandlerrr);
    function clickHandlerr(e:Event):void
              //when we click/shoot a star we increment the points
              points +=  5;
              //showing the result in the text field
              points_txt.text = points.toString();
                        if (boxAdded)
                        removeChild(box);
              boxAdded = false;
    function clickHandler(e:Event):void
              //when we click/shoot a star we increment the points
              points++;
              //showing the result in the text field
              points_txt.text = points.toString();
              if (starAdded)
                        removeChild(star);
              starAdded = false;
    function clickHandlerrr(e:Event):void
              gotoAndPlay(5);
    [/Code]

    The only thing that affects TopLink is the increment by, as increasing this is what allows TopLink to reduce the number of times it needs to go to the database to get additional numbers. Ie, an increment value of 1 means TopLink needs to go the database after each insert; an increment value of 50 allows it to insert 50 times before having to get a value from the sequence. The cache on the sequence object in the database affect the database access times. While it may improve the access times when the sequence number is obtained from the database, but I believe the network access to obtain the sequence is the greater concern and slow down for most applications. It all depends on the application usage and design though - an increment (and application cache) of 50 numbers seems to be the best default.
    I cannot say what effect the cache vs nocache settings will have on your application, as it will depend on the database load. Only performance testing and tuning will truly be able to tell you whats best for your application.
    Best Regards,
    Chris

  • How to set time zone for a session in Client Only installation

    Environment:
    OS : Unix (HP-UX 11.0)
    Oracle DB : Ver 8.0.5
    Developer : Ver 1.6 ( Client only Installation)
    Developer also on Unix.
    RDBMS and Developer Installed on different
    home directories.
    Our development is Forms 4.5 on X windows.
    Runtime is forms character mode.
    Probelm Description:
    To run the application I am using TWO_TASK to connect to the database. In our application we have to take care of time zones. For that in previous versions(NO TWO_TASK used) I used TZ unix environment variable, to get time zone dependent time wherever sysdate is used.
    Now because I am using TWO_TASK, oracle is no more using users TZ settings.
    Question : Is there any way I can make oracle to use the TZ environment setting

    Thanks for replying Johnny!
    What you are referring to is adding a city. I need to know how to set the time zone in settings -> Date & Time -> Timezone. Unless & untill this is set properly the iPod will never show me the right time. Please help me with it.
    I will definately use your advice on the second query.
    Thanks once again!
    Windows XP Pro

  • How to set time in calendar?

    Hi all,
    is possible set time in a calendar component in WVP with JSF1.2?
    i.e '10-12-2007 12:30'.
    any free component that do this?
    thank's in advance!

    No, I store ok and retrieve from DB.
    But in DB I have a datetime field in Mysql and I need to store the data in this way DATE 01-10-07 and time 10:15 pm.
    I need a component to do this. I don't believe that nobody had this situation.
    I need like the swing component JCALENDAR http://www.toedter.com/en/jcalendar/
    in JCAlendar you can set a dateformatpattern like dd/MM/yyyy HH:mm
    how is possible to do this, I think that 2 textfields, one to hours other to minutes is a poor solution.
    Thank's

  • How to set time delay in javascript for indesign cs2?

    while am running the js, am using function date.getMonth, date.getDate()...
    this function produce the error, which return the function as error message,
    if i set alert before running this every time , am not getting the errror
    how to solve this?
    thanks in advance
    subha

    Dear Subhaoviya
    Please use the below coding and get your date and Time functions
    var today = new Date();
    var myDate = today.getDate();
    Thanks & Regards
    T.R.Harihara SudhaN

  • Sun IdM: How to set a multi-value field on document.mainform via javascript

    The following will set variables.variable1 to variables.variable2 when the "Script Link" component is clicked. I would like to modify
    this so that el2 references a multi-valued element (e.g. a list generated by a Select Field)
    <Field>
    <Display class='Javascript'>
    <String>
    function myScript() {
    el=getElement(document.mainform,"variables.variable1");
    el2=getElement(document.mainform,"variables.variable2");
    el.value=el2.value;
    </String>
    </Display>
    </Field>
    <Field name='Script Link'>
    <Display class='Link'>
    <Property name='URL'>
    <String>javascript:myScript();submitCommand(document.mainform,%20'Recalculate');</String>
    </Property>
    </Display>
    </Field>
    My issue is, if variables.variable2 is a list / multivalued, i get errors trying to traverse through the "array".
    How can i read and set a list element via the javascript function above? I've tried things like get(), put() , as well
    as path expressions like variables.variable2[0] .
    any help would be appreciated....
    is there an API somewhere i can reference?

    The MultiSelect field-type is a little different than the rest of the fields. If you use the applet version, then selecting/deselecting values cannot be captured by referencing the field directly in javascript.
    The way to identify the selections is to use the javascript methods includes/MultiSelect.js file (IDM form submission uses the same method):
    fixMultiSelectAppletBeforeSubmit( )
    fixMultiSelectNonAppletBeforeSubmit( )
    .. and then referencing the "<multiselect-field>_selected" form element.
    So in your case, the code should look something like this:
    function myScript() {
        fixMultiSelectAppletBeforeSubmit(document.mainform,"variables.variable1");
        var el1 = getElement(document.mainform,"variables.variable1_selected");
        // assign the value to variable2..
        el2 = getElement(document.mainform,"variables.variable2");
        el2.value = el1.value;
    }Just make sure ":variables.variable2" is not a multi-select field, else the value set here will be reset during form submission.
    Adi
    [www.xpressutils.com|http://www.xpressutils.com]

  • How to set time out in the abap program?

    Hi,
    I want to set the execution time in the IN_UPDATE block of a BADI, could you tell me how to code that?
    When the specified execution time reaches, and the badi is still running, then pop up a window and tell the end user the time out message.
    Does SAP have any function regarding this? Thanks in advance.

    You can have the INPUT be a number of seconds, then calculate the max endtime = SY-UZEIT + INPUT. Have checks throughout the program that returns an error as OUTPUT if exittime >= SY-UZEIT(current time).
    There may be an easier way but this is all I can think of as a user set timeout option.

  • HT1178 how to set time capsule on new network

    I had a time capsule set up on a wireless network. The network changed modems and I forgot to change the time capsule. Now it will not register on the new network. How do I get it to register.

    Do a factory reset.

  • How to Set Time Period for KM Scheduler

    Hi ,
           I have created one Par based application in which i have assigned one role to perticular id dynamically and i scheduled this task by using KM Scheduler. but this scheduler assigns this task for 1 mins or greater than 1 hrs. i wanted to run this task for every 10 mins or 20mins or 30 mins. actually i tried to edit the time table property  for KM Scheduler for 10 mins but it not works it take 1 hrs and 10 mins.
           so is there any way to edit this time table property and set scheduler time to 10 mins or 20 mins.
    Kind Regards,
    Rahul

    Hi Rahul,
    If you want to run the scheduler for every 10 minutes, you can create your own timetable and assign it in the scheduler tasks.
    Steps:
    Goto Sytem Admin -> System Config -> Knowledge Management -> Content Management -> Global Services -> Scheduler Time Table -> Time Table -> Click on New
    You can find Scheduler Time Table in advanced options.
    Specify the vales as mentioned below and save it:
    ID: <any ID as you want> 
    Minute : 10
    Time Zone  : GMT+05:30 (Asia/Calcutta) India Standard Time
    For other parameters, no need to specify any value.
    Then go to Global Services -> Scheduler Tasks -> Your Scheduler Component -> Select the new timetable you have created for timetable parameter and click OK
    I have specified timezone as IST time. You can change the time zone as you require.I have done this and its working for me.
    Hope this helps.
    PS:Reward points for useful answers
    Regards,
    Yoga
    Edited by: Yogalakshmi on Feb 27, 2008 6:14 AM

  • How to set time capsule as a device in finder

    Im trying to download some video and photos from my time cpsule. the problem is that I dont see it as a device in finder. I mnaged somehow to see it once and then i upload some photos but now I can not view them. I can do backup without any problem. I just need to find out how to get it as a device in finder.

    You will not see the Time Capsule as a Device in the Finder.
    Open Finder or Macintosh HD and look for the Time Capsule icon under the SHARED heading on the left side of the window.
    Click on the Time Capsule icon and a folder representing the Time Capsule disk will appear to the right.
    Double click the folder to mount the Time Capsule drive on the desktop.  You can drag/drop or copy/paste to the drive.

  • How to set  time on cluster nodes

    We have setup of two cluster node. Both having the same time runing . Now i have to change this time to 15-20 mnts. backward on both nodes. I want to know whether online with date command can set the date on indivisual nodes or any precautions need to take ?
    Thanks in advance
    sanjay

    use ntp: network time protocol. set up ntpd correctly to get time from external ntp server that is open to the public, or a ntp pool

  • How to set time in Dual-boot config with Windows 8.1

    Hi,
    I have been trying to workaround this problem i am having with Arch linux and Windows 8.1 time settings.
    According to Installation guide on Wiki I set hardware clock to UTC and added my local time zone too.
    But my Windows 8.1 uses hardware clock a local time and it is really confusing me.
    I did tried to setup Windows 8.1 to use UTC (http://superuser.com/questions/494432/f … bios-clock)
    but that settings is not working on my side (most Windows 8.1 users are also getting the same problem)
    Please help.

    I have two laptops which are dual booted arch and Windows 8.1.  For both of those machines I set the Windows clock to be UTC instead of local using the method in https://wiki.archlinux.org/index.php/Ti … in_Windows (i.e. creating the .reg file and executing it - take care that the .reg file is created correctly with the .reg extension or it won't execute).  I still allow Windows 8.1 to update its time from the network and it does not cause a problem, though the advice is to let Arch do the time synchronisation. (That may be because it is not yet summertime so I will also disable time sync in Windows before the change to summertime at the end of this month). I also followed the normal install advice for Arch and have the hardware clock in UTC, and have chrony set up to keep time in sync.  Additionally I use KDE and have my normal timezone with DST adjustments for summertime.  I have not had any problem with that way of working on either of my two machines.
    I presume that if the Windows clock registry hack is done after the dual boot install it should not matter but I made that change before installing Arch.
    Last edited by mcloaked (2014-03-21 10:46:04)

  • How to set Time capsule as base station and airport express to join

    I have a wireless network using an Airport express. Now I would like to have time capsule to be set up as the base station and just the airport express to join this network, in order to listen wirelessly to music, but keep the speed of the time capsule.
    Right now, the ethernet cable is connected to the Airport express. Do I have to switch that to the Time capsule? I tried to do that, but it wasn't able to connect to the internet in this case.... I am lost. Now I have a speedy time capsule, but have the network running on the slow Airport express... Please help!!! And I believe as you guessed already, I am not a smarty, when it comes to networks.
    HELP! Please!!

    I actually have mine set up this way that you are looking to do. Works well for me. here si what you can try:
    Make sure you unplug the Express all together first. It does interfere when trying to set this up. Next setup your TC just like the instruction says (remember no Express). You should just be able to set up your TC, connect to the internet and get going like any other router or like the Airport Extreme. if you set up your TC with your comp and CANNOT access the internet that is your first problem. My suggestion: do a hard reset of the TC if you have already attached it to the Express while also doing a hard reset of the Express - this is to bring them both back to afctory defaults to start fresh. This definitaely helped me.
    So once you have your TC up and running and you have internet access thru your TC, you are halfway there. Make sure your TC shows in the left column of the Airport Utility (and dont forget to install the Airport Utility from the disc that comes with teh TC before you do any of this, forgot that). if it shows up in the left column you should also be able to see the Express in that column, both with green lights, if you have set this up correctly. Then plug in the Express. As the above mentioned remember t make sure it is connected to the correct port on that back of the TC. It will remain amber then blink a few times. This is normal. It should be blinking amber when you attempt the setup of the Express. Your airport utility shoul dnow see the addt base station (Express) in the left column. When you click on it and click CONTINUE it will ask you if you want to switch networks. You can do that and lick switch provided you are already connected to the TC and alrady have an internet connection. Once you click switch the TC will disappear from the left column and you will be left only with the Express. This is OK. I am not in fron to fm y comp right now so I am doing this from memory but in setting up the Express you want to add it to your existing network. You will have to choose which network to add it to in a drop down box in one of those steps - just make sure you add it to the one that you named your TC. Then click to the finish and click UPDATE. Let it finish the update - you shoul dsee green light son both the TC and Extreme HARDWARE - not necessarily in the airport utility. Also it is a good idea to to to the menu bar on top where the WiFi icon is and manually select your network in case you get bumped off while the TC is updating itself after you ckicl update - this happened ot me and it wouldnt complete the update and took me forever to figure out it needs internet connection to complete the update screen.
    next make sure you RESTART your comp. This I guess will make all changes basically go into effect as you cycle it up. When you are up and running you should see your WiFi connect as your TC and NOT your Express. Also go back into airport utility and see if you ahve both items listed in left column - they too should have a greenlight. If they do you should be set.
    I did this because I wanted to steam my iTunes files that I have on my TC to stream to iTunes via my network. The Express part, as you know, is what allows the streaming. So make sure you plug your stereo cable into the Express audio port. Then go to iTunes and on the bottom you will notice a new little drop down box - make sure to select Express so it can wireless stream (in iTunes prefs there is a pref you must turn on also to allow iTunes to see remote speakers.
    Ive simplified this a little since I am not at home but this is the gist. In a prefect worl you should be able to easily have this work. I did so I know it does at least work if not anything else. You just have to make sure you get the steps correct and have everyhing plugge din where they should be...
    G'luck

Maybe you are looking for

  • Button to Load New Content on Same Page

    I'm not new but I don't design enough websites in a year to keep up with all the new technology & I'm afraid I've missed some of the basics along the way. I design my sites with DIVs within Dreamweaver CS5 & I want to have a button within a DIV that

  • 9.2.0.6 runInstaller cannot write into its own installation directory

    I would like to install the 9.2.0.6 patchset on a freshly installed 9.2.0.4_linux_x86_64 (AMD). The system is RedHat EL AS 3. I have installed j2re1.4.2_07 (because the Java brought by Oracle does not even start the VM ...) and edited the ./install/o

  • JNDI DataSource setup under JDev 10.1.3.2

    I have a simple app of a dozen JSP pages, initially delevoped under JDev then deployed (copied, really) to Tomcat. It works fine. I am not using ADF or anything fancy (just JDBC from beans called from the pages). Then I wanted to start using the DBCP

  • Imovie locks up/crashes every time I drop a film clip into the project

    Almost every time that I drop in a film clip to my current project, iMovie locks up and crashes producing a long readout for Apple.  I've made plenty of projects, but this one is due by Friday. I have to keep waiting to close it and go back in.  Ever

  • Windows 7 64-bit & BO products

    Are ACE and Presort compatible with 64-bit Windows 7? We don't have any machines with that OS yet, but hopefully we will next year. Thanks.