Inconsistant actions with the update script

Ok so I'm working on a script to send a email after X number of days (I asked this before and hit problems with it even after I had help), and I've been trying to chip away at it and I notice something that made no sense (Unless I'm missing something). I have two if statements to check if it's time to send a email (One for the amount of days that pass, and another to lock it out after the first time it sends a email). Problem is even that UCM doesn't seem to care about the fact that dateCurrent() is not greater then lastEntryTs even though doing the test it works fine, yet sitting in the workflow it doesn't seem to care.
The code is pretty much this
<$if formatDateWithPattern(wfGet("lastEntryTs"), "yyMMdd") < formatDateWithPattern(dateCurrent(), "yyMMdd")$>
<$if xinteger_flag == 0$>
<$wfMessage="OK this should work now"$>
<$wfNotify("test_user", "user")$>
<$wfUpdateMetaData("xinteger_flag", 1)$>
<$endif$>
<$endif$>
<$if formatDateWithPattern(wfGet("lastEntryTs"), "yyMMdd") < formatDateWithPattern(dateCurrent(-1), "yyMMdd")$>
<$if xinteger_flag == 1$>
<$wfMessage="OK this should work not for the second time"$>
<$wfNotify("test_user", "user")$>
<$wfUpdateMetaData("xinteger_flag", 2)$>
<$endif$>
<$endif$>
Now if I test this under the test tab it works fine as is (and if I change dateCurrent(+1) it works as it should being a day over what I wanted), and it changes xinteger_flag and that works. But when I put a item in this work flow it doesn't work as it should and I still get a email every hour just like before. Any idea what I'm doing wrong with this script?

when the item enters workflow and after your custom mail notificaiton do you see the xinteger_flag set to 1?
change <$wfUpdateMetaData("xinteger_flag", 1)$>
to
<$wfUpdateMetaData("xinteger_flag", "1")$>
you could also try appending the flag to mail
<$wfMessage="OK this should work now : " & xinteger_flag$>
Edited by: Bunty on Feb 22, 2013 3:46 PM

Similar Messages

  • How to apply different keyboard shortcuts to an actions with the same name but in different menus within one application?

    Hi,
    Hopefully someone can help. I have the application "djay" and in two different menus there is the action "Eject". I was wondering if it's possible to apply different keyboard shortcuts to those actions with the same name? I can't see how to do it as it seems you can only write the action but as there are two it doesn't seem to work for me.
    For example:
    djay>Table-1>Eject - ⌘⇧1
    djay>Table-2>Eject - ⌘⇧0
    Thanks in advance for any help!!

    A NodeList doesn't only contain 1 element. In your example it contains ALL <Data> elements inside the document.
    NodeList nodes = document.getElementsByTagName("Data");
    System.out.println(nodes.getLength() + " \"Data\"-elements found");
    for(int i=0; i<nodes.getLength(); i++) {
       Node node = nodes.item(i);
    }

  • I need to update my phone, but my computer broke, and do not have a new one. I have an Itunes account, can I use someone else computer to go through with the update?  Is there a chance of loosing all my data, ie: music/photos?

    I need to update my phone, but my computer broke, and do not have a new one. can I use someone else computer to go through with the update if i log on with my itunes account or Is there a chance of loosing all my data, ie: music/photos? And if all else fails can i go to the apple store and have them update my phone?

    Update to what? The 3G you want to update? You have ios3 or 4 on that 3G?
    Go to a friend, authorize that pc.
    Read this : http://support.apple.com/kb/ht1848
    and this : http://support.apple.com/kb/ht2519
    Make a backup of your stuff (from the phone. apps/photos/music/blabla). Update your phone. The phone will restore the backup automatically.

  • I just purchase a brand new mac computer and I need to purchase new adobe CS software. Do you know if Adobe CS5 Design Premium-MAc is compatible with new mac computers with the updated software?

    I just purchase a brand new mac computer and I need to purchase new adobe CS software for work. Do you know if Adobe CS5 Design Premium-Mac is compatible with new mac computers with the updated Yosemite software? *No previous adobe CS software versions are on this computer

    There are known technical issues with any older version on Yosemite, even CS6. Some can be worked out, others may not be relevant to you, some will remain unsolved.
    Mylenium

  • Runtime-Error after deploying a mapping with the generated script

    For example a very easy scenario:
    1. Create a table and a view in a DB-schema, witch ist registered as WB-target-schema with the following scripts:
    create view v1(c1) as select 'a' c1 from dual;
    create table t1(c1 varchar2(1));
    2. Import the table and the view into a OWB-module
    3. Create a mapping ‘m1’
    4. Drag and drop view and table into the mapping
    5. Draw an arrow from the view-column to the table-column
    6. Save and close the mapping
    7. Mark the mapping in the ‘Design Center’ and klick the ‘Generate’-Button
    8. Save the generated script ‘M1.pls’ to file
    9. Run the script in SQL*Plus, connected with the target-schema (without using the Control Center Manager)
    => very easy right now ;-)
    10. Start the mapping with the following script will produce the following error
    SQL> declare
    2 v_status varchar2(100);
    3 begin
    4 m1.main(v_status);
    5 end;
    6 /
    declare
    ERROR at line 1:
    ORA-01403: no data found
    ORA-06512: at "OWB_OWN.WB_RT_MAPAUDIT_UTIL", line 1027
    ORA-06512: at "SCOTT.M1", line 2048
    ORA-06512: at line 4
    If i delete or comment the four WB_RT_MAPAUDIT_UTIL-calls - it work´s fine!
    But is this a good advise?
    What exactly does the wrapped package ‘WB_RT_MAPAUDIT_UTIL do?
    Thanks
    jwehner

    I just ran into the same problem myself. I used the same technique of saving the generated OWB script to file and then compiling it through sqlplus. When I used the "Deploy" option for the mapping, then the problem went away. So when OWB is deploying the code it seems to be setting something internally that doesn't get set when you simple compile the PL/SQL. I don't know of any workaround to this. I will need it eventually, since I don't want to use the UI to deploy to various test environments and production. Maybe the built-in scripting language is the way to go.

  • Two previous questions may not have been as clear as I would have liked. I recently upgraded my MacBook 2008 (10.5.8) to Snow Leopard (10.6.8). With the updates came iTunes 11.1.1 and Quicktime 7.6.6. I am still using Garageband 2008 and iPhoto 2008. When

    Two previous questions may not have been as clear as I would have liked. I recently upgraded my MacBook 2008 (10.5.8) to Snow Leopard (10.6.8). With the updates came iTunes 11.1.1 and Quicktime 7.6.6. I am still using Garageband 2008 and iPhoto 2008. When I create music in Garageband I usually adjust the volume and save it. Even now when I share the Garageband created files with iTunes 11.1.1, the volime I previously set in Garageband is retained. However, when I use the music to create a slide show in iPhoto 2008 and export to Quicktime 7.6.6, the volume level I previously set is lost and seems to default to a low level. The problem seems to be either in the slide show export from iPhoto 2008 to Quicktime 7.6.6 or in Quicktime itself. Is there a work around, so that I can retain the volume level I had previously set in Garageband, a volume level that seems to transfer without problem to the new iTunes. But then iPhoto 2008 (slide show) possibly or Quicktime 7.6.6 do not cooperate. Before I did the upgrade to Snow Leopard, the new iTunes and Quicktime I had no problems with the set volume being retained in the old Quicktime. The reason I need control over the volume is that all these music files are uploaded to YouTube.

    Two previous questions may not have been as clear as I would have liked. I recently upgraded my MacBook 2008 (10.5.8) to Snow Leopard (10.6.8). With the updates came iTunes 11.1.1 and Quicktime 7.6.6. I am still using Garageband 2008 and iPhoto 2008. When I create music in Garageband I usually adjust the volume and save it. Even now when I share the Garageband created files with iTunes 11.1.1, the volime I previously set in Garageband is retained. However, when I use the music to create a slide show in iPhoto 2008 and export to Quicktime 7.6.6, the volume level I previously set is lost and seems to default to a low level. The problem seems to be either in the slide show export from iPhoto 2008 to Quicktime 7.6.6 or in Quicktime itself. Is there a work around, so that I can retain the volume level I had previously set in Garageband, a volume level that seems to transfer without problem to the new iTunes. But then iPhoto 2008 (slide show) possibly or Quicktime 7.6.6 do not cooperate. Before I did the upgrade to Snow Leopard, the new iTunes and Quicktime I had no problems with the set volume being retained in the old Quicktime. The reason I need control over the volume is that all these music files are uploaded to YouTube.

  • Not rally a question, just wanted to share my absolute frustration with the update of iTunes...this is, without a shadow of a doubt THE WORST application i have EVER used, Mac or PC! And that's saying something with the amount of PC dross that's out there

    Not rally a question, just wanted to share my absolute frustration with the update of iTunes...this is, without a shadow of a doubt THE WORST application i have EVER used, Mac or PC! And that's saying something with the amount of PC dross that's out there...Apple...PLEASE update and give us back the old version of iTunes...

    Pull down View > Show Sidebar. This will give you back the same functionality of iTunes 10.x.x.

  • I have an A5X chip iPad with retina display with AppleCare . If my iPad broke would apple replace it with the updated iPad with retina display?

    I have an A5X chip iPad with retina display with AppleCare+ . If my iPad broke would apple replace it with the updated iPad with retina display that has the A6X chip?

    They will replace your "broken" iPad with an iPad of equal type .... so NO, they will not replace it with a new iPad 4th generation. They will actually replace your "broken" iPad with a refurb, not a new one.

  • Daily I receive a question for updating my Firefox (s.6.17 MacOs), but when I agree the result is Or no contact with the update-server

    Daily I receive a message for updating my Firefox (3.6.17 MacOs 10.6.8) but when I agree, it takes quite a long time and then OR a message: no contact with the update-server OR something like: Sorry we cannot find xxxxx(?!).
    QUESTION: HOW TO UPDATE?
    [By the way: what about version 8.0! Is that perhaps for mobile-systems?
    With regards, Jan Stevens.

    If there are problems with updating or with the permissions then easiest is to download the full version and trash the currently installed version to do a clean install of the new version.
    Download a new copy of the Firefox program and save the disk image (dmg) file to the desktop
    *Firefox 8.0.x: http://www.mozilla.com/en-US/firefox/all.html
    *Trash the current Firefox application to do a clean (re-)install
    *Install the new version that you have downloaded
    Your profile data is stored elsewhere in the Firefox Profile Folder, so you won't lose your bookmarks and other personal data if you uninstall and (re)install Firefox.
    *http://kb.mozillazine.org/Profile_folder_-_Firefox

  • HT1338 where is the update for aperture to make it work with the updated os x yosemite

    where is the update for aperture to make it work with the updated os x yosemite

    The currently sold version of Aperture at the AppStore, Aperture 3.6 is compatible with Yosemite. 
    See the Release notes: Aperture 3.6 Release notes
    If you are running any version of Aperture 3, you should be able to update to this version.  Does the update not show for you?
    The update has been shown automatically for those who had upgraded from Mavericks and been running Aperture 3.5.1. Other users, who skipped Mavericks and Aperture 3.5.1 have reported problems to get the update to show and needed to contact the AppStore Support. The update did not show, if the users tried to update from an earlier version.

  • Where can one find the "Acrobat 8.0 with the updated, ALM-disabled media"

    Q: If a machine is re-imaged or the hard disk is reformatted, what happens to the e-license?
    A: The e-license will be lost along with all the data on the hard drive. You should reinstall Acrobat 8.0 with the updated, ALM-disabled media.

    The text on that page basically says:
    If you have software after April 9, 2007, you don't need the ALM disabled software. If you have older software, contact support. Follow the instructions on that page.
    Ben

  • My ipod says it is updated to most current 6.1.6, i use the rdio app and it worked but now with the update it needs 7.0 but i do not get option to update to this what do i do?

    my ipod says it is updated to most current 6.1.6, i use the rdio app and it worked but now with the update it needs 7.0 but i do not get option to update to this what do i do?

    See the chart below to determine whether you can upgrade your device and what you can upgrade to. If you do not have a Software Update option present on your iDevice, then you are trying to upgrade to iOS 5 or higher. You will have to connect your device to your computer and open iTunes in order to upgrade.
    IPhone, iPod Touch, and iPad iOS Compatibility Chart
         Device                                       iOS Verson
    iPhone 1                                      iOS 3.1.3
    iPhone 3G                                   iOS 4.2.1
    iPhone 3GS                                 iOS 6.1.x
    iPhone 4                                      iOS 7.1.x
    iPhone 4S                                    iOS 8.x.x
    iPhone 5                                      iOS 8.x.x
    iPhone 5c                                     iOS 8.x.x
    iPhone 5s                                     iOS 8.x.x
    iPod Touch 1                               iOS 3.1.3
    iPod Touch 2                               iOS 4.2.1
    iPod Touch 3                               iOS 5.1.1
    iPod Touch 4                               iOS 6.1.x
    iPod Touch 5                               iOS 8.x.x
    iPad 1                                          iOS 5.1.1
    iPad 2                                          iOS 8.x.x
    iPad 3                                          iOS 8.x.x
    iPad 4                                          iOS 8.x.x
    iPad Mini & Mini Retina                iOS 8.x.x
    iPad Air                                        iOS 8.x.x
    =====================================
    Select the method most appropriate for your situation.
    Upgrading iOS
       1. How to update your iPhone, iPad, or iPod Touch
       2. iPhone Support
       3. iPod Touch Support
       4. iPad Support
         a. Updating Your iOS from iOS 5
              Tap Settings > General > Software Update
         If an update is available there will be an active Update button. If you are current,
         then you will see a gray screen with a message saying your are up to date.
         b. If you are still using iOS 4 — Updating your device to iOS 5 or later.
         c. Resolving update problems
            1. iOS - Unable to update or restore
            2. iOS- Resolving update and restore alert messages

  • When I try to update my iPod touch, a message saying there isn't enough space on my computer appears and all media on my iPod will be lost, should I proceed with the update?

    When I try to update my iPod touch, a message saying there isn't enough space on my computer appears and all media on my iPod will be lost, should I proceed with the update?
    My iTunes Library is on my computer, I have done a backup manually, and all of my music is on an external hard drive (as well as my iTunes library).

    Thanks a lot Recycle bin is empty, I will move some files from the C drive to an external hard drive, then do the update, and then move the files back. Any files you recommend not moving to the external hard drive at all?

  • HT1222 I was trying to run ITunes 10.7 update on my Mac Pro with Retina display but the message appeared "An error has occurred" so I can proceed with the update. I dont' see any other messages. Any ideas what could go wrong?

    I was trying to run ITunes 10.7 update on my Mac Pro with Retina dispaly but "An error has occurred" and I was not able to proceed with the update. The message says "The operation was cancelled. (3072)." I have no other messages. Any ideas why I cannot install this update

    Scott's solution fixed the problem.  It would have been helpful if the update message in the App Store had reported that.  I had first tried B Noir's solution -- and received a helpful warning message that a guest user was still logged in to iTunes.  I switched over, logged the guest user out, switched back and the update within the App store worked perfectly.
    It seems to me that Apple should invest a little time and effort in making their error/warning messages easier to decipher.  I have to come to the forum every time something happens.  Why not simply have a dialogue window that opens up to explain the most likely issues?

  • HT5035 Where do I find my $ balance now?  It disappeared with the update.

    I'm very frustrated with the update to iTunes.  It lost the links to my libraries, has no vertical scroll bar in either my libriaries OR iTunes store forcing me to use the keyboard to manuver, and my iTunes store $ balance has disappeared for where it used to display so I can't see how much I have left.  I've a few other frustrations with the new iTunes, but so far not knowing my balance is one of the biggest.
    Where do I find my balance now?

    Try "resetting" your Apple ID password > Apple - My Apple ID
    Frequently Asked Questions About Apple ID
    Apple - Support - Apple ID

Maybe you are looking for

  • Safari is way too slow

    Why doesn't my Safari open up in timely fashion, any time day or night? I get twirling circle most often and wait at least 30 to 60 seconds for lift off. Have checked internet connection which is fine. This jams up access to internet and entire worki

  • Ref cursors in Database adapter

    Hi, Is the database adapter capable of handling ref cursors as the datatype of the output parameters of a pl/sql procedure? For instance if I have the following in my package-spec: TYPE SomeRecordType IS RECORD ( record_pk mut_table.record_pk%TYPE ,

  • Restrictions Passcode, Help !

    I had a restrictions passcode set on my iPod , however I have forgotten the code and tried the method of using ibackupbot to edit and add the <key>SBParentalControls</key> and under that <string>1234</string>, then restored it, tried 1234 had no luck

  • RTF Files in Pages 09

    I am having some issues using Pages to open and edit files with and RTF extension. I have no choice but to use an RTF file since our ERP system generates the file. My problem is Pages does not keep the correct formatting of the RTF file. If I open th

  • Automatic Task Determination In Quality Notifications

    Hi QM experts!      In the <b>Quality Notifications</b>, there is an item called  "<b>DETERMINE TASKS</b>", it under the menu EDIT->TASKS->DETERMINE. What is the main purpose of this item? Is this the part where i can automatically put the TASKS in t