Need to restrict triggering of workflow only once(first time).

Hi guys,
I hv a requirement to trigger the workflow only once(first time).
whatever is the the condition/changes in document, it should not trigger for second time.
do we hv any options available for this........
thanks in advance...
santosh.

Hi susan,
Below is the requested information,
Release : ECC 6.0
we are working on custom WF for ECO creation(CC01).
Description,
ECO is created in SAP by legacy system, thru bapi CCAP_ECN_CREATE, the WF will take the editing of the material in that ECO to different departments like MRP, accounting, sales,quality etc.... & respectively creates the views.
we cannot use CREATE event, bcos first the ECN(CC01) is created by bapi & further bapi creates the material & inserts it into ECN again, which is CHANGING the document. once this is done, our WF should trigger.
As we dont have CHANGE event in ECM BO, i am using CREATE event & settting it for ON CHANGE in SWEC t-code.
Bottomline is , it is triggering as soon as any changes happens.
But, we want it to restrict for one time triggering.
Regards.
santosh.

Similar Messages

  • Taking action only the first time an event executes

    I want a certain action to occur only the first time an event handler for a button is called. Is there a simple way to do this?
    Bill F

    There are two pretty easy ways to do this.
    If you want to continue to trap other events (other event cases in your event structure), use a shift register:
    1. Add a shift register to the loop containing your event structure. (right-click on the left-hand border of your loop and select Add Shift Register).
    2. Wire a numeric constant = 0 from outside the loop to the input (left-hand) terminal of your shift register.
    3. Inside your event structure, in the event case you want to handle only once, put a case structure around the code you want to execute only once. That code should be within the True case.
    4. Add an Equal To 0? function (from the comparison palette) to the loop. Wire the input shift register to the input of Equal To 0?. Wire the output of Equal To 0? t
    o the selctor for your new case.
    5. Within the True case of your new case structure, add a numeric constant = 1. Wire that constant out to the output (right-hand) side of your shift register.
    6. Within the False case of your new case structure, wire the input side of your shift register to the output tunnel created by the wiring in step 5.
    This way the event structure will keep running and handling other events, but the case you just modified will only run the first time: the first time you get the event, the shift register will = 0 so you'll execute the True case of your new case structure. Within that case, you set the shift register to 1. The next time you get that event, the shift register = 1, not 0, so you'll execute the False case and not the code in your True case.
    If you want to stop all event handling after the first event and your event handler is the only thing with its loop, from the event case (for the event you want to stop on), wire a True boolean constant out to
    the Stop terminal of the loop containing your event structure.

  • UploadedFile & https Only work first time upload ????

    I am using 10.1.3.4 Jdev. I use UploadedFile interface to upload files from local PC and ftp files to unix server. My "upload" web page works between my local PC and Unix server, but it only works first time upload file and ftp between
    https server (application server--weblogic 10.0) and Unix server. If I just use http without SSL and my codes work fine you can upload file as many times you want and ftp them to Unix server. I used FTP not sftp to transfer files from application server to unix server. Can anyone shed some lights on my head ???? Thx.

    Yes. I changed my code to SFT from ftp. it works. Thx. This URL for sftp: http://www.jcraft.com/jsch/ and is very good .
    Edited by: albertpi on Feb 11, 2010 8:05 AM
    Edited by: albertpi on Feb 11, 2010 8:05 AM

  • App file sharing: files are displayed only the first time...

    clicking somewhere else and then back to the application that you want to share files are not there any more.
    I've to close and re-open the itunes in order to see them again.
    itunes is running on windows 7 64bit.
    is this a bug ?
    thank you.

    Hi! I have the same, exact problem. The files are displayed only the first time I look at the apps listed under File Sharing. If I look at another app on the list, the files on the one I previously checked are gone when I look at it again. Is there any way to fix this? I have a Lenovo X61s on Windows XP Professional 32 bit.

  • QuickTime launches slow but only the first time

    QuickTime is slow in Mac OS 10.7, that's been widely discussed.
    In my case, QuickTime is slow to open up a video file (MP4, AVI, WMV, etc,), but only the first time.  After I've successfully opened up the one video file, all subsequent video files open up quickly, even after quitting QuickTime.
    However, after a restart it's the same old situation again.
    Is QuickTime installing something, then removing it when the computer shuts down?

    QuickTime is slow in Mac OS 10.7, that's been widely discussed.
    In my case, QuickTime is slow to open up a video file (MP4, AVI, WMV, etc,), but only the first time.  After I've successfully opened up the one video file, all subsequent video files open up quickly, even after quitting QuickTime.
    However, after a restart it's the same old situation again.
    Is QuickTime installing something, then removing it when the computer shuts down?

  • Need help in executing EEM applet only once

    Do we have any sample script for EEM applet counter ?  We want applet to execute once after reload after matching a string . We tried couple of solutions like “ server suspend  “( customer does not like server suspend)   and event counter ( this does not allow syslog string matching ). Please let me know if there are any options.
    At the router reload, match the string , bring down the interface and run this applet only once . I have been trying multiple messages in Bootup log for this for bringing the interface down.
    The issue we are facing is that most of the bootup log messages can be triggered when the router is up as well which will result in triggering of the applet which is what we want to avoid.
    event manager applet Interface_down
    event syslog pattern "SPA removed from subslot 0/0"
    trigger delay 10
    action 1.0 cli command "enable"
    action 1.5 cli command "config t"
    action 2.0 cli command "interface gi0/0/0"
    action 2.5 cli command "shutdown"
    action 3.0 cli command "end"
    event manager applet Interface_up
    event syslog pattern "Bulk Sync succeeded"
    trigger delay 100
    action 1.0 cli command "enable"
    action 1.5 cli command "config t"
    action 2.0 cli command "interface gi0/0/0"
    action 2.5 cli command "no shutdown"
    action 3.0 cli command "end"
    end

    This is a bit dirty but you can create an applet to run at startup that creates the event detection applet. Then at the end of the detection applet, have it remove itself from the running config. This means that the  applet running at startup will always create the event detection applet but the event detection applet will only ever run once for that router boot period as it deletes itself after first run.
    The problem is that when you want to have one applet create another applet, you have issues with the inverted commas being correctly configured for the second applet which will cause it to run once, but fail after that. The way you can get around this is to write the applet to a text file on the flash and then copy the contents of the text file to the running config at boot. This preserves the structure of the applet being created and ensures that it will function correctly.
    The following example builds the event detection applet at system restart (BUILDAPPLET)  by copying the file "eventapplet.txt" to running config. The event detection applet (EVENTDETECT) detects a syslog pattern, in this case exiting global config, and runs the applet sending a puts command and outputting HELLO. The event detection applet then removes itself from the running config.
    !# configure the router
    conf t
    !# turn off file prompting to let the BUILDAPPLET run when copying
    file prompt quiet
    !# create the applet that runs at system restart and copies the flash applet to the running config
    event manager applet BUILDAPPLET
     event syslog pattern "%SYS-5-RESTART"
     action 10 cli command "en"
     action 11 cli command "copy flash:eventapplet.txt running-config"
    !# exit
    end
    !######## Create the flash file containing your run once applet ########
    ! enter the tclsh so we can write our applet to a file - put your event detection applet in here between the {} that you want to run once
    tclsh
    puts [open "flash:eventapplet.txt" w+] {
    event manager applet EVENTDETECT
     event syslog pattern "%SYS-5-CONFIG_I"
     action 1.0 puts "HELLO"
     action 2.0 cli command "en"
     action 3.0 cli command "conf t"
     action 4.0 cli command "no event manager applet EVENTDETECT"

  • How can I stop a sound from looping so it plays only once each time the up key is pressed?

    Hi there here is my code, the basis is it is playing a mp3 from my library.
    Basically as the topic suggests I only want the sound to play once each time the UP arrow key is pressed. At the moment when you hold the up arrow down the sound keeps triggering and looping and gets really loud and noisy.
    Here is my code for my game:
    package com.chasegame.components
              import flash.display.MovieClip;
              import flash.display.Stage;
              import flash.events.Event;
              import com.tech.utils.KeyObject;
              import flash.ui.Keyboard;
              import flash.media.Sound;
              import flash.media.SoundChannel;
              public class SpaceShip extends MovieClip
                        private var key:KeyObject;
                        private var speed:Number = 0.3;
                        private var rotateSpeed:Number = 5;
                        private var vx:Number = 0;
                        private var vy:Number = 0;
                        private var friction:Number = 0.95;
                        private var shipSound:roar = new roar();
                        private var shipSoundChannel:SoundChannel = new SoundChannel();
                        public function SpaceShip () : void
                                            key = new KeyObject(stage);
                                            addEventListener(Event.ENTER_FRAME, loop, false, 0, true);
                        public function loop(e:Event) : void
                                            if (key.isDown(Keyboard.UP))
                                                           vy += Math.sin(degreesToRadians(rotation)) * speed;
                                                           vx += Math.cos(degreesToRadians(rotation)) * speed;
                                                           shipSoundChannel = shipSound.play();
                             else
                                                           vy *= friction;
                                                           vx *= friction;
                                  if (key.isDown(Keyboard.RIGHT))
                                            rotation += rotateSpeed;
                                  else if (key.isDown(Keyboard.LEFT))
                                            rotation -= rotateSpeed;
                                  y += vy;
                                  x += vx;
                                  if (x > stage.stageWidth)
                                            x = 0;
                                  else if (x < 0)
                                            x = stage.stageWidth;
                                  if (y > stage.stageHeight)
                                            y = 0;
                                  else if (y < 0)
                                            y = stage.stageHeight;
                        public function degreesToRadians(degrees:Number) : Number
                                  return degrees * Math.PI / 180;

    If you want the sound to only play once when the key is pressed then you don't want to have it in the ENTER_FRAME event handler like you have it.  It is starting new sounds at the frame rate of your file the way you have it now.
    Try having an event listener dedicated to a KeyboardEvent.KEY_DOWN event where you detect when the UP key gets pressed and use that to trigger playing the sound.

  • Workflow Only Opens First File of a Group

    I'm trying to get my workflow to open a group of .mpg files. It looks like it should do it, but only the first of the group opens. Here's what's in the workflow:
    Get Current Webpage from Safari
    Get Link URLs from Webpages
    Download URLs (to a folder called 'Movies')
    Get Folder Contents
    Filter Finder Items (whose file type is HTML files)
    Move to Trash
    Get Specified Finder Items ('Movies' folder)
    Get Folder Contents
    Open Finder Items (with default application)
    I have placed the View Results action after Get Folder Contents and all the files show up there. It's just a question of the Open Finder Items action not performing properly, it seems. Any suggestions?
    Thanks,
    Max

    First, you can simplify the workflow by using a Filter URLs after the Get Link URLs and then do away with the whole GFC,FFI,MTT,GSFI,GFC-
    So your workflow would be:
    Get Current Webpage from Safari
    Get Link URLs from Webpages
    Filter URLs
    DownloadURLs
    Open Finder Items
    Now, since these are .mpg files- are they opening in QuickTime or something else?

  • BATCHINPUT: Screen appears only the first time

    Hi everybody,
    I have the following situation in R/3:
    On transaction ABZON when the user selects this transaction for the first time, appears a window asking for the company field (BUKRS). If the user enters the same transaction again without login off, that window doesn't appears going directly to the transaction's main screen.
    The problem is that I have to make a batch input of this transaction but doesn't want the user to logoff every time it needs to run the batch input again.
    How can I avoid that screen to appear or force the batch input to always show that screen.
    If anyone can help me will be appreciated.
    Thanks,
    Orlando.

    Orlando,  I've ran across this is same problem in another transaction.    What I did was I "separated" the transaction.  Meaning the first thing that happens when the transaction runs, is to take care of the window that appears only once during a log on session.  Then later when doing the BDC to actually do something, it will not need to have this part of the recording.
    So for example, do your recording for the window that pops up enter a value, and back out of the transaction.  Call this BDC code before doing any of the rest of the transactions.  Not that the value is filled, it will not pop up again during the rest of the session.  Call your BDC to process the rest of the transaction.
    Regards,
    Rich Heilman

  • Time machine would back up only the first time after I shut off my imac and started it up again.  Then it would fail or claim it could not locate my external Hard Drive even though it's icon was showing in the time machine dialog window.

    Time machine only ever backed up the first time it runs immediately after I start up my computer after it has been shut off.  All other back up attemps fail.  Recently it stopped recognizing the icon for my external hard drive in the time machine dialog window where you select the hard drive to back up to, and turn on and off the time machine function.  Now the external HD icon only shows up on the desk top but no longer in the dialog box. I just tried shutting the computer off and turning it on again and now the light is on, on the external hard drive but the icon does not even appear on the desk top.
    The external hard drive is a 1TB Seagate. The drive still has plenty of unused capacity.  I ran a diagnostic test on it. It said the disk needed repair but the repair function would not work. The message stated that it could not be unmounted and repair is not available because the disk can't be written to. The Mac OX utility said the disk can still be opened but can't be changed nor repaired.  The external HD is not S.M.A.R.T. supported.
    I haven't tried replacing the cable yet. Is that the next thing I should try?

    What Mac OSX version are your running ("iOS" as shown in your profile cannot run on a Mac computer)?

  • Permissions issue only the FIRST time I try to overwrite a file.

    I've a standard user account and I've found overwriting protected files is bugged in Leopard.
    As an example: every time I'm upgrading Camino web browser with the latest nightly build (by dragging the new version from it's disk image, and into the Applications folder) I get a permissions issue the first time only. As usual I am warned I will need to authenticate, then I am warned I will be replacing a file, then the first time only I get told I do not have sufficient privileges on one or more items to continue. The second time I try I am allowed to progress to the authentication window where I enter my admin username and password and the operation completes.
    The same thing happens with other files I'm trying to overwrite that are located in protected folders (I just use Camino as an example because it is a daily occurrence). But it ONLY happens the first time.
    This has persisted through three erases of my brand new iMac's HD and clean installations of Leopard. I have of course run Disk Utility multiple times to repair the HD (no errors found) and repair permissions (just the usual ACL errors every Leopard user faces).

    Hi,
    What's the error message did you get? It would be better to provide a screenshot for your problem.
    Generally speaking, this problem can be caused by third party adds-on of IE. You can try to start IE with no adds-on mode for test.
    Open run, type iexplore -extoff, pess
    Enter.
    If it works properly, please chck which plugin enabled in your browser, try to disable them for test.
    In addition, this can also be caused by IE settings, try to reset IE for test.
    Roger Lu
    TechNet Community Support

  • Daily problem starting workflow for the first time

    Hello,
    for one of our clients we have configured an OOTB workflow which handles the routing of incoming post on a daily basis using Kofax as scanning client to to release the incoming document to SP using a workflow for routering to the proper department. The problem
    we experience is that after every restart of the services, the first workflow is not triggered. After the first time, all workflows started after that are running fine.
    We already tried plaing around with the SP workflow timer job, but so far with no results. Does anybody had a similar experience? If yes, what's the cause of this problem and even better, what can we do to fix this? Customer is running on a SP2010 platform.
    Thanks
    Ludwig Stokkelaar
    OpenDocs bv
    email: [email protected]

    Hello all,
    for one of our clients we have configured an OOTB workflow which handles the routing of incoming post t the proper apartment on a daily basis using Kofax as scanning client. The problem we experience is that after every restart of the services, the first
    workflow is not triggered. After the first time, all workflows started after that, are running fine.
    We already tried plaing around with the SP workflow timer job, but so far with no results. Does anybody had a similar experience? If yes, what's the cause of this problem and even better, what can we do to fix this? Customer is running on a SP2010 platform.
    Thx
    Ludwig Stokkelaar
    OpenDocs bv

  • Wait cursor appears only the first time... unless I don't move the mouse!

    Ah yes, another cursor problem:
    I am setting a wait cursor in my main JFrame when a key-release or a menu item click is detected (the time-consuming action is then triggered in a child JInternalFrame), and so far, it's been working great.
    Then I noticed that the wait cursor only appears the first time the time-consuming action is called (or more precisely, if I never move the mouse, it happens every time as it should, but if I move the mouse, it only happens the first time! Ah, and I noticed I CAN move the mouse but ONLY when it is in the form of the wait cursor!).
    Strangely, I can see the cursor blink briefly when the action is done, precisely when it should be changing back to the default cursor... what gives? If I close the child internal frame and re-open it, I can get the wait cursor again the first time only (again, unless I keep the mouse still, in which case it works great - argh).
    Any ideas would be deeply appreciated!
    Cheers!
    PS - Here's a snippet of how we set the cursor, this is code in our main JFrame, called via either a keypress event or clicking on a menu item - mostly it's stuff that is unrelated, and we simply set the wait cursor as the very first line, so why in the world would it skip that line???? (the rest of the lines do in fact get executed):
    private void refreshMenuItemActionPerformed(java.awt.event.ActionEvent evt) {     doRefreshMenuItemAction(); }
    private void doRefreshMenuItemAction() {
    this.setCursor(new Cursor(Cursor.WAIT_CURSOR));
    JDesktopPane desktop = (JDesktopPane)this.getContentPane().getComponent(0);
    JInternalFrame activeFrame = desktop.getSelectedFrame();
    try {
    if ( activeFrame instanceof IDataDrivenForm ) {
    ((IDataDrivenForm)activeFrame).refresh();
    } catch (Exception ex) {
    ex.printStackTrace();
    this.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));

    almost...
    I now see that glasspanes are an answer to that question. I got it to work (almost) using a glasspane (see code snippet below). But what I can't quite grasp now is why this code does not work when I call it from a child (contained) dialog (and possibly internal frames as well)??? When I do so, the dialog freezes (the button I pressed doesn't even release) and the cursor does not change to waiting. This time I'm really not sure where to go next....
    I appreciate anyone who has read this far, and would really be indebted to you for some good advice!
    PS - Here's the nifty code, placed in my main JFrame class. I just substituted "this.setBusy(true);" for every place I was manually setting the WAIT_CURSOR in the past (and of course with matching setBusy(false)):
    public final void setBusy(boolean isBusy)
    Component glassPane = this.getGlassPane();
    Cursor theCursor = isBusy ? Cursor.getPredefinedCursor( Cursor.WAIT_CURSOR ) : Cursor.getPredefinedCursor( Cursor.DEFAULT_CURSOR );
    this.setCursor( theCursor );
    glassPane.setCursor( theCursor );
    glassPane.setVisible( isBusy );

  • Exception occurs only the first time

    The server listens on a port to which client connects in applet mode. Every time client connects to server for the first time (i.e. after a fresh server installation), the client pops an exception:
    java.io.InvalidClassException: javax.swing.ImageIcon$AccessibleImageIcon; local class incompatible: stream classdesc serialVersionUID = -3994512798706967451, local class serialVersionUID = -1903458698681874148.Subsequent client connects to server does not pop this exception. i.e. This occurs only for the first time.
    Through posts in forum, I thought that this could be due to swing serialization incompatibility across version.(But in this application both server and client are on the same m/c having a single JRE and JDK, both are of version 1.4.2 )
    But I am not able to reason out why the exception occurs only for the first time and then disappers in subsequent connects. ( despite clearing javaws cache and Browser cache and restarting server ... and it works on RMI mode).
    What could be the reason ?

    Hi
    We recently changed our load balancer to a new load balancer. we get this error only after the load balancer change.
    When the error occurs, I could see ORA-12571 error message only in the application error log. The listener.log has only the following message about TNS 12502. It does not have any message about ORA -12571.
    TNS-12502: TNS:listener received no CONNECT_DATA from client
    12-MAR-2010 12:23:26 * (CONNECT_DATA=(SERVICE_NAME=AppName)(CID=(PROGRAM=c:\wind ows\system32\inetsrv\w3wp.exe)(HOST=WEB02)(USER=NETWORK?SERVICE))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.x.x.x.x)(PORT=2202)) * establish * AppName * 0
    12-MAR-2010 12:23:26 * (CONNECT_DATA=(SERVICE_NAME=AppName)(CID=(PROGRAM=c:\wind ows\system32\inetsrv\w3wp.exe)(HOST=WEB02)(USER=NETWORK?SERVICE))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.x.x.x.x)(PORT=2203)) * establish * AppName * 0
    12-MAR-2010 12:23:26 * (CONNECT_DATA=(SERVICE_NAME=AppName)(CID=(PROGRAM=c:\wind ows\system32\inetsrv\w3wp.exe)(HOST=WEB02)(USER=NETWORK?SERVICE))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.x.x.x.x)(PORT=2204)) * establish * AppName * 0
    12-MAR-2010 12:24:09 * 12502
    TNS-12502: TNS:listener received no CONNECT_DATA from client
    Thanks
    Ashok

  • LO cockpit should v need to do in dev or pro for first time

    hello all
    assume like v need to customize LO,for the first time(i mean when v r implementing),should the r/3 side customization(LBWE) should be done in dev or production server?
    sorry for asking silly question?
    many thanks
    balaji

    Roberto
    Thanks!
    In your statements u said like "before importing in PRD, keep in mind that a <b>queue activation</b> can lead to serious errors on your system if some flow is already active",what do u mean by queue activation here?do u mean extract structure activation(in LBWE) in dev?
    How this <b>datasource</b> and the <b>extract structure</b> will be transported to <b>Prod</b> from <b>Dev</b> in r/3 side(I mean the necessary work from r/3 side which is related to bw?)
    I think there should be some process to transport in r/3 also?(Dev to QA to PRO)pl let me know that?
    Many Thanks
    balaji

Maybe you are looking for

  • What happened to new songs in my Library?

    I "signed" new agreement that popped up while downloading a song in iTunes today. Not only did 28 American Express Gift card points disappear, but that song, and songs subsequently downloaded, appear only under "Purchased" file but not under "Music"

  • Print Button in webdynpro abap?

    Hi Gurus,              I have created a custom button on my webdynpro screen . When I click that button I want to take print out of the particular screen and at the same time I need to hide the buttons (buttons are displaying on print screen option).

  • Why is compressor 4.1.1 only giving me mp4s with 128kbps audio?

    Hi everyone, I'm using the mp4 encoders a lot in Compressor. It recently was updated to 4.1.1 and the OS to Mavericks 10.9.2. The bitrate slider in the settings has absolutely no effect on the resulting file regardless of the source file and the sett

  • How to dynamically choose which view to display in second step

    Hi Guys, I am just started to evaluate fpm to decide whether to use it in our project. So i have question that might be very simple to you all, that i hope you all can help me with. Say i want to use the fpm GAF with a single webdynpro component. I h

  • Keynote and Apple Script

    I need a script, runnable on a Mac acting as a server, that can do the following without human interaction. 1. Open a keynote file - we can open keynote file manually Automative should finish following tasks .. 2. From the "Share" menu within KeyNote