Using timeout items and running the background engine

Hi all!
I tried to read all the information about timeouts and engine, but I think I don't understand anything.
I want to use a loop, that after every 4 minutes runs the given plsql code until 15 times.
There are 4 different result. 1: continue the loop, 2: good result, 3: bad result, 4: loop reachs max running count (15).
1. I don't know how to set the result code.
2. How start the background engine. Is it startable from my plsql code? I have to start the engine at every item_type and item_key pair, or I have to start it only once?

You need not handle Loop Max out in your result. You can handle that usng Loop Counter standard activity that you can find in the WF Builder. Insert this counter in the Loop.
Write a simple Function Activity that you want to be executed every 4 minutes. That also sits in the Loop.
Now insert a WAIT activity in the loop that should wait for 4 minutes relative to the current completion time. So, that loop will look like...
----> Function ----> Wait ----> Loop Counter ----> (Go back to Function on loop... exit out if maxed out)
The exit condition transition for the loop occurs from Loop Counter activity.
You don't need a timeout here anywhere. Running background engine should be purely outside of your code. It is a concurrent program that you can schedule to run at regular intervals for whatever parameter you choose.
Thanks
Vijay

Similar Messages

  • Set env using a script and run the command (dependency on the env)

    I need to set the env varaible by running a shell script with arguments as 'ksh setEnviron r6.1' and then run the command in the
    same process. the command has dependency on the previous script which sets the env variables.
    With Runtime.getRuntime().exec( cmd1); ,Runtime.getRuntime().exec( cmd2); I am not able to execute the Cmd2 as it is running in different process.
    How do solve this issue.
    Is there any other method to run the command to set env variables and run the second command.(dependent on the env) to get the output.
    Please help me out in this.

    ganesh_mak wrote:
    final String[] commands = {
                              ". setEnviron r6.1",
                                "/usr/add-on/test/Xbin/sql name from list where date.eq.05/22/08",
    Process penv = Runtime.getRuntime().exec("/bin/sh");
    BufferedReader br = new BufferedReader( new InputStreamReader( penv.getInputStream() ) );
    BufferedReader stdError = new BufferedReader(new InputStreamReader(penv.getErrorStream()));
    final OutputStream writer =  penv.getOutputStream();
    for (int i=0; i<commands.length;i++)
         writer.write(commands.getBytes("utf-8"));
         writer.write("\n".getBytes());
    String line;
    while((line = br.readLine())!=null){
    System.out.println(line);
    br.close();
    writer.close();
    I tried the above code but its not working...............
    please correct me.
    Do you think I used the '-i' argument just for fun? Did you do a 'man sh' and 'man bash' to see what the arguments do? If not then do it now.
    Do you think I used Theads to process stderr and stdout just for fun? I've shown you the basic approach. I have shown you how you need to create Threads to process stdout and stderr. If you have not understood and you have not studied http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html then do so now.
    Edited by: sabre150 on Jun 2, 2008 3:43 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Open and run the VI using FP.Open from another VI

    I would like to have LabVIEW open and run the VI when I open the second VI (number 2) from VI (number 1). I set the appropriate Execution options in File»VI Properties
    to make both  VI run when opened but it works only for the first vi and
    when I open 2.vi from another 1.vi the second vi will open but not
    run.Would u plz let me know how can I make the second vi run when I open it using FP.Open.
    Attachments:
    111112w.jpg ‏33 KB

    There are several ways to start VI 2.
    - use a invoke node of VI 2 which says : "run when opened"
    - edit the VI properties of VI2 en set "run when opened" to TRUE
    See attachment
    Kind regards,
    - Bjorn -
    Have fun using LabVIEW... and if you like my answer, please pay me back in Kudo's
    LabVIEW 5.1 - LabVIEW 2012
    Attachments:
    RunWhenOpened.PNG ‏33 KB

  • What is the use of item usage in the item category determination.

    Hi,
    What is the use of item usage in the item category determination.
    can any one please give me config setting where from actually the system will take the item usage and background functionality
    thanks
    Kuntla

    hi,
    thanks for the answers,
    Then how the system will no that it is a service item , or it is a free item.
    the above can be done in item category.
    then what is the user of item usage
    thnaks
    kunlta

  • Deferring to the Background Engine

    Hi,
    We are using standalone workflow. We have an activity that we defer to the background engine by setting the cost to be above the threshold of 50. We have submitted a DBMS_JOB which calls
    wf_engine.background(null,50,null,true,false);
    every 5 minutes. This does indeed process the deferred activity. We have a situation however where we would like to launch 4 processes each of which has a deferred activity. The background engine processes each activity sequentially whereas we would like the 4 processes to be processed at the same time. Is this possible?
    Thanks,
    Gavin

    Gavin,
    You could use the "deferred tread" function from the standard wordflow lib (WF_STANDARD) in stead of raising the costs to above 50. After this deferred thread function you can model paralel functions. If you would like to wait for all parallel processes to complete before continueing your flow you should also use the "and" function also from the standard workflow lib.
    Greetings,
    Ron

  • Problem with checkbox and run the get button event continuously

    Hi all,
    I have a checkbox list of 3 sensors. I have used the X-Control (for checkbox) found in the following link for my application https://decibel.ni.com/content/docs/DOC-30558. I have problems to achieve the following.
    Suppose i check Vibration and Strain, I should be able to display both Vibration and Strain data. (I should compare each element of 1d array with the string constant and run the case structure).
    I have to run the GET event continuously to display the data. 
    I have attached the code to the post.
    Please can anyone suggest how to go about this.
    thanks in advance
    Regards,
    KM
    Attachments:
    Main page Enhancements for Create and Load.vi ‏69 KB

    Hi Bob_Schor,
    I tried using the approach you mentioned. I cant run continuously. I am not able to figure out where i am going wrong. I have attached the updated vi. 
    Hi Hooovahh,
    The link you have posted seem to work with LV2013. I am currently using LV 2011. Can you please update it to 2011. Is OpenG necessary for this?
    Regards,
    KM
    Attachments:
    Main page Enhancements for Create and Load.vi ‏77 KB

  • We have developed a desktop application using Flash software and published the same for MAC environment. When we double click on the index.app file, the application is working perfectly in Mac 10.6.7 at our office. But if the same index.app file is double

    We have developed a desktop application using Flash software and published the same for MAC environment. When we double click on the index.app file, the application is working perfectly in Mac 10.6.7 at our office. But if the same index.app file is double clicked in Mac 10.6.7 at out clients location, its not opening. For your information the client is able to open this same application by double clicking on index.swf file. The main problem is that client is not able to open the application using index.app file at their office whereas we are able to do so at our office. Can anyone give some suggestions to sort this problem?

    The most common reason is different versions of Flash, or different versions of web browsers used.  Some users may elect to not have Flash installed at all because of the processor overhead of Flash.  If you are going to make an application for a client, check what operating system and browser versions they are using first.  Then determine if a stand alone application is required, or if they have the necessary plugins to run specific browser enhanced code.
    P.S. MAC is an acronym for Media Access Control.  Mac is the shorthand for Macintosh, the operating system and computers made by Apple Inc.

  • How to change the text color of a label by using RGB values without changing the background colour?

    xCode interface builder:
    When I try to change the color property of a label's text by using the RGB values, the background color also changes to the same value automatically.
    in other words:
    While setting the RGB values for text colour of labels, the background colour also changes unless we use the sliders.
    How to make sure that only the color of text changes and not the background?

    You can simply do this.
        [labelname setTextColor:[UIColor colorWithRed:38/255.0f green:171/255.0f blue:226/255.0f alpha:1.0f]];

  • I can't uninstall Firefox(3.6.3) either through the control panel or by going to Program files/Mozilla Firefox/Uninstall and running the helper.exe, I have Windows 7 Home Premium(64bit)

    I simply want to uninstall Mozilla FireFox 3.6.3. I tried both recommendations of using the control panel to add/remove program and running the helper.exe in Program Files/Mozilla FireFox/uninstall. I am running Windows 7 Home Premium Edition(64bit). When I tried to remove it using the add/remove program and helper.exe all it does is start for a split second(mouse pointer turns into circular loading icon) and then it stops.
    == User Agent ==
    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/531.22.7 (KHTML, like Gecko) Version/4.0.5 Safari/531.22.7

    Hi Guys,
    I had this same problem too, and i want to share to all of you my own fix for this kind of problem;
    (READ FIRST: ''This step will wipeout everything that mozilla saved on your computer including : password, history and bookmarks''.)'''
    '''1. download the Revo Uninstaller''''''
    - quick step guide for this:
    select mozilla firefox, don't forget to uninstall everything that relates to mozilla including registry to clean them all up.
    '''2. download mozilla firefox again'''
    - AND REINSTALL. however on this stage, in some cases mozilla will not open at this stage.
    '''3. Uninstall Mozilla firefox again NOW using control panel.'''
    '''4. Restart the computer to refresh everything.'''
    '''5. Reinstall mozilla firefox again, once you have received the prompt for "exporting or importing etc.. etc.. from Microsoft" that means its already working.. it will take around 5-10 sec to load up (in my case) .'''

  • Anyone have experience installing and running the Condor Engineer QPC-1553 PXI board

    Do anyone know how to installing and running the Condor Engineer QPC-1553 PXI board using their LabVIEW drivers?

    Hi CEY,
    as far as i know there are many documents with it.  Install it like every other hardware. To test it there is a program from Condor Engineer. To build your application, there are good example for BC, BM and RT.
    Mike
    Message Edited by MikeS81 on 02-19-2008 09:27 AM

  • While Deploying and running the application

    Dear all,
    While deploying and running the application, after importing the relevant files into my local amchine workspace from another machine, i am facinf exception/error message as below:
    'Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (404) Not Found'.
    Would someone suggest for the same.
    With Regards,
    Lux.

    Hi,
    This is the message i am receving during runtime
    Web Dynpro client:
    HTML Client
    Web Dynpro client capabilities:
    User agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322), version: null, DOM version: null, client type: msie6, client type profile: ie6, ActiveX: enabled, Cookies: enabled, Frames: enabled, Java applets: enabled, JavaScript: enabled, Tables: enabled, VB Script: enabled
    Web Dynpro runtime:
    Vendor: SAP, Build ID: 6.4013.00.0000.20050607163945.0000 (release=630_SP_REL, buildtime=2005-06-07:21:12:54[UTC], changelist=351986, host=PWDFM067)
    Web Dynpro code generators of DC local/SurveysOverview:
    SapDictionaryGenerationCore: 6.4013.00.0000.20050606171348.0000 (release=630_VAL_REL, buildtime=2005-07-18:20:02:28[UTC], changelist=351717, host=PWDFM026.wdf.sap.corp)
    SapMetamodelWebDynpro: 6.4013.00.0000.20050609113138.0000 (release=630_VAL_REL, buildtime=2005-07-18:20:05:41[UTC], changelist=352442, host=PWDFM026.wdf.sap.corp)
    SapMetamodelCore: 6.4013.00.0000.20050606171700.0000 (release=630_VAL_REL, buildtime=2005-07-18:19:56:40[UTC], changelist=351724, host=PWDFM026.wdf.sap.corp)
    SapWebDynproGenerationTemplates: 6.4013.00.0000.20050628104636.0000 (release=630_VAL_REL, buildtime=2005-07-18:20:21:22[UTC], changelist=356134, host=PWDFM026)
    SapWebDynproGenerationCTemplates: 6.4013.00.0000.20050628104636.0000 (release=630_VAL_REL, buildtime=2005-07-18:20:21:22[UTC], changelist=356134, host=PWDFM026)
    SapGenerationFrameworkCore: 6.4013.00.0000.20041104141254.0000 (release=630_VAL_REL, buildtime=2005-07-18:19:55:55[UTC], changelist=298452, host=PWDFM026.wdf.sap.corp)
    SapIdeWebDynproCheckLayer: 6.4013.00.0000.20050606172055.0000 (release=630_VAL_REL, buildtime=2005-07-18:20:09:17[UTC], changelist=351729, host=PWDFM026.wdf.sap.corp)
    SapMetamodelDictionary: 6.4013.00.0000.20050606171352.0000 (release=630_VAL_REL, buildtime=2005-07-18:19:59:56[UTC], changelist=351719, host=PWDFM026.wdf.sap.corp)
    SapMetamodelCommon: 6.4013.00.0000.20050606171700.0000 (release=630_VAL_REL, buildtime=2005-07-18:19:56:48[UTC], changelist=351724, host=PWDFM026.wdf.sap.corp)
    SapWebDynproGenerationCore: 6.4013.00.0000.20050606172055.0000 (release=630_VAL_REL, buildtime=2005-07-18:20:09:46[UTC], changelist=351729, host=PWDFM026.wdf.sap.corp)
    SapDictionaryGenerationTemplates: (unknown)
    Web Dynpro code generators of DC sap.com/tcwddispwda:
    No information available
    Web Dynpro code generators of DC sap.com/tcwdcorecomp:
    No information available
    J2EE Engine:
    No information available
    Java VM:
    Java HotSpot(TM) Server VM, version: 1.4.2_08-b03, vendor: Sun Microsystems Inc.
    Operating system:
    Windows XP, version: 5.1, architecture: x86
    Error stacktrace:
    java.lang.NullPointerException
         at com.sap.survey.NewSurveyView.onActionCreateSurvey(NewSurveyView.java:180)
         at com.sap.survey.wdp.InternalNewSurveyView.wdInvokeEventHandler(InternalNewSurveyView.java:198)

  • Send command to modem using serial port and capture the response in the labview

    hello.
    I am doing my shool project.
    I want to send command to modem using serial port and get the response in the labview.
    When i run my program and enter"AT", only messy code will be displayed.
    can anyone help me? thanks 

    Dora0512 wrote:
    Thanks for you all. My partner got it already.
    I am doing send sms part.
    Can anyone tell me why my program is not so steadily?
    It means this program can run. But somtimes I cannot receive sms. sometimes can
    Basically, it is not well-written from both a LabVIEW and a communications point of view.  Unfortunately, I can't elaborate because today is an exrtremely busy day at work.  I'm hoping this bump will prompt someone to help you with your problem.  If you could also provide us with the programmer's guide or the manual for your equipment, that would be extremely helpful.
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • How to start work flow agent listener and work flow background engines R12

    Hi,
    I need to start work flow agent listener and workflow background engine in R12.1.3. Could you please specify how to start a workflow agent listener and workflow agent background engine.
    Please send me link if any documents are there .
    Best Regards,
    Anil

    I need to start work flow agent listener and workflow background engine in R12.1.3. Could you please specify how to start a workflow agent listener and workflow agent background engine. How to start the Workflow Deferred Agent Listener andWorkflow Java Deferred Agent Listener? [ID 548918.1]
    Please send me link if any documents are there . Please search the forum before posting similar questions.
    http://forums.oracle.com/forums/search.jspa?threadID=&q=How+to+start+Workflow+Agent+Listener&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    http://forums.oracle.com/forums/search.jspa?threadID=&q=How+to+start+Workflow+Background+process&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Read Error logs after running the background jobs

    Hi,
    How to read the error logs after running the background jobs. In our scenarion we are running the COHV transaction to release the production orders in background. But we are not finding the error logs after background job. We would like to read the error logs and correct for further processing.
    Kindly suggest.
    Thanks & Regards,
    N. Laxman

    Hi
    you can check the  back ground jobs defined by any user in SM37 and where you can see the spool and job logs as well.
    plz check in your case and revert back
    Regards
    Anupam Sharma

  • How do i unzip and run the newly downloaded Adobe Encore trial version on a windows computer?

    how do i unzip and run the newly downloaded Adobe Encore trial version on a windows computer?

    First, there is no such thing as an Encore trial, due to licensing of 3rd party program modules
    Second, Encore is installed as a bundle with Premiere Pro CS6
    Third, the CS5-thru-CC PPro/Encore tutorial list http://forums.adobe.com/thread/1448923 will help
    The bottom section of the link above has several Adobe links, and other information, on downloading Premiere Pro CS6 and the bundled Encore CS6, and the TWO ADDED downloads for the Encore library content, to author a DVD or BluRay... and the tutorial list includes learning how to use Encore... pay particular attention to the picture in reply 3 at this link - https://forums.adobe.com/thread/1516173 (picture first posted by Ann Bens and reposted by Stan Jones)

Maybe you are looking for

  • ESB -- Routing the fault

    hi, I am new to ESB development. Please share your thoughts on the following: 1. When I register a new/modified ESB process, a dialogbox with the below message comes up, if ok is clicked then shows the Registration Summary window with service registr

  • Link to Manual is broken

    Downloaded Configurator 4. Go to Help > Documentation and the link is broken. If anyone has a manual for 4 and can post it, that would be immensely appreciated.

  • Logs of deleted Service transactions

    Hi to All, Good Day! I just want to ask if there's a log where I can view the details of deleted service transactions? Hoping for you kind response. =) Thanks! Lynne

  • Why does Siri always give me Jillian Ye when searching the web?

    I have enjoyed using Siri on my new iPhone 5. However, anytime Siri asks me if I would like her to search the web for something she always comes back with the contact information for a Jillian Ye. I have yet to actually have her truly search the web.

  • Show all available episodes of a subscribed podcast without downloading?

    I have the podcasts I am subscribed to set to automatically download any new episodes, and automatically delete them once they have been listened to/watched.  This works well enough, but when they are deleted, those particular episodes are no longer