How to use Time in Due Transition

Hello All,
I have a requirement when I have to fire a due transition based on time. lets say midnight of a certain date
let assume the date is Jan 28, 2010 12:00:00 AM
how can i do it since the due transition needs an interval and not time.

If you're on Oracle BPM 10g or an earlier release of ALBPM, there are two ways to do this.
1. You could set your Due Transition's property set to "Schedule Based" and set it to some time in the future.
2. You could use logic to determine the time interval. The logic below assumes that you have a time in the future that you want to fire the Due transition on. Ignore the first two lines where I hard coded the date, they are just in there so you can test it. Similarly, do not code yours with the "display" statements - they are just in there so you can test it. A method like this just needs one incoming parameter - a time in the future (the "timeToFireDue" in the logic shown below). If it's a time in the future, then it will return a valid time interval to wait. If it's in the past, you could either set it to "null" to indicate to ignore the due transition or to '0s' as I've done below to cause the due transition to immediately fire when the work item instance reaches the activity. This logic could be either be in a BPM Object method or inside an Automatic activity upstream of the Due transition. Make the Due transition's property setting "IntervalExpression".
date1 as String = "30-Jun-2010 12:01"
timeToFireDue as Time = SimpleDateFormat("dd-MMM-yyyy HH:mm").parse(date1)
timeIntervalToWait as Interval
// it's in the future
if timeToFireDue.minutes > 'now'.minutes then
    minutesInFuture as Int = timeToFireDue.minutes - 'now'.minutes
    timeIntervalToWait = Interval(minutesInFuture + "m")
else
    // it's in the past so fire the due transition
    timeIntervalToWait = '0s'
end
minutesInFuture as Int = timeToFireDue.minutes - 'now'.minutes
display minutesInFuture
timeIntervalToWait = Interval(minutesInFuture + "m")
display timeIntervalToWait Dan

Similar Messages

  • Can't use time machine due to corruptness even after reinstalling snow lepoard how to fix?

    Yes, someone stole my original apple id in 2009. Now i bought another iphone in late 2012 , Created another apple id due to Apple not being able to help me access my original apple id. Which now since 2 months ago someone or company, or bank stole my second apple id. My iphone 4s with Sprint has no celluar connection supossedly due to no internet  that is what sprint said but I looked it up on apple and it stated that there is a cellluar block on my iphone4s.
    So I guess I will have to go in person to Sprint so they can explain that to me and why I was lied to on the phone earlier.  Back to my 2nd stolen apple id that I registered  my macbook,airport express router, and iphone4s and apple TV. So who ever stole this apple id obviously took over all my mac products I had registered to it. Enough about that back to trying to use time machine....Everytime i do,  my macbook just starts acting all screwed up.  I bought a WD external drive for Mac but I believe someone must have claimed it too.  Since there is 75gb on it that I can't access.  Kind of like my Macbook stating I can't save or have access to the Root .  That is another thing after reinstalling snow lepoard  which works great until I update it.  Which is a problem because everytime I update it to  10.6.8  All the permissions are changed the graphics look horrible and I get redirected so bad its not funny. The email account is a joke.   Also I notice my stationary for email is in Spanish not sure why and on Iworks the document samples are also in spanish. Now I dont speak any other language except ENGLISH AND HAVE LIVED IN UNITEDSTATES MY ENTIRE LIFE.  But my internet provider Fibrant which swears they are local  shows it is in the UK also when i try to access my email for that account it states it is not safe , certificate is expired and someone might be trying to impersonate my server.  Needless to say it is getting old. I had this same problem with Timewarner and Att except att would just remove my ethernet driver then laugh when i would call and ask what the problem was.  Then later I find out when I had DSL that somehow the phone number they had listed was  change to being a digit off from my DSL account which again they laughed and thought it was funny.     Enough about that.  I need to know how to get access to my Apple id.  I gave up on the first one but the second one I did have access to until I registered all my apple products.  What is up with every thing I have with a usb port being corrupt.  I have also notice anywhere in town where I live my phone is English until I come home it is arabic,hebrew , spanish any language except English.  Shouldn't I be safer in my home???????????????  But I am not I am safer in town or anywhere but my home.  EVerything states international  in my home and this has been going on since 2009.....No one can tell me why.  My power from Duke reads that OTHER Is costing me the most $$ every month what ????? This is a joke.    But yet no one can tell me why or how to fix the problem.  Going on 5 years , I have been cut off from everyone I know.  Can't keep contacts on a phone or email accts. They all disappear.  All so I am in Eastern time zone but all my computers and tv seems to think I am in pacific timezone.  No one can fix this problem either.   So if anyone has any suggestions on how to fix at least one of my 5 year problems I would be grateful.  I try to create a new email account but either I am locked out right after or someone turns it into an alias account which doesn't help me.  When I was layed off in 2009-2010  I went back to school/college.  Needless to say they took my School email acct too. 
    Back to my iphone 4s problem.  My icloud email account gets alot of spam starting about 2 months ago and I can't stop it. I try to foward it to Spam @ me but it hasn't helped.My iphone can only connect to the internet with wifi.  Sprint swears that there is not a block but according to apple there is.
    About my macbook and apple ID how can I upgrade my Macbook from 10.6.3 to 10.6.8 with out all the permissions being changed and corrupt?? I have tried several times and it is always the same. I won't to connect my iphone to itunes to try to restore it but it states I  have to update it to 10.6.8. When I do that my computer is alot worse off.  Also how can I use TimeMachine with out my Macbook getting messed up?  Something in my house has taken over anything with a usb port actually years ago and probably now something kept turning all my computers and phones or any electronic I owned it to a printer.  I actually can't even use a printer in my home thats the funny thing.  When I try to connect one when I used windows it stated I had no rights to it and couldn't use it.  Since I switch to Mac not much better.  When I try to print a test page it is all crooked and too small of half off the page.   So it is upsetting that I can't use  a printer but something keeps turning all my electronics into printers.  If anyone knows how to fix this problem that would be great or to stop all this international stuff going on in my home that would  be wonderful.  I try to buy brand new pcs but soon as I start them up something had already taken over. This is with nothing electronic in my home on. Turn everything that a power switch off or unplugged it.  Still I lost rights and access to anything in my home. Now if I am away from my home and try to use one of my laptops they look completely different and almost usable.   Unfortunately I can't afford to move. I thought about it but I am still in bankruptcy and don't have the money.  In the last 4 years I have not been able to reinstall in backups that I have created.  Not sure why oh wait it states I have no rights to do that.  My macbook I lost access to a week after I bought it and connected my iphone too.  You don't know how many times I wish I had never backed my iphone 4s to my Macbook.  Right after I could not log into it.  Even used the disk to reset the password nope still couldn't log into it.   Try to type the formula for resetting the password and nope it didn't work either.
    Any suggestions would be appreciated---Need to gain access to my apple Id that would be a great start
    Thanks, Suzanne
    UnitedSTates
    Eastern timezone

    Didn't really read much at all of your post. Much, much too long, irrelevant details and & no paragraphs.
    Can't use time machine due to corruptness
    Post over here -> Mac OS X v10.6 - Snow Leopard forum
    About my macbook and apple ID how can I upgrade my Macbook from 10.6.3 to 10.6.8 with out all the permissions being changed and corrupt??
    Same as above. Post in the correct forum.
    Need to gain access to my apple Id that would be a great start
    -> http://support.apple.com/kb/HT5625

  • How to use time stamps en how to make time stamps in Adobe Reader

    How to use time stamps en how to make time stamps in Adobe Reader

    Did you find a solution? I am having the same problem.
    PDF compatibility level is too high. Supported PDF versions are PDF 1.3 and PDF 1.4 (Acrobat 4, 5 and 6). If you are using Acrobat 7 or higher you will need to save your file at a lower PDF compatibility level.

  • How to use time stretch

    Hello
    Please...; I don't know how to use time stretch. When i select a music from a cd and import it in garage band. I change the tempo to accelarate but i can hear no change ... Would please help me and tell me if there is anyway. Thank you .... Olivier

    olivier Bellili wrote:
    Hello
    Please...; I don't know how to use time stretch.
    technically GB has no "time stretch" tools
    I change the tempo to accelarate but i can hear no change
    tempo change is different, and easy:
    http://www.bulletsandbones.com/GB/GBFAQ.html#changetempo
    (Let the page FULLY load. The link to your answer is at the top of your screen)

  • How to use time capsule for wireless back-up but not internet?

    Hello,
    I have a tower and recently a laptop at work. The tower is connected to our local network with an ethernet cable and the laptop with wireless. So, the internet connection is fine for both.
    I was hoping to use my time capsule to do time machine backups on my laptop. Do you have any advice on how to configure this? I do not want to use the time capsule to extend my Internet, as I believe my work I.T. would prefer to handle all access to their  network.
    Perhaps there is some documentation about doing this that you could point me to? I have not been able to find it.
    Thank you for your help.

    Your original question was How to use Time Capsule for wireless back-up but not Internet?
    There is no reason for you to connect the tower....or anything else...using Ethernet if your goal remains that same as you stated.
    If you are asking if you can backup the Tower using Ethernet, and not wireless, then you can connect the tower to one of the LAN <-> ports on the Time Capsule....not the WAN port.
    Yes, it appears to work without plugging into my tower.
    Correct, it will work.
    I just have to select the network that it created. Of course, I have no access to the Internet while this is happening and it can not auto backup, unless I am on that wireless signal.
    As I stated, that is the downside to trying to back up without an Internet connection.  You have to establish another network...and backup over that network.
    If you are asking if you can stay connected to the work network while also backing up to your non-Internet "private" network, that is not possible.

  • How to use time machine to back up

    how to use time machine to back up files

    Welcome to the Apple Support Communities
    See > http://support.apple.com/kb/ht1427
    To set up Time Machine, open System Preferences > Time Machine > Select Disk, and choose the external disk you want to use to make the backups. Time Machine will start making its first backup just after selecting your external drive.
    If you have more questions about Time Machine, see this website > http://pondini.org

  • How to use Time Capsule via INTERNET WITH WINDOWS 7 SMB Cloud

    how to use Time Capsule via INTERNET WITH WINDOWS 7 SMB Cloud

    Get a vpn router.. I have no idea where you are in the world but you can find reasonable stuff for not too much money or even a general router that takes third party firmware like dd-wrt can run openvpn. 
    Set up the vpn router in place of the TC, as the main router in the network. Simply bridge the TC and place it behind the router. It will be accessible as part of the network via the vpn.
    This is the only safe way to do it via windows.
    http://www.dyncommunity.com/questions/18132/accessing-time-capsule-from-windows- 7-over-the-int.html
    If you google around I have seen posts about how to access TC by port forwarding SMB on the TC.. using a different port.. To me this is going to slow down the hackers by a day or two.. then they will discover the open port and access your network.. not just the TC.. they now have SMB access to everything. Don't do it. There is very little security on SMB.

  • I have a LaCie external hard disk. I do not know how to retrieve photos from iphoto that have disappeared. I do not know how to use Time Machine

    I have a LaCie external hard drive. I also have Time Machine. I somehow have "lost" almost all my 5,000+ photos from iPhoto 8.1.2. I would appreciate someone giving me directions on how to retrieve the photos from the external hard drive or Time Machine.
    The last thing that I did that is different from my normal routine was to trash duplicate music tunes from iTunes. I cannot figure out how that would have caused my photos to disappear.
    Thanks in advance for any assistance.
    Marilyn

    I remember being cautioned to never do anything with the iPhoto Library. Should I have clicked on the iPhoto Library and then Restore?
    I do not know "how" items are being placed in the LaCie external drive, just that it shows a backup running about every hour. I have taken a snapshot of the Time Machine Preferences I would you to see. Maybe that would answer this question.
    In March 2011 I had to have hard drive on my iMac replaced. I had been using a Seagate external drive for backups. However I was not using Time Machine. When the Apple guru was helping me restore all my files etc on the new hard drive he was not familiar with Seagate and recommended I purchase this LaCie and use Time Machine. I never had any problem retrieving items from the Seagate backup. It was very straightforward. As I mentioned previously, I just don't have a clue with the LaCie and Time Machine.
    I hope this is not TMI.
    Marilyn

  • How to use time machine to replace the current iMovie for one a few weeks ago?

    I have a movie in iMovie that somehow became unusable.  The size says it is 10GB when it should only be about 1GB.  I have been to the Genius Bar for a total of 4 hours and the only solution we can find is to REMAKE the entire movie.  They say that one or more of my movie clips must have imbedded data that it shutting the whole iMovie program down.  They say there is no way to know which clip is causing the problem.  I really don't want to remake the entire 2 hour movie.  I tried to use time machine and found my movie from about 3 weeks ago (before it ballooned to 10GB--so I guess before I added the bad clip) and I just wanted to replace my current one with this version and just fill in the last 3 weeks of data.  However I can't seem to do this.  Does anyone know how to do this using iMovie '08?

    sheri69 wrote:
    I tried to use time machine and found my movie from about 3 weeks ago (before it ballooned to 10GB--so I guess before I added the bad clip) and I just wanted to replace my current one with this version and just fill in the last 3 weeks of data.  However I can't seem to do this.  Does anyone know how to do this using iMovie '08?
    You don't do it with iMovie, but with Time Machine.
    Quit iMovie, then locate and select the file you want to restore in your backups via the "Star Wars" display and click the Restore button.  See #15 in Time Machine - Frequently Asked Questions.

  • How to use Time Machine/Migration Assistant

    I have a 2008 Mac Pro that died.  I now have a 2010 Mac Pro.  The 2010 Mac Pro only has the original Apple software installed so far (updated to 10.6.8). 
    I have a Time Machine backup drive from the 2008 Mac, as well as an additional hard drive that may contain all or most of the data from the now dead 2008 machine. 
    Presently, I must use OS 10.6.8 because of my need to run some legacy software.  How do I use Time Machine from my 2008 Mac Pro to get my items on the 2010 Mac Pro? 

    Here is another point of view:
    Setting-up a new Mac from an old one, its backups, or a PC
    And another speedup to consider at this juncture:
    User Tip: Creating a lean, fast Boot Drive

  • How to use Time Machine before and after installing a new hard drive

    So basically I'm buying a new hard drive for my Macbook pro and I have a lot of files on my computer that I would like to save. I have never used Time Machine before so I need help on how to set it up before AND after installing the harddrive so my files get transferred onto the new hard drive. Thanks in advance

    wjosten wrote:
    Me, I would never use Time Machine to do this. What I'd suggest you do is get an exterior enclosure for your new drive. Then use either Carbon Copy Cloner or SuperDuper to clone your existing drive to your new drive. Once done, verify your clone is bootable & all of your data present. Then swap drives & use your old drive for Time Machine backups(after erasing it). Then get another drive & exterior enclosure to regularly clone your new drive to.
    Unless he was swapping for a lower capacity HDD or to a lower capacity SSD, then the old drive would make a lousy Time Machine disk.  However, whenever I swap out a disk I do exactly what you do.  CCC to get the ol drive onto a new one.  Test by starting up to the new (but still external drive).  Then replace the internal drive.
    I usually just sell the old drive on eBay.  My Time Machine backup is always 2X the size of the internal drive, which I believe is a bit above recommendations, but works for me.  The price of large external drives is almost the same as smaller internal ones.

  • TS3161 how to use time machine to reconstitute old iPhoto library

    In moving photos in other files to the Pictures Folder, I somehow changed the iPhoto Library. How do I use Time Machine to put the iPhoto Library back in the right place with the picture data for iPhoto prior the the additions to the Picture folder.

    Open Home/Folder/Pictures/iPhoto
    Click the Time Machine icon in the toolbar and enter...
    Go back in time and click restore...

  • How to use time dimension.

    Hi All,
    I have to create a report that will show the worth of portfolio based on time frame that is monthly, quarterly, yearly and since inception.
    How can i proceed because i have never used time dimension?
    Further i have only one column "Date" in the portfolio table that has a corresponding
    worth value. SO i need to create the dimension based on this date column.
    Pls help me
    Thanks

    If all you want is to achieve drills from Month, Quarter and Year then treat it as a normal dimension and create the levels. But if you want to do calculations like YTD, QTD and MTD then you need to create a time dimension. Check my blog entry here http://oraclebizint.wordpress.com/2007/11/05/oracle-bi-ee-101332-understanding-todate-and-ago-achieving-ytd-qtd-and-mtd/ for creating a sample time dimension. Also, you need to manually create logical columns corresponding to the levels that you need. So, if you have only a date column then create logical columns Year, Month and Quarter from this column and then create the time dimension.
    Thanks,
    Venkat
    http://oraclebizint.wordpress.com

  • How to use time capsule as hardisk?

    I googled but didn't find any answer so do you know how to use it I have the 1tb I want to use it as external hardisk I got a tip from a friend if I create a raid that would split the hardisk to two one for back up & one for regular use. But his tip was for regular hardisks.
    So do you know if it is possible to use it as a hardisk as in clean copy paste that kinda hardisk. Because my friend has a 1 TB windows hardisk full of memories & video & travels & journeys he went to. I want to copy all his hardisk is thier a better or a faster way to copy it anyway knowing that he has a toshiba qosmio laptop. I have the time capsule CD if you just wanted to know!

    perhaps this helps: http://discussions.apple.com/thread.jspa?threadID=1964018#3.
    JGG

  • How to use time values from graph or chart for other calculations

    iam generating an ultrasonic signal of frequency 500k. In the equation i need the values of time axis of the graph or chart for calculationg the envelope of the graph. please help me how to use the x-axis time values.I have tried by writing in spread sheeet or by using arrays. here iam not able to get only 1 dim time values.
    AshwiniP

    Use a property node

Maybe you are looking for